Closed osappuk closed 6 years ago
It is really useless when a dictionary contain the word "ass" then the badWords() function picking out everything like: assess, classmates, assignment, etc.
Am I missing the usage of a flag to only filter whole word or is this package did not seriously consider this option? Please help, thanks!
Done in 2.0.0
as ->strict(true/false) and ->strictClean(true/false). Both documented on the main page. Cheers!
I am not sure what is wrong but I carefully test V2.0.0 but the badWords() function return empty array while there are definitely bad words :( Could you have a look, please. Thanks!
Seems to be working for me :o
Ah, I know why. It is because we did not convert strings to lowercase before comparison in here: in_array($value['word'], $words) . Could you please fix that? Thank you!
Fixed
Hi,
Thank you for sharing the code. Is it possible to have whole word only matching option? For example, in my string there is a word "circumstances" and it is picked out by badWords() as "cum" :-( Thanks!