projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b22b394
)
Add another profanity.
author
Scott Gasch
<
[email protected]
>
Sun, 6 Feb 2022 23:12:38 +0000
(15:12 -0800)
committer
Scott Gasch
<
[email protected]
>
Sun, 6 Feb 2022 23:12:38 +0000
(15:12 -0800)
profanity_filter.py
patch
|
blob
|
history
diff --git
a/profanity_filter.py
b/profanity_filter.py
index e227165ba19a2b258847a9e8b86f9adc87de8fb5..e5c9e11b59a9f45b0aed4288a61b9fed09ca34ee 100755
(executable)
--- 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('')