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 -- http://mail.python.org/mailman/listinfo/python-list