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

Profane inside word #16

Closed
johnroper100 opened this issue Dec 22, 2018 · 6 comments
Closed

Profane inside word #16

johnroper100 opened this issue Dec 22, 2018 · 6 comments

Comments

@johnroper100
Copy link

Hi, I'd like to use this to check if usernames include profane words, however, usernames are all one word and is_profane isn't able to pick up profane words when they are connected to other words. Can you add support for this? For example, if an inputted username is f***youusername it should mark as profane.

@areebbeigh
Copy link
Owner

Noted. Thanks.

areebbeigh added a commit that referenced this issue Dec 22, 2018
Improved documentation and optional word boundaries (Issue #16)
@areebbeigh
Copy link
Owner

areebbeigh commented Dec 22, 2018

Implemented. 0de9956

Refer to Word Boundaries in the docs.

@johnroper100
Copy link
Author

Thanks!

@johnroper100
Copy link
Author

This doesn't seem to apply to is_clean

@areebbeigh
Copy link
Owner

Could you provide the sample code? Because is_clean is passing in https://github.com/areebbeigh/profanityfilter/blob/master/tests/test_profanity_noboundries.py

@areebbeigh areebbeigh reopened this Feb 21, 2019
@johnroper100
Copy link
Author

Sorry, my mistake, I was testing without boundries turned off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants