Open shopeonarope opened 3 years ago
Here's an example of what I am seeing.
>>> from better_profanity import profanity >>> profanity.contains_profanity('I have to go pee') True >>> profanity.contains_profanity('I have to go "pee"') False
I looked around and it doesn't seem like this behavior is intentional.
tokenization and scunthropic need is a problem in this case.
I notice that it's able correctly identify profanity when the word is surrounded by left and right double quotes.
>>> profanity.contains_profanity('I have to “pee”') True
Since it's handling that specific case can it be made more general to handle other quoted strings?
Here's an example of what I am seeing.
I looked around and it doesn't seem like this behavior is intentional.