Removing +x bit on two dices
[apertium.git] / apertium-en-pl / apertium-en-pl.pl-en.t1x
blob07dbfa6b11f8419dd88c694a3fd2d538e5d444c1
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
2 <transfer default="chunk">
3 <section-def-cats>
4     <def-cat n="conj">
5       <cat-item tags="cnjadv"/>
6       <cat-item tags="cnjcoo"/>
7       <cat-item tags="cnjsub"/>
8       <cat-item tags="cnjcoo.*"/>
9       <cat-item tags="cnjadv.*"/>
10       <cat-item tags="cnjsub.*"/>
11     </def-cat>
12     <def-cat n="rel_prn">
13       <cat-item tags="rel.*"/>
14     </def-cat>
15     <def-cat n="adj">
16       <cat-item tags="adj"/>
17       <cat-item tags="adj.*"/>
18     </def-cat>
19     <def-cat n="nom">
20       <cat-item tags="n.*"/>
21       <cat-item tags="np.*"/>
22     </def-cat>
23     <def-cat n="sent">
24       <cat-item tags="sent"/>
25     </def-cat>
26     <def-cat n="det">
27       <cat-item tags="det.ind.*"/>
28       <cat-item tags="det.def.*"/>
29     </def-cat>
30     <def-cat n="prpers">
31       <cat-item tags="prn.subj.*"/>
32       <cat-item tags="prn.obj.*"/> 
33       <cat-item lemma="prpers" tags="prn.*"/>
34       <cat-item lemma="Prpers" tags="prn.*"/>
35     </def-cat>
36     <def-cat n="verbnm"><!--verb no modal -->
37       <cat-item tags="vblex.*"/>
38       <cat-item tags="vbser.*"/>
39       <cat-item tags="vbhaver.*"/> 
40     </def-cat>
41     <def-cat n="verb">
42       <cat-item tags="vblex"/>
43       <cat-item tags="vbser"/>
44       <cat-item tags="vbhaver"/>
45       <cat-item tags="vblex.*"/>
46       <cat-item tags="vbser.*"/>
47       <cat-item tags="vbhaver.*"/> 
48     </def-cat>
49     <def-cat n="prep"> <!-- preposition -->
50       <cat-item tags="pr"/>
51     </def-cat>
52   </section-def-cats>
54   <section-def-attrs>
55     <def-attr n="nbr">      <!-- Number -->
56       <attr-item tags="sg"/>
57       <attr-item tags="pl"/>
58       <attr-item tags="sp"/>
59     </def-attr>
60     <def-attr n="gen">      <!-- Gender -->
61       <attr-item tags="m1"/>
62       <attr-item tags="m2"/>
63       <attr-item tags="m3"/>
64       <attr-item tags="m"/>
65       <attr-item tags="f"/>
66       <attr-item tags="nt"/>
67       <attr-item tags="nm"/>
68       <attr-item tags="mf"/>
69     </def-attr>
70     <def-attr n="a_conj">
71       <attr-item tags="cnjadv"/>
72       <attr-item tags="cnjsub"/>
73       <attr-item tags="cnjcoo"/>
74     </def-attr>
75     <def-attr n="a_nom">
76       <attr-item tags="n"/>
77       <attr-item tags="n.acr"/>
78       <attr-item tags="n.unc"/>
79       <attr-item tags="np.top"/>
80       <attr-item tags="np.ant"/>
81     </def-attr>
82     <def-attr n="a_adj">
83       <attr-item tags="adj.sint"/>
84       <attr-item tags="adj"/>
85       <attr-item tags="comp"/>
86       <attr-item tags="sup"/>
87       <attr-item tags="det.pos"/>
88     </def-attr>
89     <def-attr n="stress">
90       <attr-item tags="uns"/>
91     </def-attr>
92     <def-attr n="a_det">
93       <attr-item tags="det.ind"/>
94       <attr-item tags="det.def"/>
95     </def-attr>
96     <def-attr n="a_rel">
97       <attr-item tags="rel"/>
98       <attr-item tags="rel.nn"/>
99       <attr-item tags="rel.an"/>
100     </def-attr>
101     <def-attr n="tipus_prn">
102       <attr-item tags="prn.subj"/>
103       <attr-item tags="prn.obj"/>
104     </def-attr>
105     <def-attr n="caso">
106       <attr-item tags="nom"/>
107       <attr-item tags="acc"/>
108       <attr-item tags="dat"/>
109       <attr-item tags="gen"/>
110       <attr-item tags="loc"/>
111       <attr-item tags="ins"/>
112       <attr-item tags="voc"/>
113     </def-attr>
114     <def-attr n="pers">      <!-- Person -->
115        <attr-item tags="p1"/>
116        <attr-item tags="p2"/>
117        <attr-item tags="p3"/>
118     </def-attr>
119     <def-attr n="a_verb">
120        <attr-item tags="vblex"/>
121        <attr-item tags="vblex.uns"/>
122        <attr-item tags="vbser"/>
123        <attr-item tags="vbhaver"/>
124        <attr-item tags="vbmod"/>
125        <attr-item tags="vaux"/>
126     </def-attr>
127     <def-attr n="temps">
128        <attr-item tags="pp"/>
129        <attr-item tags="pii"/>
130        <attr-item tags="pis"/>
131        <attr-item tags="pri"/>
132        <attr-item tags="past"/>
133        <attr-item tags="pres"/>
134        <attr-item tags="fut"/>
135        <attr-item tags="inf"/>
136        <attr-item tags="cni"/>
137      </def-attr>
138   </section-def-attrs>
140   <section-def-vars>
141     <def-var n="numero"/>
142     <def-var n="caseFirstWord"/>
143     <def-var n="nombre"/>
144     <def-var n="adjCase"/>
145     <def-var n="adjNum"/>
146     <def-var n="adjGender"/>
147     <def-var n="lastVerb"/>
148   </section-def-vars>
150   <section-rules>
151     <rule comment="REGLA: NOM">
152       <pattern>
153         <pattern-item n="nom"/>
154       </pattern>
155       <action>
156         <out>
157           <chunk name="nom" case="caseFirstWord">
158             <tags>
159               <tag><lit-tag v="NP"/></tag>
160               <tag><clip pos="1" side="tl" part="nbr"/></tag>
161             </tags>
162             <lu>
163               <clip pos="1" side="tl" part="lem"/>
164               <clip pos="1" side="tl" part="a_nom"/>
165               <clip pos="1" side="tl" part="gen"/>
166               <clip pos="1" side="tl" part="nbr"/>
167               <clip pos="1" side="tl" part="caso"/>
168             </lu>
169           </chunk>
170         </out>
171       </action>
172     </rule>
174     <rule comment="REGLA: PR">
175       <pattern>
176         <pattern-item n="prep"/>
177       </pattern>
178       <action>
179             <out>
180               <chunk name="pr">
181                 <tags>
182                   <tag><lit-tag v="PR"/></tag>
183                 </tags>
184                 <lu>
185                   <clip pos="1" side="tl" part="lem"/>
186                   <lit-tag v="pr"/>
187                 </lu>
188               </chunk>
189             </out>
190       </action>
191     </rule>
193     <rule comment="REGLA: PRPERS">
194       <pattern>
195         <pattern-item n="prpers"/>
196       </pattern>
197       <action>
198         <modify-case>
199            <clip pos="1" side="tl" part="lem"/>
200            <lit v="Aa"/>
201          </modify-case>
202          <out>
203            <chunk name="prpers">
204              <tags>
205                <tag><lit-tag v="PRN"/></tag>
206              </tags>
207              <lu>
208                <clip pos="1" side="tl" part="lem"/>
209                <clip pos="1" side="tl" part="tipus_prn"/>
210                <clip pos="1" side="tl" part="pers"/>
211                <clip pos="1" side="tl" part="gen"/>
212                <clip pos="1" side="tl" part="nbr"/>
213                <!-- <clip pos="1" side="tl" part="caso"/> -->
214              </lu>
215            </chunk>
216          </out>
217       </action>
218     </rule>
220     <rule comment="REGLA: ADJ">
221       <pattern>
222         <pattern-item n="adj"/>
223       </pattern>
224       <action>
225             <out>
226               <chunk name="adj">
227                 <tags>
228                   <tag><lit-tag v="ADJ"/></tag>
229                 </tags>
230                 <lu>
231                   <clip pos="1" side="tl" part="lem"/>
232                   <clip pos="1" side="tl" part="a_adj"/>
233                   <lit-tag v="pred"/>
234                 </lu>
235               </chunk>
236             </out>
237       </action>
238     </rule>
240     <rule comment="Verb with subject">
241        <pattern>
242          <pattern-item n="prpers"/>
243          <pattern-item n="verb"/>
244        </pattern>
245        <action>
246          <out>
247            <chunk name="prpers_verb">
248              <tags>
249                <tag><lit-tag v="V"/></tag>
250              </tags>
251              <lu>
252                <lit v="prpers"/>
253                <lit-tag v="prn"/>
254                <lit-tag v="subj"/>
255                <clip pos="1" side="tl" part="pers"/>
256                <clip pos="1" side="tl" part="gen"/>
257                <clip pos="1" side="tl" part="nbr"/> 
258              </lu>
259              <b/>
260              <lu>
261                <clip pos="2" side="tl" part="lem"/>
262                <clip pos="2" side="tl" part="a_verb"/>
263                <clip pos="2" side="tl" part="temps"/>
264                <clip pos="2" side="tl" part="pers"/>
265                <clip pos="2" side="tl" part="nbr"/>
266              </lu>
267            </chunk>
268          </out>
269        </action>
270     </rule>
272     <rule comment="Verb without subject">
273        <pattern>
274          <pattern-item n="verb"/>
275        </pattern>
276        <action>
277          <out>
278            <chunk name="verb">
279              <tags>
280                <tag><lit-tag v="V"/></tag>
281              </tags>
282              <lu>
283                <lit v="prpers"/>
284                <lit-tag v="prn"/>
285                <lit-tag v="subj"/>
286                <clip pos="1" side="tl" part="pers"/>
287                <clip pos="1" side="tl" part="gen"/>
288                <clip pos="1" side="tl" part="nbr"/> 
289              </lu>
290              <b/>
291              <lu>
292                <clip pos="1" side="tl" part="lem"/>
293                <clip pos="1" side="tl" part="a_verb"/>
294                <clip pos="1" side="tl" part="temps"/>
295                <clip pos="1" side="tl" part="pers"/>
296                <clip pos="1" side="tl" part="nbr"/>
297              </lu>
298            </chunk>
299          </out>
300        </action>
301     </rule>
303     <rule> <!-- REGLA: reset variables-->
304       <pattern>
305         <pattern-item n="sent"/>
306       </pattern>
307       <action>
308        <let>
309          <var n="nombre"/>
310          <lit-tag v="sg"/>
311        </let>
312        <let>
313          <var n="lastVerb"/>
314          <lit v=""/>
315        </let>
316         <out>
317           <chunk name="punt">
318             <tags>
319               <tag><lit-tag v="sent"/></tag>
320             </tags>
321             <lu>
322               <clip pos="1" side="tl" part="whole"/>
323             </lu>
324           </chunk>
325         </out>
327      </action>
328    </rule>
330   </section-rules>
332 </transfer>