One more
[apertium.git] / apertium-cy-en / apertium-cy-en.en-cy.t3x
blobbe1920c3ef94da6f5c03a23d214f1861effe2515
1 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- nxml -*- -->
3 <postchunk>
4 <section-def-cats>
7 <def-cat n="nom">
8 <cat-item name="nom"/>
9 </def-cat>
10 <def-cat n="det_nom">
11 <cat-item name="det_nom"/>
12 </def-cat>
14 </section-def-cats>
15 <section-def-attrs>
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>
22 <def-attr n="a_nom">
23 <attr-item tags="n"/>
24 <attr-item tags="np"/>
25 </def-attr>
26 </section-def-attrs>
27 <section-def-vars>
28 <def-var n="paraula"/>
29 </section-def-vars>
32 <section-rules>
34 <rule comment="CHUNK: regla que no fa res">
35 <pattern>
36 <pattern-item n="det_nom"/>
37 </pattern>
38 <action>
39 <out>
40 <lu>
41 <clip pos="1" part="whole"/>
42 </lu>
43 <b pos="1"/>
44 <lu>
45 <clip pos="2" part="whole"/>
46 </lu>
47 </out>
48 </action>
49 </rule>
51 <rule comment="CHUNK:">
52 <pattern>
53 <pattern-item n="nom"/>
54 </pattern>
55 <action>
56 <out>
57 <lu>
58 <clip pos="1" part="whole"/>
59 </lu>
60 </out>
61 </action>
62 </rule>
63 <rule comment="CHUNK: nom">
64 <pattern>
65 <pattern-item n="nom"/>
66 </pattern>
67 <action>
68 <choose>
69 <when>
70 <test>
71 <and>
72 <equal>
73 <clip pos="0" part="a_SN"/>
74 <lit-tag v="PDET"/>
75 </equal>
76 <not>
77 <equal>
78 <clip pos="1" part="a_nom"/>
79 <lit-tag v="np"/>
80 </equal>
81 </not>
82 </and>
83 </test>
84 <out>
85 <lu>
86 <get-case-from pos="1">
87 <lit v="el"/>
88 </get-case-from>
89 <lit-tag v="det.def"/>
90 <clip pos="1" part="gen"/>
91 <clip pos="1" part="nbr"/>
92 </lu>
93 <b/>
94 </out>
95 </when>
96 </choose>
97 <out>
98 <lu>
99 <clip pos="1" part="whole"/>
100 </lu>
101 </out>
102 </action>
103 </rule>
105 </section-rules>
106 </postchunk>