From fa4298fa508e00759565c246aef423ba28fedf31 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Sat, 2 Oct 2021 09:03:31 -0700 Subject: changes --- profanity_filter.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'profanity_filter.py') diff --git a/profanity_filter.py b/profanity_filter.py index f238e7d..31577e0 100755 --- a/profanity_filter.py +++ b/profanity_filter.py @@ -8,12 +8,14 @@ import sys import nltk from nltk.stem import PorterStemmer +import decorator_utils import string_utils logger = logging.getLogger(__name__) +@decorator_utils.singleton class ProfanityFilter(object): def __init__(self): self.bad_words = set([ @@ -82,6 +84,7 @@ class ProfanityFilter(object): 'blonde action', 'blow j', 'blow job', + 'blowjob', 'blow my', 'blow me', 'blow ourselv', -- cgit v1.3