-
Notifications
You must be signed in to change notification settings - Fork 0
/
word_classify.py
47 lines (43 loc) · 1.04 KB
/
word_classify.py
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
# suffix =
# {
# a: ac, ge, al, an, ar, at
# b: be
# c: ce, cy, cs
# e: ed, en, em, er
# d: de
# f: fy
# g: ge
# i: it, ia, ic, ip
# l: ly,le
# m: me, my
# n: nt, ng, ne
# o: on
# p: pe
# r: re, rt, rd, ry
# s: se, ss, st, sh, sm
# t: te, ty
# v: ve
# }
prefix = {
'a': ['ac', 'ad', 'af', 'ag', 'al', 'an', 'ap', 'as', 'at' ,'ab','ae','ar','au'],
'b': ['ba', 'be', 'bi'],
'c': ['ca', 'ce', 'ch', 'ci', 'co', 'cr', 'cu', 'cy'],
'd': ['de', 'di', 'do', 'du', 'dy'],
'e': ['ec', 'en', 'ep', 'eq', 'ex'],
'f': ['fa', 'fe', 'fi', 'fl', 'fo', 'fr'],
'g': ['ge', 'gi', 'gl', 'gr'],
'h': ['he', 'ho', 'hu', 'hy'],
'i': ['ig', 'il', 'im', 'in', 'ir'],
'l': ['la', 'le', 'li', 'lo'],
'm': ['ma', 'me', 'mi', 'mu', 'mo'],
'n': ['na', 'no', 'nu'],
'o': ['oc', 'op', 'ol', 'om', 'ov'],
'p': ['pa', 'pe', 'po', 'ph', 'pi', 'pl', 'pn', 'pr', 'pu'],
'q': ['qu'],
'r': ['re'],
's': ['sa', 'se', 'si', 'so', 'sp', 'st', 'su', 'sy'],
't': ['te', 'th', 'to','tr', 'tu'],
'u': ['ul', 'um' ,'un'],
'v': ['va', 've', 'vi', 'vo'],
'z': ['zo']
}