You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use a custom dictionary for other things I was hoping to use the same dictionary here. The issue is this dictionary is all upper case. I'm not in a position to change the dictionary used everywhere else so I'm needing this library to Lower the dictionary word as it runs
What do you see?
ran with the following input list words := []string{"FUCK", "ass", "POOP", "penis", "bitch"}
and this custom Dictionary WithCustomDictionary([]string{"FUCK", "ASS", "POOP", "PENIS", "BITCH"}, DefaultFalsePositives, DefaultFalseNegatives)
im getting the following output
Expected true, got false from word FUCK
Expected true, got false from word ass
Expected true, got false from word POOP
Expected true, got false from word penis
Expected true, got false from word bitch
What do you expect to see?
I expeted it to pass the test in all cases
List the steps that must be taken to reproduce this issue
use custom dictionary containing uppercase words
Run the test
Version
latest
Additional information
I have a functional fork that i would like to bring in where i am ToLower the dictionary words as they come through the Extract profanity function
The text was updated successfully, but these errors were encountered:
Describe the bug
We use a custom dictionary for other things I was hoping to use the same dictionary here. The issue is this dictionary is all upper case. I'm not in a position to change the dictionary used everywhere else so I'm needing this library to Lower the dictionary word as it runs
What do you see?
ran with the following input list
words := []string{"FUCK", "ass", "POOP", "penis", "bitch"}
and this custom Dictionary
WithCustomDictionary([]string{"FUCK", "ASS", "POOP", "PENIS", "BITCH"}, DefaultFalsePositives, DefaultFalseNegatives)
im getting the following output
Expected true, got false from word FUCK
Expected true, got false from word ass
Expected true, got false from word POOP
Expected true, got false from word penis
Expected true, got false from word bitch
What do you expect to see?
I expeted it to pass the test in all cases
List the steps that must be taken to reproduce this issue
Version
latest
Additional information
I have a functional fork that i would like to bring in where i am ToLower the dictionary words as they come through the Extract profanity function
The text was updated successfully, but these errors were encountered: