RESTful Obscenity is an RESTful API wrapper for Obscenity, a profanity filter gem for Ruby. A hosted instance is available at at http://restfulobscenity.herokuapp.com/. Source code on GitHub.
Set up your blacklist with /use?list=.
Example request:
http://restfulobscenity.herokuapp.com/use?list=url_to_blacklist.yml
If no blacklist is set, the default Obscenity blacklist is used. There is also an international flavour. These can form the basis of your own blacklists.
Check a sentence for profanity with /check?sentence=.
Example request:
http://restfulobscenity.herokuapp.com/check?sentence=this%20is%20crap
Example response:
{"profane":true}
Clean a sentence with /clean?sentence=.
Example request:
http://restfulobscenity.herokuapp.com/clean?sentence=this%20is%20crap
Example response:
{"cleaned_sentence":"this is ****"}
Cleaner API interface
Copyright (c) 2012 Thiago Jackiw. See LICENSE.txt for further details.