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.
Asked
Active
Viewed 1.3k times
24
-
See here for some discussion around this: http://stackoverflow.com/questions/273516/how-do-you-implement-a-good-profanity-filter – Richard H Jul 22 '11 at 10:58
-
I did take a look at that discussion. Nothing for .NET (at least free/open source) – TPR Jul 22 '11 at 11:10
-
Why would you ever need such a thing? – CodesInChaos Jul 22 '11 at 13:47
-
It is just one of those things you need to have... – TPR Jul 22 '11 at 14:07
-
@CodeInChaos I need one as the client i am work for would prefer not to have swear words on their site as it is based at children. – Kieran Nov 17 '11 at 23:26
2 Answers
42
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/

devdigital
- 34,151
- 9
- 98
- 120
-
I did stumble upon that link, but it leaves implementation in my hand and by reading the comments, it seemed more on the naive side. I could be wrong. I will give that a try if nothing open-source is available. – TPR Jul 22 '11 at 11:38
-
thanks, i finaly found what i was looking for between the closed question or downvoted questions -_-.. – Sebastien H. Apr 03 '14 at 09:01
0
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

Rafael Ferreira
- 1,260
- 8
- 11