diff options
| author | Scott Gasch <[email protected]> | 2021-10-02 09:03:31 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-10-02 09:03:31 -0700 |
| commit | fa4298fa508e00759565c246aef423ba28fedf31 (patch) | |
| tree | 7afd570b762035564a6d45c1fcf03697e6ee9f79 /profanity_filter.py | |
| parent | b0bde5bef4a19382136112196b238088641738d5 (diff) | |
changes
Diffstat (limited to 'profanity_filter.py')
| -rwxr-xr-x | profanity_filter.py | 3 |
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', |
