Poc més
[apertium.git] / apertium-en-nl / apertium-en-nl.nl-en.t2x
blob51e4466a3fd9c29117766dfc454dec52e855cc09
1 <?xml version="1.0" encoding="ISO-8859-15"?>
3 <interchunk>
4 <section-def-cats>
6 <def-cat n="SN">
7 <cat-item tags="SN"/>
8 <cat-item tags="SN.*"/>
9 </def-cat>
10 <def-cat n="V">
11 <cat-item tags="V"/>
12 <cat-item tags="V.*"/>
13 </def-cat>
14 <def-cat n="PRN">
15 <cat-item tags="PRN"/>
16 <cat-item tags="PRN.*"/>
17 </def-cat>
18 <def-cat n="CNJADV">
19 <cat-item tags="CNJADV"/>
20 <cat-item tags="CNJADV.*"/>
21 </def-cat>
22 </section-def-cats>
24 <section-def-attrs>
25 <def-attr n="nbr">
26 <attr-item tags="sg"/>
27 <attr-item tags="pl"/>
28 <attr-item tags="sp"/>
29 <attr-item tags="ND"/>
30 </def-attr>
31 </section-def-attrs>
32 <section-def-vars>
33 <def-var n="nombre"/>
34 <def-var n="genere"/>
35 <def-var n="numero"/>
36 </section-def-vars>
37 <section-def-macros>
38 <def-macro n="nombre_SN" npar="1">
39 <choose><!--To determine value of variables of gender and
40 number and propagate to other rules. Variables are
41 not used again in this rule -->
42 <when>
43 <test>
44 <equal>
45 <clip pos="1" part="nbr"/>
46 <lit-tag v="sg"/>
47 </equal>
48 </test>
49 <let><var n="nombre"/><lit-tag v="sg"/></let>
50 </when>
51 <when>
52 <test>
53 <equal>
54 <clip pos="1" part="nbr"/>
55 <lit-tag v="pl"/>
56 </equal>
57 </test>
58 <let><var n="nombre"/><lit-tag v="pl"/></let>
59 </when>
60 <otherwise>
61 <let><var n="nombre"/><lit-tag v="sg"/></let>
62 </otherwise>
63 </choose>
64 </def-macro>
66 </section-def-macros>
67 <section-rules>
68 <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.)">
69 <pattern>
70 <pattern-item n="SN"/>
71 </pattern>
72 <action>
73 <choose>
74 <when>
75 <test>
76 <equal>
77 <clip pos="1" part="nbr"/>
78 <lit-tag v="ND"/>
79 </equal>
80 </test>
81 <let>
82 <clip pos="1" part="nbr"/>
83 <lit-tag v="sg"/>
84 </let>
85 </when>
86 </choose>
87 <out>
88 <chunk>
89 <clip pos="1" part="lem"/>
90 <clip pos="1" part="tags"/>
91 <clip pos="1" part="chcontent"/>
92 </chunk>
93 </out>
94 <call-macro n="nombre_SN">
95 <with-param pos="1"/>
96 </call-macro>
97 </action>
98 </rule>
99 <rule comment="REGLA: CNJADV PRN SN V">
100 <pattern>
101 <pattern-item n="CNJADV"/>
102 <pattern-item n="PRN"/>
103 <pattern-item n="SN"/>
104 <pattern-item n="V"/>
105 </pattern>
106 <action>
107 <out>
108 <chunk>
109 <clip pos="1" part="lem"/>
110 <clip pos="1" part="tags"/>
111 <clip pos="1" part="chcontent"/>
112 </chunk>
113 <b/>
114 <chunk>
115 <clip pos="2" part="lem"/>
116 <clip pos="2" part="tags"/>
117 <clip pos="2" part="chcontent"/>
118 </chunk>
119 <b/>
120 <chunk>
121 <clip pos="4" part="lem"/>
122 <clip pos="4" part="tags"/>
123 <clip pos="4" part="chcontent"/>
124 </chunk>
125 <b/>
126 <chunk>
127 <clip pos="3" part="lem"/>
128 <clip pos="3" part="tags"/>
129 <clip pos="3" part="chcontent"/>
130 </chunk>
131 </out>
132 <call-macro n="nombre_SN">
133 <with-param pos="1"/>
134 </call-macro>
135 </action>
136 </rule>
137 </section-rules>
138 </interchunk>