This profanity detector (bad language detector) helps to prevent nasty content being added to your layer/forum/blog/mails or whatsoever.
This detector works by looking for absolutely illegal words, evaluating the content as “foul language” immediately but and also checks for potentially “dangerous” words. When either the maximum bad word count or percentage has been reached the text is marked as foul.
You can download The source files here.
- This class is an aid, not a foolproof solution.
- The words in these files might be considered shocking so if foul language bothers you, don’t open them.