So, Tay the racist tweeter bot... one thing that could have prevented this would have been to have a list of watchwords to not respond to, with some logic similar to foreach (word in msg) {if (banned_words.has(word)) disregard()}.

Even if that wouldn't, what I'm getting at is obvious: I am building a chatterbot that must be kid-friendly. For my sake and for the sake of whoever finds this question, is there a resource consisting of a .csv or .txt of such words that one might want to handle? I remember once using a site-blocking productivity extension that had visible its list of banned words; not just sexually charged words, but racial slurs, too.

  • 1
    $\begingroup$ Banning words without context is not really fruitful. For example 'you have a car to kill for' is not the same as 'i will kill you'. Also anyone can make racist tweets with common words, you don't need bad words to make bad sentences. $\endgroup$
    – user9947
    Apr 5 '20 at 6:43
  • $\begingroup$ Certainly, though, it could be useful to ban more obvious words? There is zero excuse for using, for example, the more strident and unambiguous racial slurs. $\endgroup$ Apr 5 '20 at 14:02
  • $\begingroup$ Well you cannot prevent anything. That's the point you can ban as many words you like. If someone wanted to make it learn it will make it learn, racism is not bound to racial slurs. $\endgroup$
    – user9947
    Apr 5 '20 at 14:42

I have not found one other than scraping a few pages from Urban Dictionary, I built my list via crowdsourced style and got a number of interesting words I had not considered.

Start with the worst words you can think of, then try slang and accidental or on purpose misspellings of them


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.