KanoComputing / nodejs-profanity-util

Utility for detection, filtering and replacement / obscuration of forbidden words
MIT License
42 stars 20 forks source link

Context defining profane vs non-profane words #1

Closed adlawson closed 10 years ago

adlawson commented 10 years ago

I know it's not really an issue to do with the library as such, but it may be worth warning users about the potential implications if used incorrectly.

Here's two very real stories of incorrectly applied filtering:

Common sense would tell you that the profanity filters in these cases may have been incorrectly applied, and context should have been taken into account.

As far as this issue and this library are concerned, maybe accounting for context is a bit out of scope, but a small warning in the readme might be useful.

tancredi commented 10 years ago

Good point, will better explain the scope of this utility in the readme.

tancredi commented 10 years ago

Added this to the readme:

Please note: This small utility module is written to prevent or monitor the use of certain words in your content without keeping context in account. An improper use may compromise the meaning of your content. Keep in account when using.

I'm aware that this type of solution may not work for everyone, in my specific use-case (I'm building a platform that children should be able to browse as safely as possible) it's more important to prevent swearing than risking compromising the content in some instances.

Interesting facts though, wasn't aware of those cases :+1:

adlawson commented 10 years ago

Looks good to me :+1: :dancers: