Are you aware of any open-source/free .NET profanity filter (ASP.NET MVC to be precise)? I searched google but I couldn't come up with any. I would like to avoid implementing it entirely on my own, if possible. It is so easy to make mistake or overlook something.
What a ******* good question.
(I would have added this as a comment, but I'm a ****)
Update
Ok, here is something that might be a bit more useful:
http://james.newtonking.com/archive/2009/07/03/simple-net-profanity-filter.aspx
The above describes a simple swear filter from a list of words using regular expressions.
You could download a list of swear words from here - http://www.noswearing.com/
albeit not .net specific, here's an open source list of profane words in multiple languages you can use https://github.com/uvasoftware/yara-language-nsfw
来源:https://stackoverflow.com/questions/6788868/any-open-source-free-net-profanity-filter-for-website