ProfanityFilter
ProfanityFilter copied to clipboard
A simple PHP class to test if a string has a profanity in it.
run: `php composer.phar require developer/profanity-filter` Result: ``` [InvalidArgumentException] Could not find a matching version of package developer/profanity-filter. Check the package spelling, your version c onstraint and that the package is...
Hello. You block the word "titfuck" but ignore - ahegao - hentai - paizuri - bukkake and many others...
I am seeing a number of words and phrases that are wrongly identified as profane. For example: shoe as sure I have a hole in my pocket album coke scrape...
* adding new feature **`cleanWords`** to mask only the bad words, not all sentences * can customize character for bad words replacement * can get a bad word found, for...
Currently all regular expressions are generated on each request. This seems like there is opportunity to speed things up a bit. As word lists don't change often, generating the regexs...
I feel like I'm missing something. I simply want the 1 bad word replaced with ****, but instead the filter replaces the entire sentence with *****. Thanks. ```$badWords = "test...