8
shouts

Simple .NET Profanity Filter - James Newton-King

published 253 days, 12 hours, 45 minutes ago posted by impaimpa 254 days, 10 hours, 53 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: 47 | | source: james.newtonking.com | show counter code
tags: .NET, C#