Adding more stuff
[apertium.git] / apertium-en-nl / apertium-en-nl.en-nl.t1x
blob92a0f355c787f5656db566cd66b067bbd24c28fb
1 <transfer default="chunk">
2 <section-def-cats>
3     <def-cat n="adj">
4       <cat-item tags="adj"/>
5       <cat-item tags="adj.*"/>
6     </def-cat>
7     <def-cat n="nom">
8       <cat-item tags="n.*"/>
9       <cat-item tags="np.*"/>
10     </def-cat>
11     <def-cat n="sent">
12       <cat-item tags="sent"/>
13     </def-cat>
14     <def-cat n="det">
15       <cat-item tags="det.ind.*"/>
16       <cat-item tags="det.def.*"/>
17     </def-cat>
18     <def-cat n="prpers">
19       <cat-item lemma="prpers" tags="prn.*"/>
20     </def-cat>
21     <def-cat n="verbnm"><!--verb no modal -->
22       <cat-item tags="vblex.*"/>
23       <cat-item tags="vbser.*"/>
24       <cat-item tags="vbhaver.*"/> 
25     </def-cat>
26     <def-cat n="prep"> <!-- preposition -->
27       <cat-item tags="pr"/>
28     </def-cat>
29   </section-def-cats>
31   <section-def-attrs>
32     <def-attr n="nbr">                  <!-- Number -->
33       <attr-item tags="sg"/>
34       <attr-item tags="pl"/>
35       <attr-item tags="sp"/>
36     </def-attr>
37     <def-attr n="gen">                  <!-- Gender -->
38       <attr-item tags="m"/>
39       <attr-item tags="f"/>
40       <attr-item tags="mf"/>
41     </def-attr>
42     <def-attr n="a_nom">
43       <attr-item tags="n"/>
44       <attr-item tags="n.acr"/>
45       <attr-item tags="n.unc"/>
46       <attr-item tags="np.loc"/>
47     </def-attr>
48     <def-attr n="a_adj">
49       <attr-item tags="adj"/>
50       <attr-item tags="adj.sint"/>
51       <attr-item tags="comp"/>
52       <attr-item tags="sup"/>
53     </def-attr>
54     <def-attr n="a_det">
55       <attr-item tags="det.ind"/>
56       <attr-item tags="det.def"/>
57     </def-attr>
58     <def-attr n="tipus_prn">
59       <attr-item tags="prn.subj"/>
60       <attr-item tags="prn.obj"/>
61     </def-attr>
62     <def-attr n="pers">                 <!-- Person -->
63        <attr-item tags="p1"/>
64        <attr-item tags="p2"/>
65        <attr-item tags="p3"/>
66     </def-attr>
67     <def-attr n="a_verb">
68        <attr-item tags="vblex"/>
69        <attr-item tags="vbser"/>
70        <attr-item tags="vbhaver"/>
71        <attr-item tags="vbmod"/>
72        <attr-item tags="vaux"/>
73     </def-attr>
74     <def-attr n="temps">
75        <attr-item tags="pii"/>
76        <attr-item tags="pis"/>
77        <attr-item tags="pri"/>
78        <attr-item tags="past"/>
79        <attr-item tags="pres"/>
80        <attr-item tags="inf"/>
81      </def-attr>
82   </section-def-attrs>
84   <section-def-vars>
85     <def-var n="numero"/>
86     <def-var n="caseFirstWord"/>
87     <def-var n="nombre"/>
88   </section-def-vars>
90   <section-rules>
91     <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
92       <pattern>
93         <pattern-item n="nom"/>
94       </pattern>
95       <action>
96         <out>
97           <chunk name="nom" case="caseFirstWord">
98             <tags>
99               <tag><lit-tag v="SN"/></tag>
100               <tag><clip pos="1" side="tl" part="nbr"/></tag>
101             </tags>
102             <lu>
103               <clip pos="1" side="tl" part="lem"/>
104               <clip pos="1" side="tl" part="a_nom"/>
105               <clip pos="1" side="tl" part="nbr"/>
106             </lu>
107           </chunk>
108         </out>
109       </action>
110     </rule>
112     <rule comment="REGLA: DET NOM">
113       <pattern>
114         <pattern-item n="det"/>
115         <pattern-item n="nom"/>
116       </pattern>
117       <action>
118         <out>
119           <chunk name="det_nom" case="caseFirstWord">
120             <tags>
121               <tag><lit-tag v="SN"/></tag>
122               <tag><clip pos="2" side="sl" part="gen"/></tag>
123               <tag><var n="nombre"/></tag>
124             </tags>
125             <lu>
126               <clip pos="1" side="tl" part="lem"/>
127               <clip pos="1" side="tl" part="a_det"/>
128               <clip pos="2" side="tl" part="nbr"/>
129             </lu>
130             <b pos="1"/>
131             <lu>
132               <clip pos="2" side="tl" part="lemh"/>
133               <clip pos="2" side="tl" part="a_nom"/>
134               <clip pos="2" side="tl" part="nbr"/>
135               <clip pos="2" side="tl" part="lemq"/>
136             </lu>
137           </chunk>
138         </out>
139         <let>
140           <var n="caseFirstWord"/>
141           <lit v="aa"/>
142         </let>
143       </action>
144     </rule>
146     <rule comment="REGLA: DET ADJ NOM">
147       <pattern>
148         <pattern-item n="det"/>
149         <pattern-item n="adj"/>
150         <pattern-item n="nom"/>
151       </pattern>
152       <action>
153         <out>
154           <chunk name="det_adj_nom" case="caseFirstWord">
155             <tags>
156               <tag><lit-tag v="SN"/></tag>
157               <tag><clip pos="2" side="sl" part="gen"/></tag>
158               <tag><var n="nombre"/></tag>
159             </tags>
160             <lu>
161               <clip pos="1" side="tl" part="lem"/>
162               <clip pos="1" side="tl" part="a_det"/>
163               <clip pos="1" side="tl" part="nbr"/>
164             </lu>
165             <b pos="1"/>
166               <lu>
167                 <clip pos="2" side="tl" part="lem"/>
168                 <clip pos="2" side="tl" part="a_adj"/>
169                 <lit-tag v="attr"/>
170               </lu>
171             <b pos="1"/>
172             <lu>
173               <clip pos="3" side="tl" part="lemh"/>
174               <clip pos="3" side="tl" part="a_nom"/>
175               <clip pos="3" side="tl" part="nbr"/>
176               <clip pos="3" side="tl" part="lemq"/>
177             </lu>
178           </chunk>
179         </out>
180         <let>
181           <var n="caseFirstWord"/>
182           <lit v="aa"/>
183         </let>
184       </action>
185     </rule>
187     <rule comment="REGLA: ADJ NOM">
188       <pattern>
189         <pattern-item n="adj"/>
190         <pattern-item n="nom"/>
191       </pattern>
192       <action>
193             <out>
194               <lu>
195                 <clip pos="1" side="tl" part="lem"/>
196                 <clip pos="1" side="tl" part="a_adj"/>
197                 <lit-tag v="attr"/>
198               </lu>
199               <b/>
200               <lu>
201                 <clip pos="2" side="tl" part="lem"/>
202                 <clip pos="2" side="tl" part="a_nom"/>
203                 <clip pos="2" side="tl" part="nbr"/>
204               </lu>
205             </out>
206       </action>
207     </rule>
209     <rule comment="REGLA: ADJ">
210       <pattern>
211         <pattern-item n="adj"/>
212       </pattern>
213       <action>
214             <out>
215               <chunk name="adj">
216                 <tags>
217                   <tag><lit-tag v="ADJ"/></tag>
218                 </tags>
219                 <lu>
220                   <clip pos="1" side="tl" part="lem"/>
221                   <clip pos="1" side="tl" part="a_adj"/>
222                   <lit-tag v="pred"/>
223                 </lu>
224               </chunk>
225             </out>
226       </action>
227     </rule>
230     <rule>
231       <pattern>
232         <pattern-item n="nom"/>
233       </pattern>
234       <action>
235             <out>
236               <lu>
237                 <clip pos="1" side="tl" part="lem"/>
238                 <clip pos="1" side="tl" part="a_nom"/>
239                 <clip pos="1" side="tl" part="nbr"/>
240               </lu>
241             </out>
242       </action>
243     </rule>
245     <rule comment="REGLA: VERBNM">
246       <pattern>
247         <pattern-item n="verbnm"/>
248       </pattern>
249       <action>
250             <out>
251               <chunk name="verb">
252                 <tags>
253                   <tag><lit-tag v="V"/></tag>
254                 </tags>
255                 <lu>
256                   <clip pos="1" side="tl" part="lem"/>
257                   <clip pos="1" side="tl" part="a_verb"/>
258                   <clip pos="1" side="tl" part="temps"/>
259                 </lu>
260               </chunk>
261             </out>
262       </action>
263     </rule>
265     <rule> <!-- REGLA: reset variables-->
266       <pattern>
267         <pattern-item n="sent"/>
268       </pattern>
269       <action>
270        <let>
271          <var n="nombre"/>
272          <lit-tag v="sg"/>
273        </let>
274         <out>
275           <chunk name="punt">
276             <tags>
277               <tag><lit-tag v="sent"/></tag>
278             </tags>
279             <lu>
280               <clip pos="1" side="tl" part="whole"/>
281             </lu>
282           </chunk>
283         </out>
285      </action>
286    </rule>
289   </section-rules>
291 </transfer>