Add a verb
[apertium.git] / apertium-cy-en / apertium-cy-en.en-cy.t2x
blob5f040d9fd21d707500c9f531c6ff3569451ce8c0
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
4 <interchunk>
5 <section-def-cats>
7 <def-cat n="SN">
8 <cat-item tags="SN.*"/>
9 </def-cat>
10 </section-def-cats>
12 <section-def-attrs>
13 <def-attr n="nbr">
14 <attr-item tags="sg"/>
15 <attr-item tags="pl"/>
16 <attr-item tags="sp"/>
17 <attr-item tags="ND"/>
18 </def-attr>
19 </section-def-attrs>
20 <section-def-vars>
21 <def-var n="nombre"/>
22 <def-var n="genere"/>
23 <def-var n="numero"/>
24 </section-def-vars>
25 <section-def-macros>
26 <def-macro n="nombre_SN" npar="1">
27 <choose><!--To determine value of variables of gender and
28 number and propagate to other rules. Variables are
29 not used again in this rule -->
30 <when>
31 <test>
32 <equal>
33 <clip pos="1" part="nbr"/>
34 <lit-tag v="sg"/>
35 </equal>
36 </test>
37 <let><var n="nombre"/><lit-tag v="sg"/></let>
38 </when>
39 <when>
40 <test>
41 <equal>
42 <clip pos="1" part="nbr"/>
43 <lit-tag v="pl"/>
44 </equal>
45 </test>
46 <let><var n="nombre"/><lit-tag v="pl"/></let>
47 </when>
48 <otherwise>
49 <let><var n="nombre"/><lit-tag v="sg"/></let>
50 </otherwise>
51 </choose>
52 </def-macro>
54 </section-def-macros>
55 <section-rules>
56 <rule comment="REGLA: SN (per assignar gènere i nombre si hi ha GD i ND que no s'han pogut determinar, com passa en alguns pronoms: both, etc.)">
57 <pattern>
58 <pattern-item n="SN"/>
59 </pattern>
60 <action>
61 <choose>
62 <when>
63 <test>
64 <equal>
65 <clip pos="1" part="gen"/>
66 <lit-tag v="GD"/>
67 </equal>
68 </test>
69 <let>
70 <clip pos="1" part="gen"/>
71 <lit-tag v="m"/>
72 </let>
73 </when>
74 </choose>
75 <choose>
76 <when>
77 <test>
78 <equal>
79 <clip pos="1" part="nbr"/>
80 <lit-tag v="ND"/>
81 </equal>
82 </test>
83 <let>
84 <clip pos="1" part="nbr"/>
85 <lit-tag v="sg"/>
86 </let>
87 </when>
88 </choose>
89 <out>
90 <chunk>
91 <clip pos="1" part="lem"/>
92 <clip pos="1" part="tags"/>
93 <clip pos="1" part="chcontent"/>
94 </chunk>
95 </out>
96 <call-macro n="nombre_SN">
97 <with-param pos="1"/>
98 </call-macro>
99 </action>
100 </rule>
103 </section-rules>
104 </interchunk>