From: Scott Gasch Date: Sun, 6 Feb 2022 23:12:38 +0000 (-0800) Subject: Add another profanity. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=309ddadb402e09bf09bc38ca455dcaef7e08619e;p=python_utils.git Add another profanity. --- diff --git a/profanity_filter.py b/profanity_filter.py index e227165..e5c9e11 100755 --- a/profanity_filter.py +++ b/profanity_filter.py @@ -237,6 +237,9 @@ class ProfanityFilter(object): 'girl gone wild', 'girl on top', 'girl on', + 'give head', + 'giving head', + 'gave head', 'goatcx', 'goatse', 'goddamn', @@ -560,7 +563,7 @@ class ProfanityFilter(object): break return out - words = self.tokenize(text) + words = [x for x in self.tokenize(text)] words.append('') words.append('') words.append('')