deleted container.py and fix detector
This commit is contained in:
@@ -33,7 +33,7 @@ class ProfanityDetector:
|
||||
|
||||
for bad_word in self.dictionary.words:
|
||||
|
||||
if lemma.startswith(bad_word):
|
||||
if lemma == bad_word or lemma.startswith(bad_word + "-"):
|
||||
|
||||
result.append(word)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user