Whole words instead of part.
Filter should take whole words into consideration as opposed to part of a text. For instance - "document" flags a cuss/swear word. Part of it contains "cum".
+1
Added a pull request with the changes.
How can I use this now? I don't seem to find it, the wholeword adding?
@BramCoding when calling the function $censor->censorString($terms); there's a second parameter by default is false, set it to true to use fullWords:
$censor->censorString($terms, true);
The problem with setting true to use fullWords is that it then stops trying to find creative words...
Example:
F*** is in the dictionary but F***ing isn't. That means that even basic swear words are not detected.
The built-in dictionaries are lacking when you use fullWords.