ThreeLetters / NoSwearingPlease

Advanced profanity filter based on phonetics
MIT License
14 stars 3 forks source link

'Pud' detected as offensive #1

Open ghost opened 4 years ago

ghost commented 4 years ago

I run a discord bot and use this framework for my bot's anti-swear filter. For some reason, it doesn't like any words with 'pud' in it, like pudding. Pud, (here at least) means pudding so a desert. Would be nice if you could fix this issue. Thanks!

image

Andrews54757 commented 4 years ago

@OllieWoT This is actually an outdated, broken library. The updated library is more advanced, and incorporates a machine learning algorithm.

However, the new version is very slow. During my test runs, people have purposely inundated the bot with text to crash it.

As a result, I have not published that version yet. In the future, I may release once this issue has been resolved.

For now, try using another library. The current version of this library is experimental at best.

ghost commented 4 years ago

Thanks for your quick reply!

I have made a manual exeption in my bot's anti-swear module and flow.

If anyone else has to do this, I just used this before the check then instead, checked remove1. var checkThis = args.join(' ').toLowerCase(); var remove1 = checkThis.replace('pud', '');

I actually couldn't find any other library that is better than this and actually works so I think I'm just going to have to add exceptions when issues are found. Please keep me up-to-date on your new library you are working on, would be cool to be able to use it! :)