Home > Uncategorized > A profanity filter using regular expressions (regex) to remove English swear words

A profanity filter using regular expressions (regex) to remove English swear words

2010/12/01

[this article is actually on our site worditout.com , here's just an intro and the link]

There appears to be little documentation available for helping developers write filters that are more sophisticated than simply checking individual words against a very large and predefined blacklist. We’re proud of how our filter works and think that this approach may be useful for others, so we’d like to share with you briefly how it works. Knowledge of regular expressions (regex) is assumed, and the coding here is in JavaScript.

See the whole article on http://worditout.com/community/blog/20100228/profanity-filter-removing-english-swear-words

About these ads
Follow

Get every new post delivered to your Inbox.