8
shouts

Simple .NET Profanity Filter - James Newton-King

published 220 days, 7 hours, 6 minutes ago posted by impaimpa 221 days, 5 hours, 13 minutes ago
Saturday, July 04, 2009 11:12:11 AM GMT Friday, July 03, 2009 1:04:47 PM GMT

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.IList

category: Foundation | clicked: 46 | | source: james.newtonking.com | show counter code
tags: .NET, C#