I would have voted this up for the advice about being careful for false positives. (ass is the obvious example in this case),
but it could have been done without the additional rant.
There are many reasons one may want to filter text. And blanking out swear words many people would appreciate.
The answers given here, could be useful for more than just censorship as you call it.