I am currently trying to build a curse word filter for my app, since it has a publicly available chat system.
I’ve stumbled upon a problem though, and that involves checking the database for curse words. When I say a curse word without any other words around it, it successfully detects it and warns me. But, when I do example: “Test (badword)” it doesn’t warn me.
Try extracting through regex, it avoids that full word limitation.
If the regex returns something (more than zero, like you do currently), then it means it matched a bad word and shouldn’t be sent.
I tried using the plugin and following the instructions, but I still can’t get it to work. If possible, are you able to spot anything incorrect with what I did? Thanks alot.