Adding a bit
[apertium.git] / apertium-sh-mk / apertium-sh-mk.sh-mk.t1x
blob72dafb48cba308b57379fc7176f26881bc3fe02c
1 <?xml version="1.0" encoding="utf-8"?>
2 <transfer default="chunk">
4 <section-def-cats>
5 <def-cat n="nom">
6 <cat-item tags="n.*"/>
7 <cat-item tags="np.*"/>
8 </def-cat>
9 <def-cat n="vblex">
10 <cat-item tags="vblex.*"/>
11 </def-cat>
12 <def-cat n="prn">
13 <cat-item tags="prn.*"/>
14 </def-cat>
15 <def-cat n="adj">
16 <cat-item tags="adj.*"/>
17 </def-cat>
18 <def-cat n="pr">
19 <cat-item tags="pr"/>
20 </def-cat>
21 <def-cat n="det">
22 <cat-item tags="det"/>
23 <cat-item tags="det.*"/>
24 </def-cat>
25 <def-cat n="prefix-adj">
26 <cat-item tags="pref.adj"/>
27 <cat-item tags="pref.adj.*"/>
28 </def-cat>
29 <def-cat n="exp">
30 <cat-item tags="part.exp"/>
31 </def-cat>
32 </section-def-cats>
34 <section-def-attrs>
35 <def-attr n="a_nom">
36 <attr-item tags="n"/>
37 <attr-item tags="np"/>
38 <attr-item tags="np.ant"/>
39 <attr-item tags="np.top"/>
40 </def-attr>
42 <def-attr n="a_prp">
43 <attr-item tags="pr"/>
44 </def-attr>
46 <def-attr n="a_adj">
47 <attr-item tags="adj"/>
48 <attr-item tags="adj.pve"/>
49 <attr-item tags="adj.comp"/>
50 <attr-item tags="adj.sup"/>
51 <attr-item tags="adj.itg"/>
52 </def-attr>
54 <def-attr n="a_vrb">
55 <attr-item tags="vblex"/>
56 </def-attr>
58 <def-attr n="a_prn">
59 <attr-item tags="prn"/>
60 <attr-item tags="prn.itg"/>
61 </def-attr>
63 <def-attr n="tns">
64 <attr-item tags="pri"/>
65 <attr-item tags="imp"/>
66 <attr-item tags="aor"/>
67 <attr-item tags="fti"/>
68 <attr-item tags="past"/>
69 </def-attr>
71 <def-attr n="gen">
72 <attr-item tags="m"/>
73 <attr-item tags="f"/>
74 <attr-item tags="nt"/>
75 <attr-item tags="mf"/>
76 </def-attr>
78 <def-attr n="prs">
79 <attr-item tags="p1"/>
80 <attr-item tags="p2"/>
81 <attr-item tags="p3"/>
82 </def-attr>
84 <def-attr n="nbr">
85 <attr-item tags="sg"/>
86 <attr-item tags="pl"/>
87 </def-attr>
89 <def-attr n="cas">
90 <attr-item tags="nom"/>
91 <attr-item tags="acc"/>
92 <attr-item tags="dat"/>
93 <attr-item tags="gen"/>
94 <attr-item tags="loc"/>
95 <attr-item tags="ins"/>
96 <attr-item tags="voc"/>
97 </def-attr>
99 </section-def-attrs>
101 <section-def-vars>
102 <def-var n="number"/>
103 <def-var n="genere"/>
104 </section-def-vars>
106 <section-rules>
107 <!-- Sintagmas nominales -->
109 <rule>
110 <pattern>
111 <pattern-item n="nom"/>
112 </pattern>
113 <action>
114 <out>
115 <chunk name="nom" case="caseFirstWord">
116 <tags>
117 <tag><lit-tag v="SN"/></tag>
118 <tag><clip pos="1" side="tl" part="gen"/></tag>
119 <tag><clip pos="1" side="tl" part="nbr"/></tag>
120 </tags>
121 <lu>
122 <clip pos="1" side="tl" part="lem"/>
123 <clip pos="1" side="tl" part="a_nom"/>
124 <clip pos="1" side="tl" part="gen" link-to="2"/>
125 <clip pos="1" side="tl" part="nbr" link-to="3"/>
126 </lu>
127 </chunk>
128 </out>
129 </action>
130 </rule>
133 <!-- Sintagmas adjetivos -->
135 <rule>
136 <pattern>
137 <pattern-item n="adj"/>
138 </pattern>
139 <action>
140 <choose>
141 <!-- When the adjective is in the comparative
142 prefix with po~ -->
143 <when>
144 <test>
145 <equal>
146 <clip pos="1" side="sl" part="a_adj"/>
147 <lit-tag v="adj.comp"/>
148 </equal>
149 </test>
150 <out>
151 <chunk name="adj" case="caseFirstWord">
152 <tags>
153 <tag><lit-tag v="SA"/></tag>
154 <tag><clip pos="1" side="tl" part="gen"/></tag>
155 <tag><clip pos="1" side="tl" part="nbr"/></tag>
156 </tags>
157 <lu>
158 <lit v="по"/>
159 </lu>
160 <lu>
161 <clip pos="1" side="tl" part="lem"/>
162 <lit-tag v="adj.comp"/>
163 <clip pos="1" side="tl" part="gen"/>
164 <clip pos="1" side="tl" part="nbr"/>
165 </lu>
166 </chunk>
167 </out>
168 </when>
169 <otherwise>
170 <out>
171 <chunk name="adj" case="caseFirstWord">
172 <tags>
173 <tag><lit-tag v="SA"/></tag>
174 <tag><clip pos="1" side="tl" part="gen"/></tag>
175 <tag><clip pos="1" side="tl" part="nbr"/></tag>
176 </tags>
177 <lu>
178 <clip pos="1" side="tl" part="lem"/>
179 <clip pos="1" side="tl" part="a_adj"/>
180 <clip pos="1" side="tl" part="gen"/>
181 <clip pos="1" side="tl" part="nbr"/>
182 </lu>
183 </chunk>
184 </out>
185 </otherwise>
186 </choose>
187 </action>
188 </rule>
190 <rule>
191 <pattern>
192 <pattern-item n="prefix-adj"/>
193 <pattern-item n="adj"/>
194 </pattern>
195 <action>
196 <choose>
197 <!-- When the adjective is in the superlative
198 prefix with naj~ -->
199 <when>
200 <test>
201 <and>
202 <equal>
203 <clip pos="1" side="sl" part="lem"/>
204 <lit v="naj"/>
205 </equal>
206 <equal>
207 <clip pos="1" side="sl" part="a_adj"/>
208 <lit-tag v="adj.sup"/>
209 </equal>
210 </and>
211 </test>
212 <out>
213 <chunk name="adj" case="caseFirstWord">
214 <tags>
215 <tag><lit-tag v="SA"/></tag>
216 <tag><clip pos="2" side="tl" part="gen"/></tag>
217 <tag><clip pos="2" side="tl" part="nbr"/></tag>
218 </tags>
219 <lu>
220 <lit v="нај"/>
221 </lu>
222 <lu>
223 <clip pos="2" side="tl" part="lem"/>
224 <lit-tag v="adj.pve"/>
225 <clip pos="2" side="tl" part="gen"/>
226 <clip pos="2" side="tl" part="nbr"/>
227 </lu>
228 </chunk>
229 </out>
230 </when>
231 <otherwise>
232 <out>
233 <chunk name="adj" case="caseFirstWord">
234 <tags>
235 <tag><lit-tag v="SA"/></tag>
236 <tag><clip pos="2" side="tl" part="gen"/></tag>
237 <tag><clip pos="2" side="tl" part="nbr"/></tag>
238 </tags>
239 <lu>
240 <clip pos="2" side="tl" part="lem"/>
241 <clip pos="1" side="tl" part="a_adj"/>
242 <clip pos="2" side="tl" part="gen"/>
243 <clip pos="2" side="tl" part="nbr"/>
244 </lu>
245 </chunk>
246 </out>
247 </otherwise>
248 </choose>
249 </action>
250 </rule>
252 <rule>
253 <pattern>
254 <pattern-item n="vblex"/>
255 </pattern>
256 <action>
257 <out>
258 <chunk name="verb" case="caseFirstWord">
259 <tags>
260 <tag><lit-tag v="SV"/></tag>
261 <tag><clip pos="1" side="tl" part="tns"/></tag>
262 <tag><clip pos="1" side="tl" part="prs"/></tag>
263 <tag><clip pos="1" side="tl" part="nbr"/></tag>
264 </tags>
265 <lu>
266 <clip pos="1" side="tl" part="lem"/>
267 <clip pos="1" side="tl" part="a_vrb"/>
268 <clip pos="1" side="tl" part="tns"/>
269 <clip pos="1" side="tl" part="prs"/>
270 <clip pos="1" side="tl" part="nbr"/>
271 </lu>
272 </chunk>
273 </out>
274 </action>
275 </rule>
278 </section-rules>
280 </transfer>