-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchat_elements.py
More file actions
292 lines (289 loc) · 10.9 KB
/
chat_elements.py
File metadata and controls
292 lines (289 loc) · 10.9 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# Thanks : https://github.com/NeelShah18/emot/blob/master/emot/emo_unicode.py
EMOTICONS = {
u":‑\)": "Happy face or smiley",
u":\)": "Happy face or smiley",
u":-\]": "Happy face or smiley",
u":\]": "Happy face or smiley",
u":-3": "Happy face smiley",
u":3": "Happy face smiley",
u":->": "Happy face smiley",
u":>": "Happy face smiley",
u"8-\)": "Happy face smiley",
u":o\)": "Happy face smiley",
u":-\}": "Happy face smiley",
u":\}": "Happy face smiley",
u":-\)": "Happy face smiley",
u":c\)": "Happy face smiley",
u":\^\)": "Happy face smiley",
u"=\]": "Happy face smiley",
u"=\)": "Happy face smiley",
u":‑D": "Laughing, big grin or laugh with glasses",
u":D": "Laughing, big grin or laugh with glasses",
u"8‑D": "Laughing, big grin or laugh with glasses",
u"8D": "Laughing, big grin or laugh with glasses",
u"X‑D": "Laughing, big grin or laugh with glasses",
u"XD": "Laughing, big grin or laugh with glasses",
u"=D": "Laughing, big grin or laugh with glasses",
u"=3": "Laughing, big grin or laugh with glasses",
u"B\^D": "Laughing, big grin or laugh with glasses",
u":-\)\)": "Very happy",
u":‑\(": "Frown, sad, andry or pouting",
u":-\(": "Frown, sad, andry or pouting",
u":\(": "Frown, sad, andry or pouting",
u":‑c": "Frown, sad, andry or pouting",
u":c": "Frown, sad, andry or pouting",
u":‑<": "Frown, sad, andry or pouting",
u":<": "Frown, sad, andry or pouting",
u":‑\[": "Frown, sad, andry or pouting",
u":\[": "Frown, sad, andry or pouting",
u":-\|\|": "Frown, sad, andry or pouting",
u">:\[": "Frown, sad, andry or pouting",
u":\{": "Frown, sad, andry or pouting",
u":@": "Frown, sad, andry or pouting",
u">:\(": "Frown, sad, andry or pouting",
u":'‑\(": "Crying",
u":'\(": "Crying",
u":'‑\)": "Tears of happiness",
u":'\)": "Tears of happiness",
u"D‑':": "Horror",
u"D:<": "Disgust",
u"D:": "Sadness",
u"D8": "Great dismay",
u"D;": "Great dismay",
u"D=": "Great dismay",
u"DX": "Great dismay",
u":‑O": "Surprise",
u":O": "Surprise",
u":‑o": "Surprise",
u":o": "Surprise",
u":-0": "Shock",
u"8‑0": "Yawn",
u">:O": "Yawn",
u":-\*": "Kiss",
u":\*": "Kiss",
u":X": "Kiss",
u";‑\)": "Wink or smirk",
u";\)": "Wink or smirk",
u"\*-\)": "Wink or smirk",
u"\*\)": "Wink or smirk",
u";‑\]": "Wink or smirk",
u";\]": "Wink or smirk",
u";\^\)": "Wink or smirk",
u":‑,": "Wink or smirk",
u";D": "Wink or smirk",
u":‑P": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u":P": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u"X‑P": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u"XP": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u":‑Þ": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u":Þ": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u":b": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u"d:": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u"=p": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u">:P": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u":‑/": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":/": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":-[.]": "Skeptical, annoyed, undecided, uneasy or hesitant",
u">:[(\\\)]": "Skeptical, annoyed, undecided, uneasy or hesitant",
u">:/": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":[(\\\)]": "Skeptical, annoyed, undecided, uneasy or hesitant",
u"=/": "Skeptical, annoyed, undecided, uneasy or hesitant",
u"=[(\\\)]": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":L": "Skeptical, annoyed, undecided, uneasy or hesitant",
u"=L": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":S": "Skeptical, annoyed, undecided, uneasy or hesitant",
u":‑\|": "Straight face",
u":\|": "Straight face",
u":$": "Embarrassed or blushing",
u":‑x": "Sealed lips or wearing braces or tongue-tied",
u":x": "Sealed lips or wearing braces or tongue-tied",
u":‑#": "Sealed lips or wearing braces or tongue-tied",
u":#": "Sealed lips or wearing braces or tongue-tied",
u":‑&": "Sealed lips or wearing braces or tongue-tied",
u":&": "Sealed lips or wearing braces or tongue-tied",
u"O:‑\)": "Angel, saint or innocent",
u"O:\)": "Angel, saint or innocent",
u"0:‑3": "Angel, saint or innocent",
u"0:3": "Angel, saint or innocent",
u"0:‑\)": "Angel, saint or innocent",
u"0:\)": "Angel, saint or innocent",
u":‑b": "Tongue sticking out, cheeky, playful or blowing a raspberry",
u"0;\^\)": "Angel, saint or innocent",
u">:‑\)": "Evil or devilish",
u">:\)": "Evil or devilish",
u"\}:‑\)": "Evil or devilish",
u"\}:\)": "Evil or devilish",
u"3:‑\)": "Evil or devilish",
u"3:\)": "Evil or devilish",
u">;\)": "Evil or devilish",
u"\|;‑\)": "Cool",
u"\|‑O": "Bored",
u":‑J": "Tongue-in-cheek",
u"#‑\)": "Party all night",
u"%‑\)": "Drunk or confused",
u"%\)": "Drunk or confused",
u":-###..": "Being sick",
u":###..": "Being sick",
u"<:‑\|": "Dump",
u"\(>_<\)": "Troubled",
u"\(>_<\)>": "Troubled",
u"\(';'\)": "Baby",
u"\(\^\^>``": "Nervous or Embarrassed or Troubled or Shy or Sweat drop",
u"\(\^_\^;\)": "Nervous or Embarrassed or Troubled or Shy or Sweat drop",
u"\(-_-;\)": "Nervous or Embarrassed or Troubled or Shy or Sweat drop",
u"\(~_~;\) \(・\.・;\)": "Nervous or Embarrassed or Troubled or Shy or Sweat drop",
u"\(-_-\)zzz": "Sleeping",
u"\(\^_-\)": "Wink",
u"\(\(\+_\+\)\)": "Confused",
u"\(\+o\+\)": "Confused",
u"\(o\|o\)": "Ultraman",
u"\^_\^": "Joyful",
u"\(\^_\^\)/": "Joyful",
u"\(\^O\^\)/": "Joyful",
u"\(\^o\^\)/": "Joyful",
u"\(__\)": "Kowtow as a sign of respect, or dogeza for apology",
u"_\(\._\.\)_": "Kowtow as a sign of respect, or dogeza for apology",
u"<\(_ _\)>": "Kowtow as a sign of respect, or dogeza for apology",
u"<m\(__\)m>": "Kowtow as a sign of respect, or dogeza for apology",
u"m\(__\)m": "Kowtow as a sign of respect, or dogeza for apology",
u"m\(_ _\)m": "Kowtow as a sign of respect, or dogeza for apology",
u"\('_'\)": "Sad or Crying",
u"\(/_;\)": "Sad or Crying",
u"\(T_T\) \(;_;\)": "Sad or Crying",
u"\(;_;": "Sad of Crying",
u"\(;_:\)": "Sad or Crying",
u"\(;O;\)": "Sad or Crying",
u"\(:_;\)": "Sad or Crying",
u"\(ToT\)": "Sad or Crying",
u";_;": "Sad or Crying",
u";-;": "Sad or Crying",
u";n;": "Sad or Crying",
u";;": "Sad or Crying",
u"Q\.Q": "Sad or Crying",
u"T\.T": "Sad or Crying",
u"QQ": "Sad or Crying",
u"Q_Q": "Sad or Crying",
u"\(-\.-\)": "Shame",
u"\(-_-\)": "Shame",
u"\(一一\)": "Shame",
u"\(;一_一\)": "Shame",
u"\(=_=\)": "Tired",
u"\(=\^\·\^=\)": "cat",
u"\(=\^\·\·\^=\)": "cat",
u"=_\^= ": "cat",
u"\(\.\.\)": "Looking down",
u"\(\._\.\)": "Looking down",
u"\^m\^": "Giggling with hand covering mouth",
u"\(\・\・?": "Confusion",
u"\(?_?\)": "Confusion",
u">\^_\^<": "Normal Laugh",
u"<\^!\^>": "Normal Laugh",
u"\^/\^": "Normal Laugh",
u"\(\*\^_\^\*)": "Normal Laugh",
u"\(\^<\^\) \(\^\.\^\)": "Normal Laugh",
u"\(^\^\)": "Normal Laugh",
u"\(\^\.\^\)": "Normal Laugh",
u"\(\^_\^\.\)": "Normal Laugh",
u"\(\^_\^\)": "Normal Laugh",
u"\(\^\^\)": "Normal Laugh",
u"\(\^J\^\)": "Normal Laugh",
u"\(\*\^\.\^\*\)": "Normal Laugh",
u"\(\^—\^\)": "Normal Laugh",
u"\(#\^\.\^#\)": "Normal Laugh",
u"\(\^—\^\)": "Waving",
u"\(;_;\)/~~~": "Waving",
u"\(\^\.\^\)/~~~": "Waving",
u"\(-_-\)/~~~ \($\·\·\)/~~~": "Waving",
u"\(T_T\)/~~~": "Waving",
u"\(ToT\)/~~~": "Waving",
u"\(\*\^0\^\*\)": "Excited",
u"\(\*_\*\)": "Amazed",
u"\(\*_\*;": "Amazed",
u"\(\+_\+\) \(@_@\)": "Amazed",
u"\(\*\^\^\)v": "Laughing,Cheerful",
u"\(\^_\^\)v": "Laughing,Cheerful",
u"\(\(d[-_-]b\)\)": "Headphones,Listening to music",
u'\(-"-\)': "Worried",
u"\(ーー;\)": "Worried",
u"\(\^0_0\^\)": "Eyeglasses",
u"\(\^v\^\)": "Happy",
u"\(\^u\^\)": "Happy",
u"\(\^\)o\(\^\)": "Happy",
u"\(\^O\^\)": "Happy",
u"\(\^o\^\)": "Happy",
u"\)\^o\^\(": "Happy",
u":O o_O": "Surprised",
u"o_0": "Surprised",
u"o\.O": "Surpised",
u"\(o\.o\)": "Surprised",
u"oO": "Surprised",
u"\(\* ̄m ̄\)": "Dissatisfied",
u"\(‘A`\)": "Snubbed or Deflated",
}
# Thanks to: https://github.com/rishabhverma17/sms_slang_translator/blob/master/slang.txt
ACRONYMS = {
"AFAIK": "As Far As I Know",
"AFK": "Away From Keyboard",
"ASAP": "As Soon As Possible",
"ATK": "At The Keyboard",
"ATM": "At The Moment",
"A3": "Anytime, Anywhere, Anyplace",
"BAK": "Back At Keyboard",
"BBL": "Be Back Later",
"BBS": "Be Back Soon",
"BFN": "Bye For Now",
"B4N": "Bye For Now",
"BRB": "Be Right Back",
"BRT": "Be Right There",
"BTW": "By The Way",
"B4": "Before",
"B4N": "Bye For Now",
"CU": "See You",
"CUL8R": "See You Later",
"CYA": "See You",
"FAQ": "Frequently Asked Questions",
"FC": "Fingers Crossed",
"FWIW": "For What It's Worth",
"FYI": "For Your Information",
"GAL": "Get A Life",
"GG": "Good Game",
"GN": "Good Night",
"GMTA": "Great Minds Think Alike",
"GR8": "Great!",
"G9": "Genius",
"IC": "I See",
"ILU": "I Love You",
"IMHO": "In My Honest Opinion",
"IMO": "In My Opinion",
"IOW": "In Other Words",
"IRL": "In Real Life",
"LDR": "Long Distance Relationship",
"LMAO": "Laugh My A.. Off",
"LOL": "Laughing Out Loud",
"LTNS": "Long Time No See",
"L8R": "Later",
"MTE": "My Thoughts Exactly",
"M8": "Mate",
"NRN": "No Reply Necessary",
"OIC": "Oh I See",
"PITA": "Pain In The Ass",
"PRT": "Party",
"PRW": "Parents Are Watching",
"ROFL": "Rolling On The Floor Laughing",
"ROFLOL": "Rolling On The Floor Laughing Out Loud",
"ROTFLMAO": "Rolling On The Floor Laughing My Ass Off",
"SK8": "Skate",
"ASL": "Age, Sex, Location",
"THX": "Thank You",
"TTFN": "Ta-Ta For Now!",
"TTYL": "Talk To You Later",
"U": "You",
"U2": "You Too",
"U4E": "Yours For Ever",
"WB": "Welcome Back",
"WTF": "What The Fuck",
"WTG": "Way To Go!",
"WUF": "Where Are You From?",
"W8": "Wait...",
"7K": "Sick",
}