Files
LearnGO/go/pkg/mod/github.com/!twi!n/go-away@v1.6.13/falsenegatives.go
T
2024-09-19 21:38:24 -04:00

16 lines
615 B
Go

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",
}