Your Rocket.Chat version: 0.35.0
When making "Allow Message bad words filtering" True, a database of bad words are blocked. However some of those bad words, are not bad words. I'd love an easy way for me to add a list of bad words to be used, and to ignore the bad words that are pre-packed with the chat. Currently I can add a list of bad words to be filtered, but cannot ignore the bad words that are defaulted when I hit True.
Because of the pre-packed list, it makes this feature unusable for my community. :(
This is really needed. For the non-english speakers, sometimes the words like gay, hui, hell are not bad words. Because they mean something else in their language.
We won't support a admin customisation for specific case in the near future but you can still edit or clear the bad word list from the admin.
@SeanPackham even if we clear the bad words list from admin, the words like "Gay", "Hui", etc. still get blocked. I checked in the mongo DB also, to see if there is some table that has the list of default blocked words. But there is no such table in DB also.
It looks like there is some check in the code, about these default bad words.
@adilshoukat thank you for your follow up. I will take a look to see if any of these words are hardcoded in our code or the package.
Use Case 1:

Result:

Use Case 2:

Result:

@SeanPackham I hope the information in last comment will help you diagnose the problem.
@SeanPackham Should we expect the fix anytime soon? :) Please help, it's causing big problems.
This is a real problem. If you enable filtering, it filters words like "class" because it has "ass" in it. Making it pretty pointless. Ideally can disable default words and use Regular Expressions for the custom black list.
+1 for cloudsandladders 's suggestion to be able to use regular expressions for the custom black list.
In my case I have to censor the email addresses and I am unable to do it with this feature. I can only block 'gmail' for example.
we'll split into two settings (so you'll be able to have custom filtered words without using the pre-defined database) and later on move this feature into an app (installed by default)
It's pretty upsetting to see that "gay" is listed by default as a bad word.
I think the bad words list should be empty by default as it is something really cutural / contextual to each Rocket Chat installation.
I understand @trivoallan .. please consider opening an issue on the package we use as well (the one that provides the default bad words list): https://github.com/web-mech/badwords/
@sampaiodiego Thanks for the advice. It has been removed. Fix is available in new badwords package version 3.0.2 : https://github.com/web-mech/badwords/commit/88d1aed0e2466510c01d70e99359322036ea3ab4
cool.. 10 hours ago =) @trivoallan do you mind raising a PR to update the library? thx
@sampaiodiego Here's the PR : #13705
Would you review it ?
There's also a test "on hold", and i don't know how to change its status.
Most helpful comment
@SeanPackham I hope the information in last comment will help you diagnose the problem.