areebbeigh / profanityfilter

A universal Python library for detecting and filtering profanity
https://pypi.python.org/pypi/profanityfilter
BSD 3-Clause "New" or "Revised" License
73 stars 25 forks source link

Remove a word? #3

Closed jacebrowning closed 5 years ago

jacebrowning commented 7 years ago

Is there any way to remove a word from the list of bad words? For example, in my application that generates memes, I don't want to block "damn" because it's a key word in several memes.

areebbeigh commented 7 years ago

Not yet. I'll add it ASAP. I guess till then you could define a custom list of bad words by removing the acceptable words from get_bad_words()?

ali1234 commented 6 years ago

Likewise, I want to remove "screw" from the list, because I'm using this in a techy channel, people talk abut screws and nuts and bolts all the time. :)

areebbeigh commented 5 years ago

Although super late, this method has been added. Thanks.

https://github.com/areebbeigh/profanityfilter/commit/cdefbd2a3e9b961dd89b613f4530e04679f54288#diff-f8cb42dd5dae1ed599eb293175338441