summaryrefslogtreecommitdiff
path: root/profanity_filter.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-10-02 09:03:31 -0700
committerScott Gasch <[email protected]>2021-10-02 09:03:31 -0700
commitfa4298fa508e00759565c246aef423ba28fedf31 (patch)
tree7afd570b762035564a6d45c1fcf03697e6ee9f79 /profanity_filter.py
parentb0bde5bef4a19382136112196b238088641738d5 (diff)
changes
Diffstat (limited to 'profanity_filter.py')
-rwxr-xr-xprofanity_filter.py3
1 files changed, 3 insertions, 0 deletions
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',