Wordpress Plugin toavoid adult text content

Details

I need to create a plugin, using which we can mention adult words and check all posts automatically for these words. if any of these words exist in post, then the post will be deleted automatically. It will check existing posts and new posts.