Adding prob files
[apertium.git] / trunk / apertium-cy-en / apertium-cy-en.en-cy.t1x
blob733b53e96a81376ea4f1fa6c73b9a863dadd3c0f
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
3 <transfer default="chunk">
4 <section-def-cats>
5 <def-cat n="nom">
6 <cat-item tags="n.*"/><!--Falten els altres np (antroponims) que tenen gen i nbr, revisar regles.-->
7 <cat-item tags="np.loc"/>
8 </def-cat>
9 </section-def-cats>
10 <section-def-attrs>
11 <def-attr n="a_nom">
12 <attr-item tags="n"/>
13 <attr-item tags="n.acr"/>
14 <attr-item tags="n.unc"/>
15 <attr-item tags="np.loc"/>
16 <attr-item tags="np.ant"/>
17 </def-attr>
18 <def-attr n="nbr">
19 <attr-item tags="sg"/>
20 <attr-item tags="pl"/>
21 <attr-item tags="sp"/>
22 <attr-item tags="ND"/>
23 </def-attr>
24 <def-attr n="gen">
25 <attr-item tags="f"/>
26 <attr-item tags="m"/>
27 <attr-item tags="mf"/>
28 <attr-item tags="nt"/>
29 </def-attr>
30 </section-def-attrs>
31 <section-def-vars>
32 <def-var n="numero"/>
33 <def-var n="genere"/>
34 <def-var n="nombre"/>
35 <def-var n="caseFirstWord"/>
36 <def-var n="EOS"/>
37 </section-def-vars>
39 <section-def-macros>
40 <def-macro n="firstWord" npar="1">
41 <choose>
42 <when>
43 <test>
44 <equal>
45 <clip pos="1" side="sl" part="a_np_acr"/>
46 <lit v=""/>
47 </equal>
48 </test>
49 <choose>
50 <when>
51 <test>
52 <equal>
53 <var n="EOS"/>
54 <lit v="true"/>
55 </equal>
56 </test>
57 <modify-case>
58 <clip pos="1" side="tl" part="lem"/>
59 <lit v="aa"/>
60 </modify-case>
61 <let>
62 <var n="caseFirstWord"/>
63 <lit v="Aa"/>
64 </let>
65 </when>
66 </choose>
67 </when>
68 <otherwise>
69 <let>
70 <var n="caseFirstWord"/>
71 <lit v="aa"/>
72 </let>
73 </otherwise>
74 </choose>
75 <let>
76 <var n="EOS"/>
77 <lit v="false"/>
78 </let>
79 </def-macro>
80 </section-def-macros>
81 <section-rules>
83 <rule comment="REGLA: NOM">
84 <pattern>
85 <pattern-item n="nom"/>
86 </pattern>
87 <action>
88 <out>
89 <chunk name="nom" case="caseFirstWord">
90 <tags>
91 <tag><lit-tag v="SN.UNDET"/></tag>
92 <tag><clip pos="1" side="tl" part="gen"/></tag>
93 <tag><clip pos="1" side="tl" part="nbr"/></tag>
94 </tags>
95 <lu>
96 <clip pos="1" side="tl" part="lemh"/>
97 <clip pos="1" side="tl" part="a_nom"/>
98 <clip pos="1" side="tl" part="gen" link-to="3"/>
99 <!-- <clip pos="1" side="tl" part="nbr" link-to="4"/> -->
100 <!-- <clip pos="1" side="tl" part="gen" link-to="1"/> -->
101 <clip pos="1" side="tl" part="nbr"/>
102 <clip pos="1" side="tl" part="lemq"/>
103 </lu>
104 </chunk>
105 </out>
106 <let>
107 <var n="caseFirstWord"/>
108 <lit v="aa"/>
109 </let>
110 </action>
111 </rule>
113 </section-rules>
114 </transfer>