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

Why is "god" triggering the profanity filter? #87

Open
mfxuus opened this issue Sep 17, 2020 · 5 comments
Open

Why is "god" triggering the profanity filter? #87

mfxuus opened this issue Sep 17, 2020 · 5 comments

Comments

@mfxuus
Copy link

mfxuus commented Sep 17, 2020

I only see "God-damned" in the language list, but using god alone was also triggering the check. Any ideas what could be going on? Thanks!

@alenros
Copy link

alenros commented Sep 17, 2020

This is not intended as a statement. there's a problem with dashes:
see #82

@mfxuus
Copy link
Author

mfxuus commented Sep 17, 2020

AH... I think "god" is actually from package badwords-list, since I see that package imported, and "god" is in the list over there... Not sure though.

@cristian1980
Copy link

"god" is not in the bad word list but "God-damned" is, see here https://github.com/web-mech/badwords/blob/master/lib/lang.json

A workaround would be to remove "god" form the bad word list before doing the filter, for example:

            languageFilter.removeWords("god");
            console.log(languageFilter.clean("Now tell me there is God watching over us!"));

This is a workaround, not a proper fix.

@Falling10fruit
Copy link

I have never seen so many bad words in my life meshed into one sitting.

@Falling10fruit
Copy link

Maybe that's why Scratch didn't allow us to make a bad word filter

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

4 participants