Rather than re-inventing the wheel does anyone know of a PHP profanity filter class that may come with a nice dictionary too?
| SitePoint Sponsor |


Rather than re-inventing the wheel does anyone know of a PHP profanity filter class that may come with a nice dictionary too?


www.phpclasses.org have a few really good classes, free registration is required but it is worth it just for the amassed classes they have![]()
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!


I looked already but couldn't find any relating to profanity filtering. Do you have a specific example?


Quazi's BadWord filter class:
http://www.phpclasses.org/browse/author/33589.html
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!



If you like, I'd be happy to provide you with a list of profanities and rude words.
I know a lot.![]()
Here are another 3 you could look at:
http://www.awsinternet.com/articles/...rd_filter.html
http://gr0w.com/articles/code/php_bad_words_filter/
http://www.offsky.com/software/badword.txt
Bookmarks