Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quoted profanities aren't censored #33

Open
shopeonarope opened this issue Jun 2, 2021 · 2 comments · May be fixed by #49
Open

Quoted profanities aren't censored #33

shopeonarope opened this issue Jun 2, 2021 · 2 comments · May be fixed by #49
Labels
bug Something isn't working

Comments

@shopeonarope
Copy link

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.

@BradKML
Copy link

BradKML commented Jun 2, 2021

tokenization and scunthropic need is a problem in this case.

@shopeonarope
Copy link
Author

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?

@jcbrockschmidt jcbrockschmidt added the bug Something isn't working label Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants