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

Picking up so many clean words #6

Open
tgreco opened this issue Jun 1, 2018 · 1 comment
Open

Picking up so many clean words #6

tgreco opened this issue Jun 1, 2018 · 1 comment

Comments

@tgreco
Copy link

tgreco commented Jun 1, 2018

I'm using the word bongo and it's failing for the word homo, with a sensitivity of 0.01.

var isprofanity = require("isprofanity")

isprofanity('bongo', function(t, blocked)
{
console.log(t)
console.log(blocked[0])
}, 0.01);


My solution:

isprofanity('bongo', function(t, blocked)
{
if(blocked[0].sureness > 0.66)
{
console.log("True");
}

else 
{
    console.log(blocked[0]);
    console.log("False")
}

}, 0.25);

@vandie
Copy link
Owner

vandie commented Aug 6, 2018

@tgreco, There is an option to set your minimum sureness rating to block. Take a look at the docs, I never did quite find the perfect rating. someone always found somthing that shouldn't be blocked or shouldn't be. you're best tweaking it for your own personal usage.

also a sensativity of 0.01 means that it requires a sureness of 0.01 or higher...

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