-
Notifications
You must be signed in to change notification settings - Fork 0
/
apertium-kaz-kir.kir-kaz.t2x
188 lines (171 loc) · 4.14 KB
/
apertium-kaz-kir.kir-kaz.t2x
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
<?xml version="1.0" encoding="utf-8"?>
<transfer>
<section-def-cats>
<def-cat n="vse">
<cat-item tags="*"/>
</def-cat>
<def-cat n="čast1">
<!-- Personal copulas and abessive/privative postposition -->
<!-- Consider different tags for different copulas:
укытучы-мын/cop.p1.sg/ and укытучы идем/cop.ifi.p1.sg/. Maybe
the latter should be added as modal or something. Absolutely
not sure, just some ideas, /I.S./ -->
<cat-item tags="cop.p1.*"/>
<cat-item tags="cop.p2.*"/>
<cat-item tags="cop.p3.*"/>
<cat-item lemma="сыз" tags="post.*"/>
</def-cat>
<def-cat n="čast2">
<!-- Every other thing in Tatar which most likely will be translated
with a clitic. Can appear after cat="čast1" -->
<cat-item tags="qst"/>
<cat-item tags="mod_ass"/>
<cat-item tags="mod_ind"/>
<cat-item tags="mod_foc"/>
<cat-item tags="postadv"/>
<cat-item lemma="да" tags="cnjcoo"/>
</def-cat>
</section-def-cats>
<section-def-attrs>
<def-attr n="a_qst">
<attr-item tags="qst"/>
</def-attr>
</section-def-attrs>
<section-def-vars>
<def-var n="a" v="~"/>
</section-def-vars>
<section-def-lists>
<def-list n="kaz_clitics"> <!-- Kazakh clitics -->
<list-item v="шы"/>
<list-item v="ма"/>
<list-item v="мекен"/>
<list-item v="ма не"/>
<list-item v="ғой"/>
<list-item v="-ақ"/>
<list-item v="ғана"/>
<list-item v="да"/>
</def-list>
</section-def-lists>
<section-rules>
<rule>
<pattern>
<pattern-item n="vse"/>
</pattern>
<action>
<out>
<var n="a"/>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
</out>
</action>
</rule>
<rule comment="REGLA: 2a;
For sequence [stem + personal copula/abessive + other clitics]">
<pattern>
<pattern-item n="vse"/>
<pattern-item n="čast1"/> <!-- Personal copulas/Abessive -->
<pattern-item n="čast2"/> <!-- All other clitics -->
</pattern>
<action>
<choose>
<when>
<test>
<in caseless="yes">
<clip pos="3" side="tl" part="lem"/>
<list n="kaz_clitics"/>
</in>
</test>
<out>
<mlu>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
<lu>
<clip pos="3" side="tl" part="whole"/>
</lu>
</mlu>
</out>
</when>
<otherwise>
<out>
<mlu>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</mlu>
<b/>
<lu>
<clip pos="3" side="tl" part="whole"/>
</lu>
</out>
</otherwise>
</choose>
</action>
</rule>
<rule comment="REGLA: 2b; makes personal copulas/abessive to clitics">
<pattern>
<pattern-item n="vse"/>
<pattern-item n="čast1"/> <!-- Personal copulas/Abessive -->
</pattern>
<action>
<out>
<mlu>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</mlu>
</out>
</action>
</rule>
<rule comment="REGLA:3;
makes stuff contained in list=kaz_clitics to clitics">
<pattern>
<pattern-item n="vse"/>
<pattern-item n="čast2"/>
</pattern>
<action>
<choose>
<when>
<test>
<in caseless="yes">
<clip pos="2" side="tl" part="lem"/>
<list n="kaz_clitics"/>
</in>
</test>
<out>
<mlu>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</mlu>
</out>
</when>
<otherwise>
<out>
<lu>
<clip pos="1" side="tl" part="whole"/>
</lu>
<b/>
<lu>
<clip pos="2" side="tl" part="whole"/>
</lu>
</out>
</otherwise>
</choose>
</action>
</rule>
</section-rules>
</transfer>