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

adding hasBadWord as a boolean function #150

Open
hoseinmirian opened this issue Jun 24, 2022 · 1 comment
Open

adding hasBadWord as a boolean function #150

hoseinmirian opened this issue Jun 24, 2022 · 1 comment

Comments

@hoseinmirian
Copy link

I appreciate if you guide me if there is any way to only give back a true false if the sentence has a bad word? if not please create a function like hasBadWords() which returns either true or false.

@mudkipdev
Copy link

You can use the isProfane function to my knowledge.
https://github.com/web-mech/badwords/blob/master/lib/badwords.js#L32

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

No branches or pull requests

2 participants