whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package goaway
|
||||
|
||||
// DefaultFalseNegatives is a list of profanities that are checked for before the DefaultFalsePositives are removed
|
||||
//
|
||||
// This is reserved for words that may be incorrectly filtered as false positives.
|
||||
//
|
||||
// Alternatively, words that are long, or that should mark a string as profane no what the context is
|
||||
// or whether the word is part of another word can also be included.
|
||||
//
|
||||
// Note that there is a test that prevents words from being in both DefaultProfanities and DefaultFalseNegatives,
|
||||
var DefaultFalseNegatives = []string{
|
||||
"asshole",
|
||||
"dumbass", // ass -> bASS (FP) -> dumBASS
|
||||
"nigger",
|
||||
}
|
||||
Reference in New Issue
Block a user