summaryrefslogtreecommitdiff
path: root/profanity_filter.py
diff options
context:
space:
mode:
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',