We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any way to return a list of words that are profane instead of replacing them with characters?
The text was updated successfully, but these errors were encountered:
Wasn't sure if that as so clear. What i mean is that something like
s = 'I want to shit and poop.' p = profanity.get_profanity_list(s) print(p) // ['shit', 'poop']
Sorry, something went wrong.
Currently the package doesn't support this, but it sounds like a really good feature to have. You're more than welcomed to create a PR to add it in :)
A workaround I can think of is to iterate through the string, after calling .censor, and check which words have been replaced by asterisks.
.censor
Currently the package doesn't support this, but it sounds like a really good feature to have. You're more than welcomed to create a PR to add it in :) A workaround I can think of is to iterate through the string, after calling .censor, and check which words have been replaced by asterisks.
That’s exactly what I ended up doing lol. Thanks anyway
@snguyenthanh would you be able to take a look at the latest issue (#31) as I think that is a real bug? Thank you very much and love your work!
No branches or pull requests
Is there any way to return a list of words that are profane instead of replacing them with characters?
The text was updated successfully, but these errors were encountered: