vandie / isProfanity

A profanity checker which, unlike alternatives, uses the Wagner–Fischer algorithm in order to catch variations that you haven't thought of.
MIT License
12 stars 4 forks source link

Words containing punctuation is false positive #5

Open harryxue1999 opened 6 years ago

harryxue1999 commented 6 years ago

For example, a normal sentence like How are you doing? will become positive (i.e., is profanity).

Unfortunately I am unable to find a pattern as some words with punctuation are fine (example: elloeh?)

vandie commented 6 years ago

the only fix I can think of is replacing standard punctuation with spaces before running the check. I'll take a look later.