I don't know what you want to check, but here is one way to find a tool. Since you could not be the first person to want this kind of tool, I did a Google search on these keywords
how to check text for profanity
and up popped a lot of potential software to do it for you. It is up to you to evaluate what you find using similar keywords.