Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BannedWords = []BannedWord{}
View Source
var CharVariants = map[rune][]string{
'a': {"a", "@", "4", "α", "а", "𝒶", "𝓪", "𝔞", "𝖺"},
'b': {"b", "8", "β", "б", "𝒷", "𝓫", "𝔟", "𝖻"},
'c': {"c", "©", "¢", "ϲ", "с", "𝒸", "𝓬", "𝔠", "𝖼"},
'd': {"d", "∂", "δ", "д", "𝒹", "𝓭", "𝔡", "𝖽"},
'e': {"e", "3", "€", "ε", "е", "𝒆", "𝓮", "𝔢", "𝖾"},
'f': {"f", "ƒ", "φ", "ф", "𝒻", "𝓯", "𝔣", "𝖿"},
'g': {"g", "9", "γ", "г"},
'h': {"h", "♭", "η", "н", "𝒽", "𝓱", "𝔥", "𝖍"},
'i': {"i", "1", "ι", "и", "𝒾", "𝓲", "𝔦", "𝖎"},
'j': {"j", "ϳ", "ј", "𝒿", "𝓳", "𝔧", "𝖏"},
'k': {"k", "κ", "к", "𝓀", "𝓀", "𝔨", "𝖐"},
'l': {"l", "1", "£", "λ", "л", "𝓁", "𝓁", "𝔩", "𝖑", "/\\/\\", "|\\/|"},
'm': {"m", "ϻ", "м", "𝓂", "𝓂", "𝔪", "𝖒"},
'n': {"n", "η", "н", "𝓃", "𝓃", "𝔫", "𝖓"},
'o': {"o", "0", "ø", "ο", "о", "𝑜", "𝓞", "𝔬", "𝖔"},
'p': {"p", "ρ", "п", "𝓅", "𝓅", "𝔭", "𝖕"},
'q': {"q", "ϙ", "қ", "𝓆", "𝓆", "𝔮", "𝖖"},
'r': {"r", "®", "я", "𝓇", "𝓇", "𝔯", "𝖗"},
's': {"s", "5", "§", "σ", "с", "𝓈", "𝓈", "𝔰", "𝖘"},
't': {"t", "7", "τ", "т", "𝓉", "𝓉", "𝔱", "𝖙"},
'u': {"u", "µ", "υ", "у", "𝓊", "𝓊", "𝔲", "𝖚"},
'v': {"v", "√", "ν", "в", "𝓋", "𝓋", "𝔳", "𝖛"},
'w': {"w", "ω", "ш", "𝓌", "𝓌", "𝔴", "𝖜", "|/\\|", "\\/\\/"},
'x': {"x", "χ", "х", "𝓍", "𝓍", "𝔵", "𝖝"},
'y': {"y", "¥", "γ", "у", "𝓎", "𝓎", "𝔶", "𝖞"},
'z': {"z", "2", "ζ", "з", "𝓏", "𝓏", "𝔷", "𝖟"},
}
Functions ¶
func ObfuscatedRegex ¶
ObfuscatedRegex generates a regex pattern that matches a word with obfuscation.
func SetBannedWords ¶
SetBannedWords sets the list of banned words with their responses. It creates a regex for each word that allows for obfuscation and variations. The response defines how the word should be handled (censored, filtered, or banned).
Types ¶
Click to show internal directories.
Click to hide internal directories.