-
Notifications
You must be signed in to change notification settings - Fork 0
/
rm-deriv-cmp.twol
155 lines (137 loc) · 2.32 KB
/
rm-deriv-cmp.twol
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
Alphabet
%<cmp%>
%<rcmpnd%>
%<der%_a%>
%<der%_aadv%>
%<der%_adv%>
%<der%_car%>
%<der%_caus%>
%<der%_dimin%>
%<der%_inchl%>
%<der%_nomact%>
%<der%_nomag%>
%<der%_passl%>
%<der%_passs%>
%<der%_adda%>
%<der%_alla%>
%<der%_amoš%>
%<der%_d%>
%<der%_eamoš%>
%<der%_easti%>
%<der%_geahtes%>
%<der%_h%>
%<der%_halla%>
%<der%_has%>
%<der%_huhtti%>
%<der%_huvva%>
%<der%_keahtta%>
%<der%_l%>
%<der%_laagasj%>
%<der%_laakan%>
%<der%_las%>
%<der%_lasj%>
%<der%_meahttun%>
%<der%_muš%>
%<der%_sasj%>
%<der%_st%>
%<der%_stuvva%>
%<der%_supmi%>
%<der%_t%>
%<der%_upmi%>
%<der%_veara%>
%<der%_viđi%>
%<der%_viđá%>
%<der%_vuota%>
%<der%_ár%>
; ! end of Alphabet
Sets
Cmp =
%<cmp%>
%<rcmpnd%>
;
Derivations =
%<der%_a%>
%<der%_aadv%>
%<der%_adv%>
%<der%_car%>
%<der%_caus%>
%<der%_dimin%>
%<der%_inchl%>
%<der%_nomact%>
%<der%_nomag%>
%<der%_passl%>
%<der%_passs%>
%<der%_adda%>
%<der%_alla%>
%<der%_amoš%>
%<der%_d%>
%<der%_eamoš%>
%<der%_easti%>
%<der%_geahtes%>
%<der%_h%>
%<der%_halla%>
%<der%_has%>
%<der%_huhtti%>
%<der%_huvva%>
%<der%_keahtta%>
%<der%_l%>
%<der%_laagasj%>
%<der%_laakan%>
%<der%_las%>
%<der%_lasj%>
%<der%_meahttun%>
%<der%_muš%>
%<der%_sasj%>
%<der%_st%>
%<der%_stuvva%>
%<der%_supmi%>
%<der%_t%>
%<der%_upmi%>
%<der%_veara%>
%<der%_viđi%>
%<der%_viđá%>
%<der%_vuota%>
%<der%_ár%>
;
HandledDerivations =
%<der%_ag%>
%<der%_ahtti%>
%<der%_alla%>
%<der%_aadv%>
%<der%_car%>
%<der%_caus%>
%<der%_d%>
%<der%_dimin%>
%<der%_inchl%>
%<der%_h%>
%<der%_halla%>
%<der%_l%>
%<der%_laakan%>
%<der%_laagasj%>
%<der%_lasj%>
%<der%_nomact%>
%<der%_nomag%>
%<der%_passl%>
%<der%_passs%>
%<der%_sasj%>
%<der%_st%>
%<der%_t%>
%<der%_upmi%>
%<der%_vuota%>
;
; ! end of Sets
Definitions
UnhandledDerivations = Derivations - HandledDerivations ;
; ! end of Definitions
Rules
! "Don't allow compounds until we've fixed trimming, choosing-lexicalised-over-compounds, sem-tags-being-messed-up-in-compounds, etc. etc."
! V /<= _ ; where V in Cmp ;
"Only allow those derivations that we've made sure survive translation"
: /<= _ UnhandledDerivations ;
!"Don't allow derivations as left-compounds" - we want this in sme-smn
!: /<= _ Derivations :* Cmp ;
"Don't allow more than two left-compounds"
: /<= _ Cmp :* Cmp :* Cmp ;
!"Don't allow derivations of derivations" - we want this in sme-smn
!: /<= _ Derivations :* Derivations ;
; ! end of Rules