WhiteHouse / petitions

Drupal installation profile powering We The People at petitions.whitehouse.gov
https://petitions.whitehouse.gov/
1.14k stars 336 forks source link

Respect word boundaries in profanity detector #53

Closed jpmckinney closed 5 years ago

jpmckinney commented 11 years ago

See #51. This change will avoid a massive number of false positives. The old code would flag anything with the words "classic", "grass", "passion", "assure" and hundreds of other words, because they all contain the substring "ass". I can provide similar lists of non-profane words for other words in the default list of profanities.