On Feb 16, 2011, at 5:10 AM, Massimo Di Pierro wrote:
> 
> I am not an expert on bad words in english, I could do a better job in
> Italian. ;-)

No doubt...

It's a tough problem, regardless, and it's awfully easy to get false positives. 
Better not misspell shiitake mushrooms.

> 
> On Feb 15, 11:20 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
>> On Feb 15, 2011, at 11:21 AM, Massimo Di Pierro wrote:
>> 
>> 
>> 
>>> import base64, re
>>> BADWORDS=re.compile(base64.b64decode("""KGFob2xlfGFudXN8YXNoMGxlfGFzaDBsZXN 
>>> 8YXNob2xlc3xhc3N8YXNzfGFzc2ZhY2V8YXNzaDBs
>> 
>> There are some very peculiar choices (and omissions) in that list.
>> 
>> rautenberg? job?
>> 
>> honkey, but not honky (or its orginal, bohunk).
>> 
>> Aside from the word choice, if you're going to use it, change match to 
>> search, bracket the pattern with \b's, and make it case-insensitive.


Reply via email to