profanity filter
skip at pobox.com
skip at pobox.com
Wed Aug 16 14:17:57 EDT 2006
Ronny> replacement of profanity would be good, like ***** or so. It's
Ronny> for a website as opposed to checking email. Can SpamBayes be
Ronny> applied to comments or strings within a program?
SpamBayes scores inputs which look like emails (header, blank line, body).
All it does is add its score to the headers. You'd still have to elide the
profanity encountered. If you have a fixed list of profane words or phrases
it would probably just be easier to replace them with "***" using a (set of)
regular expression(s).
Skip
More information about the Python-list
mailing list