Earlier quoted context omitted.
It also mostly checks for English naughty words and not much else. People can have fun in lots of other languages, so it would seem this is a small sample.
After looking through it quickly it seems to do the same as most profanity checks with Dutch: it doesn't block "kut" (a crude word for female genitalia) but it does block "kunt" (third person form of "can")
The naughty username checking system used by Twitch
111–120 of 348 posts
Re: The naughty username checking system used by Twitch
#112I wonder why they didn't go with syllables and something like a levenshtein distance to syllables? That way they could more easily maintain similar looking and sounding words, including leetspeak and other variants. Because with this kind of approach, something like "yolocaust" will get through, as most checks only go with exact matches and permutations will always get around it easily... Whereas with something like…
Re: The naughty username checking system used by Twitch
#113Actually in Twitch's codebase: OR replace($1,'_','') SIMILAR TO '%(hate|kill|keel|hang|burn|gasthe)%(black|bl4ck|black|jew|trans|gay|african|afrikan|minorit|asian|nig|n1g)%' Twitch: "Hatred against Blacks, Jews, Asians, trans? BANNED! Hatred against Whites? I'LL ALLOW IT!"
Re: The naughty username checking system used by Twitch
#114Actually in Twitch's codebase: OR replace($1,'_','') SIMILAR TO '%(hate|kill|keel|hang|burn|gasthe)%(black|bl4ck|black|jew|trans|gay|african|afrikan|minorit|asian|nig|n1g)%' Twitch: "Hatred against Blacks, Jews, Asians, trans? BANNED! Hatred against Whites? I'LL ALLOW IT!"
You are so hungry to start something here, you've posted this exact same comment 3 times. Wouldn't you have more fun on 4chan?
Re: The naughty username checking system used by Twitch
#115Re: The naughty username checking system used by Twitch
#116Why not just convert numbers like 1 to i or l then check with a manually created bad word list? Would regex be really much faster than checking it against a 1000 or more bad word list? Also bad word list can easily get updated by moderators as well, I really can’t understand the logic behind using so much regex.
A bad words list is a regex. ;-) But note: for the most part this isn't using regexs, and to the extent it does, it seems largely intended to make the maintainers' lives easier by avoiding having to represent (and maintain) all the permutations they are trying to match for. What's sad though is that they're doing many, many passes through the pattern matcher, rather than just building a single big DFA from the whole…
Re: The naughty username checking system used by Twitch
#117We had to do this for a link shortening system (to make sure random base64 didn't contain profanity). It was a pretty fun problem. Not just the implementation, but doing the math to make sure it didn't make our shortened links easily enumerable. The implementation wasn't too bad, but we set up logging initially to spit out any random strings it decided to block. I demo'd this in front of the whole company and live ta…
Re: The naughty username checking system used by Twitch
#118Re: The naughty username checking system used by Twitch
#119We had to do this for a link shortening system (to make sure random base64 didn't contain profanity). It was a pretty fun problem. Not just the implementation, but doing the math to make sure it didn't make our shortened links easily enumerable. The implementation wasn't too bad, but we set up logging initially to spit out any random strings it decided to block. I demo'd this in front of the whole company and live ta…
It worked surprisingly well when we used it.
Re: The naughty username checking system used by Twitch
#120Reminds me of the guy that streamed a talking banana on Twitch, where viewers could make it say things. People submitted variations of the n-word and got him banned, and after trying to filter out all character combinations he could think of he wrote a phonetic filter. That apparently worked much better than trying to think of every permutation of characters that sounds like bad words. https://youtu.be/bJ5ppf0po3k?t=…
They figured that out on Ellis Island so yeah. Soundex.