-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordfilter-additions.js
104 lines (95 loc) · 1.53 KB
/
wordfilter-additions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// To get a better set of comments, I'm filtering out a lot of things.
// The words below are filtered in addition to the default set:
// https://github.com/dariusk/wordfilter/blob/master/lib/badwords.json
export default [
// Promotion, spam, link pollution.
'follow me',
'follow my',
'listen to my',
'check out',
'check my',
'subscribe',
'channel',
'my cloud',
'add me',
'profile',
'premiere',
'promo',
'repost',
'posted',
'full support',
'fully support',
'soundcloud',
'facebook',
'twitter',
'tiktok',
'tik tok',
'youtube',
'instagram',
'blog',
'free',
'download',
// Traditional spam.
'sex',
'cam',
'dollars',
'money',
'fans',
'plays',
'get play',
'get fan',
// URLs.
// Notice the double-escaping here, which makes sure the escape characters
// make it into the regex.
'http',
'www',
'\\.cc',
'\\.co',
'\\.do',
'\\.gl',
'\\.io',
'\\.ly',
'\\.net',
'\\.st',
// Replies, SoundCloud links, tags, etc.
'user\\-',
'\\@',
'\\\n',
'\\_',
'\\#',
// A few more curses and bad words and things that just too often are part of
// things I don't want this bot to post.
'arab',
'bibl',
'islam',
'israel',
'jew',
'judai',
'muslim',
'slave',
'fuck',
'rape',
'raping',
'gay',
'nig',
'igg',
'icc',
'voodoo',
'china',
'japan',
'asia',
'orient',
'africa',
// Ableist language.
'blind',
'cripple',
'deaf',
'handicap',
'idiot',
'insane',
'lame',
'mental',
'psycho',
'spaz',
'special need',
];