ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

Banned words

Open JDZC opened this issue 6 years ago • 2 comments

Hi I have another question! (Sorry for bother, I'm using chatterbot for a school project)

How did I exactly use the excluded words parameter? I can't get any progress trying to use it and I need a dirty word filter. Also, the paramater allows me to anserw something back? Like: User: f**k (excluded word) Bot: This is not a good thing to say

JDZC avatar Sep 28 '19 15:09 JDZC

Yes it is possible, you have to write your own pre processer to block such words https://chatterbot.readthedocs.io/en/stable/preprocessors.html

vkosuri avatar Sep 28 '19 15:09 vkosuri

@vkosuri Is using preprocessor better than a logical Adapter for speed reasons in the context of dealing with that kind of input ? Or is there another reason ?

ChristianTremblay avatar Nov 20 '20 02:11 ChristianTremblay