summaryrefslogtreecommitdiff
path: root/profanity_filter.py
diff options
context:
space:
mode:
authorScott <[email protected]>2022-01-26 21:34:26 -0800
committerScott <[email protected]>2022-01-26 21:34:26 -0800
commit36fea7f15ed17150691b5b3ead75450e575229ef (patch)
tree883ec076d7abe7683231244d27ca2c603ffcf031 /profanity_filter.py
parenta0c6b6c28214e0f5167bc25690ada5d83d933086 (diff)
Ran black code formatter on everything.
Diffstat (limited to 'profanity_filter.py')
-rwxr-xr-xprofanity_filter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/profanity_filter.py b/profanity_filter.py
index 4723a2d..95540fa 100755
--- a/profanity_filter.py
+++ b/profanity_filter.py
@@ -494,7 +494,9 @@ class ProfanityFilter(object):
result = result.replace('3', 'e')
for x in string.punctuation:
result = result.replace(x, "")
- chunks = [self.stemmer.stem(word) for word in nltk.word_tokenize(result)]
+ chunks = [
+ self.stemmer.stem(word) for word in nltk.word_tokenize(result)
+ ]
return ' '.join(chunks)
def tokenize(self, text: str):