A Simple .NET Profanity Filter(james.newtonking.com)
submitted by
JamesNK(3015) 2 years, 7 months ago
A website I am working on right now accepts public comments, and one of the requirements is to do a basic check for dirty language. Surprisingly for such a common problem I wasn’t able to find any code on the net that did what I wanted and so I’ve ended up writing my own.
The Censor class is pretty simple: you give it a list of words you want to censor, either simple text or with wildcards, and the censor will star out any matches it finds.
|category: C#
|Views: 652
tags:
C# another
Everyones tags:
Your Tags: