How To Detect Gibberish In Python?
I have been getting a lot of spam in a python server I have containing bad words and gibberish. I've handled the bad word part, but can't find out how to do the gibberish part. Iv'e tried all sorts of methods. Someone please help?
you could try and compare it against a dictionary, and also try to see how many repeating characters there are next to each other (like
string == string and string == string and string == string)
or, you could just ban the spammers :)