Gabriel-Ciriaco / super-profanity

An advanced profanity filter based on phonetics and normal detection that detects swears in 27 different languages!
Mozilla Public License 2.0
16 stars 2 forks source link

Help with false positives. #2

Open Gabriel-Ciriaco opened 2 years ago

Gabriel-Ciriaco commented 2 years ago

After the fixes which were made until Release 1.1.1, lots of false positives might appear during detection. For example, if the sentence contains the expression but it, the checker will detect the presence of the bad word butt. A quick fix is whitelisting this expression with the whiteListWord function. Therefore, it would be helpful if you could post the false positives and negatives you find in any language, so I can update the profanity list.

Bytedefined commented 2 years ago

Is it possible to find a giant JSON file of words from a language, that are not inappropriate and just whitelist then within the library?

I'm not sure whether or not that will have any performance impacts.

Bytedefined commented 2 years ago

/ whether it's possible to find such JSON files.