Poc més
[apertium.git] / apertium-id-ms / apertium-id-ms.id-ms.t1x
blobfbeefa20f123014bdcb2f714f7712120f9aa7553
1 <transfer default="chunk">
2   <section-def-cats>
3     <def-cat n="nom">
4       <cat-item tags="n.*"/><!--Falten els altres np (antroponims) que tenen gen i nbr, revisar regles.-->
5       <cat-item tags="np.loc"/>
6     </def-cat>
7   </section-def-cats>
8   <section-def-attrs>
9     <def-attr n="a_nom">
10       <attr-item tags="n"/>
11       <attr-item tags="n.acr"/>
12       <attr-item tags="n.unc"/>
13       <attr-item tags="np.loc"/>
14       <attr-item tags="np.ant"/>
15     </def-attr>
16     <def-attr n="nbr">
17       <attr-item tags="sg"/>
18       <attr-item tags="pl"/>
19       <attr-item tags="sp"/>
20       <attr-item tags="ND"/>
21     </def-attr>
23   </section-def-attrs>
24   <section-def-vars>
25     <def-var n="numero"/>
26   </section-def-vars>
27   <section-rules>
28     <rule comment="REGLA: NOM (per a collocar la cua en les multiparaules amb g">
29       <pattern>
30         <pattern-item n="nom"/>
31       </pattern>
32       <action>
33         <out>
34           <chunk name="nom" case="caseFirstWord">
35             <tags>
36               <tag><lit-tag v="SN"/></tag>
37               <tag><clip pos="1" side="tl" part="gen"/></tag>
38               <tag><clip pos="1" side="tl" part="nbr"/></tag>
39             </tags>
40             <lu>
41               <clip pos="1" side="tl" part="lemh"/>
42               <clip pos="1" side="tl" part="a_nom"/>
43                                 <clip pos="1" side="tl" part="gen_sense_mf" link-to="2"/>
44                                 <clip pos="1" side="tl" part="gen_mf"/>
45                                 <clip pos="1" side="tl" part="nbr_sense_sp" link-to="3"/>
46                                 <clip pos="1" side="tl" part="nbr_sp"/>
47               <clip pos="1" side="tl" part="lemq"/>
48             </lu>
49           </chunk>
50         </out>
51       </action>
52     </rule>
53   </section-rules>
54 </transfer>