profanityfilter
profanityfilter copied to clipboard
A universal Python library for detecting and filtering profanity
I would like to be able collect the words that `ProfanityFilter.censor` censors into my logs, so I can determine whether or not I would like to whitelist them as they...
When I was using your (wonderful by the way) profanity filter module, I did happen to realize that there was a limitation for my use - there was no way...
These methods used to have quadratic runtime of O(|Profane Words| * |input_text|) (possible even slower if you consider the runtime of the regex operations within the censor method). Using censor...
I got this error to run code. ``` Traceback (most recent call last): File "/home/nitin/PycharmProjects/filter/test.py", line 1, in from profanity_filter import ProfanityFilter File "/home/nitin/anaconda3/envs/filter/lib/python3.7/site-packages/profanity_filter/__init__.py", line 1, in from profanity_filter.console import...
this seems to be yet another absolutely useless bundle of code. for the life of me, I cannot get a single bit of output, not even errors.
Fixes #25 The word list is inserted into a regular expression without escaping, so if it contains any regex-significant characters such as `+`, the filter will behave in unexpected ways,...
"Bad words" containing characters significant in regular expressions are not escaped, which results in them not being detected correctly. For example, `13i+ch` is actually looking for strings containing "13ich", "13iich",...