-
Notifications
You must be signed in to change notification settings - Fork 0
/
EDtbl.sl
executable file
·111 lines (111 loc) · 1.65 KB
/
EDtbl.sl
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
# EDtbl.sl
# stemming logic for -ED in English
# see stemLogic.py
BLOCK ed
IF i
LEN = 4 {SU -1}
IS xk {SU}
IF t
IS mpr {SU 1 y}
END {SU -1}
END {SU 1 y}
IF e
IF r
LEN = 4 {FA}
LEN > 4
IF ga {SU -1}
if ce {SU -1}
IS bcg {FA}
END
END {SU -1}
IF tn {SU -1}
LEN = 4
IS pt {SU -1}
END
END {FA}
IS u {SU -1}
IF gni
LEN = 6
IS drwk {SU}
END
END {SU -1}
IF h
IF s
LEN = 4 {FA}
IS rdk {FA}
IF lo {FA}
END
END {DO MORE}
IF b
IF ma {FA}
IS ioulmb {DO MORE}
IF r
IS e {FA}
END {SU}
END {FA}
IF wn {FA}
LEN = 4
IS cwoksgy {SU -1}
IS x {SU}
IF rb {SU -1 ed}
IF ps {SU -1 ed}
IF lp {SU -1 ad}
IS h {FA}
IF l
IS s {FA}
IS f {SU -1 e}
END {SU -1 ed}
END {FA}
LEN = 3
IS f {SU -1 ed}
IS l {SU -1 ad}
END {FA}
IF l
IF si {SU -1 ad}
IF ived {SU}
IF ari {SU}
END {DO MORE}
IF fre {SU -1 ed}
IF m
IF h {FA}
IF aho {FA}
IF m
IF aho {FA}
end {SU 1}
IF e
IS e {SU}
END {SU -1}
IF i
IS au {SU}
END {SU -1}
IS lr {SU}
IF a
IS eo {SU}
END {SU -1}
IS u {SU -1}
IF osn {SU}
IF oo {SU}
IF o {SU -1}
end {SU 1}
IF f
IF f
IF ioc {SU 1}
END {SU}
IF ei {SU}
IF l {SU}
IF ee {SU}
IS aio {DO MORE}
END {SU -1 ed}
IF vve {SU 1}
IF r
IS fthd {FA}
IF ar {FA}
IF c
IF ass {SU -1}
END {FA}
IF b
IS norts {SU 0 eed}
END {SU}
IF yt {SU}
END
DEFAULT {DO MORE}