views:

397

answers:

3

What is the best profanity filter (free / open source or paid commercial) which supports Java integration?

It needs to be able to take a string and return a clean string... Can be a web service and doesn't necessarily have to support Java...

Happy programming...

+3  A: 

Check out this Open Source profanity filter from KickJava.com. It'll replace a bad word with something similar to $%@!

Lucas McCoy
Eyeballing the code, it looks like it is an inefficient solution and it suffers from the Scunthorpe problem: see http://en.wikipedia.org/wiki/Scunthorpe_problem
Stephen C
In short, it is $%@! :-)
Stephen C
@Stephen C: That Wikipedia article is hilarious. I'll see if I can find another library for him to use, until then if he uses this want I just hope no one from the town of **Scunthorpe, North Lincolnshire, England** uses his program. ;-)
Lucas McCoy
A: 

how about trying: http://www.webpurify.com

Chris Miller
A: 

You can also try Clean Speak Inversoft.

It has a Java API that you can drop into the classpath of your Java application. It is also one of the best filters on the market and can filter much more than just profanity. It also doesn't suffer from the Scunthorpe problem because it performs contextual analysis as it filters.

Brian Pontarelli