Open hoseinmirian opened 2 years ago
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.
You can use the isProfane function to my knowledge. https://github.com/web-mech/badwords/blob/master/lib/badwords.js#L32
isProfane
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.