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

Wrong boolean value for .is_clean/.is_profane #23

Closed lvivoksana closed 2 years ago

lvivoksana commented 2 years ago

Hi! I installed the module with "!pip install profanityfilter" and ran the examples for .is_clean() and is_profane():

The result didn't coincide with mentioned by you (see attached screenshot).

profanityfilter issue 1

lvivoksana commented 2 years ago

Hello! I found out that code:

`pf.define_words(["icecream", "choco"]) pf.censor("I love icecream and choco!")

"I love **** and *****"`

had an impact on the results of the code that was run afterward.

https://areebbeigh.github.io/profanityfilter/ (instructions and description are here). I suppose this is not an issue anymore if it was designed in this way. Thank you!