Skip to content

Commit 7ffe479

Browse files
committed
Extend normalised character map
1 parent 74724f9 commit 7ffe479

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

nas/profanity.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,45 @@ var symbolEquivalences = map[rune]rune{
2222
'9': 'g',
2323
'2': 'z',
2424
'(': 'c',
25+
'©': 'c',
26+
'®': 'r',
27+
'&': 'a',
28+
'@': 'a',
29+
'!': 'i',
30+
'$': 's',
31+
'#': 'h',
32+
'α': 'a',
33+
'β': 'b',
34+
'γ': 'g',
35+
'δ': 'd',
36+
'': 'a', // These are symbols with letters in them
37+
'': 'b',
38+
'': 'x',
39+
'': 'y',
40+
'': 'l',
41+
'': 'r',
42+
'': 'a',
43+
'': 'b',
44+
'': 'c',
45+
'': 'd',
46+
'': 'e',
47+
// '': 'er', // TODO find a solution to normalize this
48+
// '': 're',
49+
'': 'e',
50+
'': '2',
51+
'': '2',
52+
'': 'a',
53+
'': 'a',
54+
'': 'a',
55+
'': 'a',
56+
'': 'a',
57+
'': 'a',
58+
'': 'b',
59+
'': '1',
60+
'': 'b',
61+
'': 'b',
62+
'': 's',
63+
'': 's',
2564
}
2665

2766
func CacheProfanityFile() error {

0 commit comments

Comments
 (0)