profanity

hi - looking for a way to do anti profanity validation in my application. Any suggestions of something that already exists? Thanks.
[138 byte] By [barcljavaa] at [2007-11-26 21:07:29]
# 1

> hi - looking for a way to do anti profanity

> validation in my application. Any suggestions of

> something that already exists? Thanks.

I don't know of anything that already exists - but I'm sure there is probably something out there.

On the other hand, regex should do the trick. It depends on the application, but you should be able to write something that does what you want in a reasonable amount of time.

Navy_Codera at 2007-7-10 2:42:20 > top of Java-index,Java Essentials,Java Programming...
# 2
****! ****! ****! ****! *******!
DrLaszloJamfa at 2007-7-10 2:42:20 > top of Java-index,Java Essentials,Java Programming...
# 3
> ****! ****! ****! ****! *******!****'s ***** *****?
CaptainMorgan08a at 2007-7-10 2:42:20 > top of Java-index,Java Essentials,Java Programming...
# 4

> On the other hand, regex should do the trick.

I'm not convinced that regex are applicable. Even if one considers just UK English, the number of possible swear words is very large so the regex will be massive and probably very slow. I would have thought that building a tree of possible swear words would be a better approach.

When it comes to swear words for different locale, I find it much more difficult to imagine a design.

sabre150a at 2007-7-10 2:42:20 > top of Java-index,Java Essentials,Java Programming...
# 5
the runescape swear filter is ****ing good. u should check it out if you have time, u might get some ideas off it.
Futurisdom_Developera at 2007-7-10 2:42:20 > top of Java-index,Java Essentials,Java Programming...
# 6
> Even if one considers just UK EnglishHave you every been to that pub, The Weary Banker?
DrLaszloJamfa at 2007-7-10 2:42:21 > top of Java-index,Java Essentials,Java Programming...