xref: /aosp_15_r20/external/cldr/common/supplemental/grammaticalFeatures.xml (revision 912701f9769bb47905792267661f0baf2b85bed5)
1<?xml version="1.0" encoding="UTF-8" ?>
2<!DOCTYPE supplementalData SYSTEM "../../common/dtd/ldmlSupplemental.dtd">
3<!--
4Copyright © 2019 Unicode, Inc.
5CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6For terms of use, see http://www.unicode.org/copyright.html
7-->
8
9<!--
10
11These are the grammatical features that are used in each locale to mark inflected forms of nouns.
12
13CLDR textual items may be tagged with grammatical features when these are needed to ensure that the
14correct forms are used in context.
15
16For instance, in Russian "Уменьши яркость света до 33 процентов" ("dim the light to 33 percent"),
17the 'percent' unit must be expressed in plural and in the genitive case, whereas "1%" would be
18expressed in different cases depending on the context. The case usage is implicit in short form
19"33%", but the full form requires the grammatical variant marked by case and number to be expressed
20correctly.
21
22In romance languages, nouns such as unit names have an intrinsic grammatical gender, which
23propagates by agreement to other parts of sentence. For example, in French "2 jours sont passés"
24("two days have gone by") expresses the participle "passés" in the plural masculine form, whereas
25"2 heures sont passées" requires the participle in the plural feminine form to agree with the
26grammatical gender of the unit "h", even when short forms are used.
27
28Note that plural status is not included here: CLDR handles plurals with special categories in
29plurals.xml and ordinals.xml. See those files and the LDML spec for more information.
30
31-->
32
33<supplementalData>
34  <version number="$Revision: 1 $"/>
35  <grammaticalData>
36    <grammaticalFeatures targets="nominal" locales="af en fil ja ko lo ms my ne th vi zh">
37      <!-- No grammatical features (number is not considered).
38      	   However, the data doesn't yet clearly distinguish semantic gender from non-semantic gender; that is to come later. -->
39    </grammaticalFeatures>
40    <grammaticalFeatures targets="nominal" locales="ca es fr it pt"> <!-- add lij if it is added as a locale -->
41      <grammaticalGender values="masculine feminine"/>
42    </grammaticalFeatures>
43    <grammaticalFeatures targets="nominal" locales="nl">
44      <grammaticalGender values="common neuter"/>
45    </grammaticalFeatures>
46    <grammaticalFeatures targets="nominal" locales="hy">
47      <grammaticalCase values="nominative ablative  dative locative instrumental"/>
48    </grammaticalFeatures>
49    <grammaticalFeatures targets="nominal" locales="te">
50      <grammaticalCase values="nominative oblique accusative dative locative instrumental"/>
51      <grammaticalCase scope="units"/>
52    </grammaticalFeatures>
53    <grammaticalFeatures targets="nominal" locales="ta">
54      <grammaticalCase values="nominative genitive accusative dative locative instrumental ablative vocative"/>
55      <grammaticalCase scope="units" values="nominative accusative dative ablative"/>
56    </grammaticalFeatures>
57    <grammaticalFeatures targets="nominal" locales="fi">
58      <grammaticalCase values="nominative abessive ablative adessive allative comitative elative essive genitive illative inessive instrumental partitive translative"/>
59      <grammaticalCase scope="units" values="nominative elative illative partitive genitive"/>
60      <!-- Finnish nouns also inflect in possessives, with agreement on number and person. -->
61    </grammaticalFeatures>
62    <grammaticalFeatures targets="nominal" locales="hu">
63      <grammaticalCase values="nominative ablative accusative adessive allative causal dative delative elative essive illative inessive instrumental sublative superessive terminative translative"/>
64      <grammaticalCase scope="units" values="nominative accusative instrumental terminative translative"/>
65      <!-- Hungarian nouns also inflect in possessives, with agreement on number and person. -->
66    </grammaticalFeatures>
67    <grammaticalFeatures targets="nominal" locales="kk tr">
68      <grammaticalCase values="nominative genitive dative accusative instrumental ablative locative"/>
69      <grammaticalCase scope="units"/>
70    </grammaticalFeatures>
71    <grammaticalFeatures targets="nominal" locales="az ky uz">
72      <grammaticalCase values="nominative genitive dative accusative ablative locative"/>
73      <grammaticalCase scope="units"/>
74    </grammaticalFeatures>
75    <grammaticalFeatures targets="nominal" locales="id">
76      <grammaticalDefiniteness values="definite indefinite"/>
77      <!-- Indonesian nouns inflect in a possessive expression, with agreement on person. -->
78    </grammaticalFeatures>
79    <grammaticalFeatures targets="nominal" locales="el">
80      <grammaticalCase values="nominative genitive accusative vocative"/>
81      <grammaticalCase scope="units" values="nominative genitive accusative"/>
82      <grammaticalGender values="masculine feminine neuter"/>
83    </grammaticalFeatures>
84    <grammaticalFeatures targets="nominal" locales="sl">
85      <grammaticalCase values="nominative genitive accusative dative instrumental locative"/>
86      <grammaticalGender values="masculine feminine neuter"/>
87    </grammaticalFeatures>
88    <grammaticalFeatures targets="nominal" locales="de">
89      <grammaticalCase values="nominative genitive dative accusative"/>
90      <grammaticalGender values="masculine feminine neuter"/>
91    </grammaticalFeatures>
92    <grammaticalFeatures targets="nominal" locales="hi pa">
93      <grammaticalCase values="nominative oblique"/>
94      <grammaticalGender values="masculine feminine"/>
95    </grammaticalFeatures>
96    <grammaticalFeatures targets="nominal" locales="ur">
97      <grammaticalCase values="nominative oblique"/>
98      <grammaticalCase scope="units"/>
99      <grammaticalGender values="masculine feminine"/>
100    </grammaticalFeatures>
101    <grammaticalFeatures targets="nominal" locales="ml"> <!-- Holding back on ml until we get more reliable information -->
102      <grammaticalCase values="nominative genitive dative accusative instrumental locative comitative locativecopulative sociative"/>
103      <grammaticalCase scope="units"/>
104      <grammaticalGender values="animate inanimate feminine neuter"/>
105      <grammaticalGender scope="units"/>
106    </grammaticalFeatures>
107    <grammaticalFeatures targets="nominal" locales="mr">
108      <grammaticalCase values="nominative accusative dative ergative locative ablative genitive"/>
109      <grammaticalGender values="masculine feminine neuter"/>
110      <!-- Genitive agrees in gender, case and number with the antecedent. -->
111      <!-- Oblique can be further inflected by semantics-defining suffixes. -->
112    </grammaticalFeatures>
113    <grammaticalFeatures targets="nominal" locales="gu">
114      <grammaticalCase values="nominative genitive accusative dative locative instrumental vocative"/>
115      <grammaticalCase  scope="units"/>
116      <grammaticalGender values="masculine feminine neuter"/>
117      <grammaticalGender scope="units"/>
118    </grammaticalFeatures>
119    <grammaticalFeatures targets="nominal" locales="kn">
120      <grammaticalCase values="nominative genitive accusative dative locative instrumental vocative"/>
121      <grammaticalCase scope="units" values="nominative genitive accusative dative locative"/>
122      <grammaticalGender values="masculine feminine neuter"/>
123      <grammaticalGender scope="units" values="neuter"/>
124    </grammaticalFeatures>
125    <grammaticalFeatures targets="nominal" locales="he">
126      <grammaticalGender values="masculine feminine"/>
127      <grammaticalDefiniteness values="definite indefinite construct"/>
128      <!-- Note that Hebrew nouns also inflect in possessives, with agreement on person, number and gender -->
129    </grammaticalFeatures>
130    <grammaticalFeatures targets="nominal" locales="ar">
131      <grammaticalCase values="nominative genitive accusative"/>
132      <grammaticalCase scope="units"/>
133      <grammaticalGender values="masculine feminine"/>
134      <grammaticalDefiniteness values="definite indefinite construct"/>
135      <!-- Note that Arabic nouns also inflect in possessives, with agreement on person, number and gender -->
136    </grammaticalFeatures>
137    <grammaticalFeatures targets="nominal" locales="fa">
138      <grammaticalDefiniteness values="definite indefinite construct"/>
139      <!-- Note that Persian nouns also inflect in possessives, with agreement on person and number -->
140    </grammaticalFeatures>
141    <grammaticalFeatures targets="nominal" locales="bn">
142      <grammaticalCase values="nominative accusative genitive locative"/>
143      <grammaticalCase scope="units"/>
144      <grammaticalDefiniteness values="definite indefinite"/>
145      <!-- Gender is only used for expressing human activities/professions. -->
146    </grammaticalFeatures>
147    <grammaticalFeatures targets="nominal" locales="si">
148      <grammaticalCase values="nominative genitive ablative accusative dative"/>
149      <grammaticalCase scope="units"/>
150      <grammaticalGender values="masculine feminine neuter"/>
151      <grammaticalGender scope="units"/>
152      <grammaticalDefiniteness values="definite indefinite"/>
153      <!-- Neuter is only used for inanimate nouns; plurals have no definiteness marker. -->
154    </grammaticalFeatures>
155    <grammaticalFeatures targets="nominal" locales="is">
156      <grammaticalCase values="nominative genitive dative accusative"/>
157      <grammaticalGender values="masculine feminine neuter"/>
158      <grammaticalDefiniteness values="definite indefinite"/>
159    </grammaticalFeatures>
160    <grammaticalFeatures targets="nominal" locales="da">
161      <grammaticalCase values="nominative genitive"/>
162      <grammaticalGender values="common neuter"/>
163      <grammaticalDefiniteness values="definite indefinite unspecified"/>
164    </grammaticalFeatures>
165    <grammaticalFeatures targets="nominal" locales="sv">
166      <grammaticalCase values="nominative genitive"/>
167      <grammaticalGender values="common neuter"/>
168      <grammaticalDefiniteness values="definite indefinite"/>
169    </grammaticalFeatures>
170    <grammaticalFeatures targets="nominal" locales="ro">
171      <grammaticalCase values="nominative genitive"/>
172      <grammaticalGender values="masculine feminine neuter"/>
173      <grammaticalDefiniteness values="definite indefinite"/>
174    </grammaticalFeatures>
175    <grammaticalFeatures targets="nominal" locales="am">
176      <grammaticalCase values="nominative accusative"/>
177      <grammaticalDefiniteness values="definite indefinite"/>
178      <!-- Gender is only used for expressing human activities/professions. -->
179    </grammaticalFeatures>
180    <grammaticalFeatures targets="nominal" locales="nb nn no">
181      <grammaticalCase values="nominative genitive"/>
182      <grammaticalGender values="masculine feminine neuter"/>
183      <grammaticalDefiniteness values="definite indefinite"/>
184    </grammaticalFeatures>
185    <grammaticalFeatures targets="nominal" locales="uk">
186      <grammaticalCase values="nominative genitive dative accusative instrumental vocative locative"/>
187      <grammaticalCase scope="units" values="nominative genitive accusative dative locative instrumental"/>
188      <grammaticalGender values="masculine feminine neuter"/>
189    </grammaticalFeatures>
190    <grammaticalFeatures targets="nominal" locales="lv">
191      <grammaticalCase values="nominative genitive dative accusative vocative locative"/>
192      <grammaticalCase scope="units" values="nominative genitive dative accusative locative"/>
193      <grammaticalGender values="masculine feminine"/>
194    </grammaticalFeatures>
195    <grammaticalFeatures targets="nominal" locales="lt">
196      <grammaticalCase values="nominative genitive dative accusative instrumental vocative locative"/>
197      <grammaticalCase scope="units" values="nominative genitive dative accusative instrumental locative"/>
198      <grammaticalGender values="masculine feminine"/>
199    </grammaticalFeatures>
200    <grammaticalFeatures targets="nominal" locales="cs sk">
201      <grammaticalCase values="nominative genitive dative accusative instrumental vocative locative"/>
202      <grammaticalCase scope="units" values="nominative genitive dative accusative instrumental locative"/>
203      <grammaticalGender values="animate inanimate feminine neuter"/>
204      <grammaticalGender scope="units" values="inanimate feminine neuter"/>
205      <!-- Czech also inflects in polarity (negation is a prefix) -->
206    </grammaticalFeatures>
207    <grammaticalFeatures targets="nominal" locales="hr sr">
208      <grammaticalCase values="nominative genitive dative accusative instrumental vocative locative"/>
209      <grammaticalCase scope="units" values="nominative genitive accusative instrumental"/>
210      <grammaticalGender values="animate inanimate feminine neuter"/>
211      <grammaticalGender scope="units" values="inanimate feminine neuter"/>
212    </grammaticalFeatures>
213    <grammaticalFeatures targets="nominal" locales="ru">
214      <grammaticalCase values="nominative genitive dative accusative instrumental prepositional vocative locative"/>
215      <grammaticalCase scope="units" values="nominative accusative dative genitive prepositional instrumental"/>
216      <grammaticalGender values="masculine feminine neuter"/>
217    </grammaticalFeatures>
218    <grammaticalFeatures targets="nominal" locales="pl">
219      <grammaticalCase values="nominative genitive dative accusative instrumental vocative locative"/>
220      <grammaticalCase scope="units" values="accusative genitive nominative"/>
221      <grammaticalGender values="animate inanimate personal feminine neuter"/>
222      <grammaticalGender scope="units" values="inanimate feminine neuter"/>
223    </grammaticalFeatures>
224    <grammaticalDerivations locales="root">
225	<!-- determine the gender of a compound unit from the gender of its components -->
226	<!-- The attributeValues of value are: 0 (=gender of the first element), 1 (=gender of second element), or one of the valid gender values for the language -->
227
228	  <deriveCompound feature="gender" structure="per" value="0"/> <!-- gender(gram-per-meter) ←  gender(gram) -->
229	  <deriveCompound feature="gender" structure="times" value="1"/> <!-- gender(newton-meter) ←  gender(meter) -->
230	  <deriveCompound feature="gender" structure="power" value="0"/> <!-- gender(square-meter) ←  gender(meter) -->
231	  <deriveCompound feature="gender" structure="prefix" value="0"/> <!-- gender(kilometer) ←  gender(meter)-->
232
233	<!-- from the pluralCategory of the compound unit, determine the pluralCategory of its components -->
234	<!-- The attributeValues of value0 and value1 are: compound (=the pluralCategory of the compound),  or one of the valid plural category values for the language -->
235
236	  <deriveComponent feature="plural" structure="per" value0="compound" value1="one"/> <!-- compound(gram-per-meter) ⇒  compound(gram) “per" singular(meter) -->
237	  <deriveComponent feature="plural" structure="times" value0="one"  value1="compound"/>  <!-- compound(newton-meter) ⇒  singular(newton) “-" compound(meter) -->
238	  <deriveComponent feature="plural" structure="power" value0="one"  value1="compound"/>  <!-- compound(square-meter) ⇒  singular(square) compound(meter) -->
239	  <deriveComponent feature="plural" structure="prefix" value0="one"  value1="compound"/> <!-- compound(kilometer) ⇒  singular(kilo) compound(meter) -->
240
241	<!-- from the grammatical case of the compound unit, determine the grammatical case of its components -->
242	<!-- The attributeValues of value0 and value1 are: compound (=the grammatical case of the compound),  or one of the valid grammatical case values for the language -->
243
244	  <deriveComponent feature="case" structure="per" value0="compound" value1="nominative"/> <!-- compound(gram-per-meter) ⇒ compound(gram) “per" nominative(meter) -->
245	  <deriveComponent feature="case" structure="times" value0="nominative"  value1="compound"/> <!-- compound(newton-meter) ⇒  nominative(newton) “-" compound(meter) -->
246	  <deriveComponent feature="case" structure="power" value0="nominative"  value1="compound"/> <!-- compound(square-meter) ⇒  nominative(square) compound(meter) -->
247	  <deriveComponent feature="case" structure="prefix" value0="nominative"  value1="compound"/><!--compound(kilometer) ⇒  nominative(kilo) compound(meter) -->
248	</grammaticalDerivations>
249	<grammaticalDerivations locales="de">
250	<!-- determine the gender of a compound unit from the gender of its components -->
251	<!-- The attributeValues of value are: 0 (=gender of the first element), 1 (=gender of second element), or one of the valid gender values for the language -->
252
253	  <deriveCompound feature="gender" structure="per" value="0"/> <!-- gender(gram-per-meter) ←  gender(gram) -->
254	  <deriveCompound feature="gender" structure="times" value="1"/> <!-- gender(newton-meter) ←  gender(meter) -->
255	  <deriveCompound feature="gender" structure="power" value="0"/> <!-- gender(square-meter) ←  gender(meter) -->
256	  <deriveCompound feature="gender" structure="prefix" value="0"/> <!-- gender(kilometer) ←  gender(meter)-->
257
258	<!-- from the pluralCategory of the compound unit, determine the pluralCategory of its components -->
259	<!-- The attributeValues of value0 and value1 are: compound (=the pluralCategory of the compound),  or one of the valid plural category values for the language -->
260
261	  <deriveComponent feature="plural" structure="per" value0="compound" value1="one"/> <!-- compound(gram-per-meter) ⇒  compound(gram) “per" singular(meter) -->
262	  <deriveComponent feature="plural" structure="times" value0="one"  value1="compound"/>  <!-- compound(newton-meter) ⇒  singular(newton) “-" compound(meter) -->
263	  <deriveComponent feature="plural" structure="power" value0="one"  value1="compound"/>  <!-- compound(square-meter) ⇒  singular(square) compound(meter) -->
264	  <deriveComponent feature="plural" structure="prefix" value0="one"  value1="compound"/> <!-- compound(kilometer) ⇒  singular(kilo) compound(meter) -->
265
266	<!-- from the grammatical case of the compound unit, determine the grammatical case of its components -->
267	<!-- The attributeValues of value0 and value1 are: compound (=the grammatical case of the compound),  or one of the valid grammatical case values for the language -->
268
269	  <deriveComponent feature="case" structure="per" value0="compound" value1="accusative"/> <!-- compound(gram-per-meter) ⇒ compound(gram) “per" accusative(meter) -->
270	  <deriveComponent feature="case" structure="times" value0="nominative"  value1="compound"/> <!-- compound(newton-meter) ⇒  nominative(newton) “-" compound(meter) -->
271	  <deriveComponent feature="case" structure="power" value0="nominative"  value1="compound"/> <!-- compound(square-meter) ⇒  nominative(square) compound(meter) -->
272	  <deriveComponent feature="case" structure="prefix" value0="nominative"  value1="compound"/><!--compound(kilometer) ⇒  nominative(kilo) compound(meter) -->
273	</grammaticalDerivations>
274	<grammaticalDerivations locales="fr">
275	<!-- determine the gender of a compound unit from the gender of its components -->
276	<!-- The attributeValues of value are: 0 (=gender of the first element), 1 (=gender of second element), or one of the valid gender values for the language -->
277
278	  <deriveCompound feature="gender" structure="per" value="0"/> <!-- gender(gram-per-meter) ←  gender(gram) -->
279	  <deriveCompound feature="gender" structure="times" value="0"/> <!-- gender(newton-meter) ←  gender(newton) -->
280	  <deriveCompound feature="gender" structure="power" value="0"/> <!-- gender(square-meter) ←  gender(meter) -->
281	  <deriveCompound feature="gender" structure="prefix" value="0"/> <!-- gender(kilometer) ←  gender(meter)-->
282
283	<!-- from the pluralCategory of the compound unit, determine the pluralCategory of its components -->
284	<!-- The attributeValues of value0 and value1 are: compound (=the pluralCategory of the compound),  or one of the valid plural category values for the language -->
285
286	  <deriveComponent feature="plural" structure="per" value0="compound" value1="one"/> <!-- compound(gram-per-meter) ⇒  compound(gram) “per" singular(meter) -->
287	  <deriveComponent feature="plural" structure="times" value0="compound"  value1="compound"/>  <!-- compound(newton-meter) ⇒  compound(newton) “-" compound(meter) -->
288	  <deriveComponent feature="plural" structure="power" value0="compound"  value1="compound"/>  <!-- compound(square-meter) ⇒  compound(square) compound(meter) -->
289	  <deriveComponent feature="plural" structure="prefix" value0="one"  value1="compound"/> <!-- compound(kilometer) ⇒  singular(kilo) compound(meter) -->
290
291	</grammaticalDerivations>
292  </grammaticalData>
293</supplementalData>
294