# Ordinal number words of 'lv'. Unicode CLDR has no Latvian ordinal rules;
# these sets were written for uccharan from Latvian grammar (Prauliņš,
# Latvian: An Essential Grammar, 2012, ch. 7; Nau, Latvian, 1998, §4.5): the
# definite ordinal is the stem pirm-, otr-, treš-, ceturt-, piekt-, sest-,
# septīt-, astot-, devīt-, desmit-, -padsmit-, -desmit-, simt-, tūkstoš-,
# miljon- with the definite adjective ending, and in a compound number only
# the last word is an ordinal. The cardinal sets are those of CLDR
# common/rbnf/lv.xml (Unicode License v3, see NOTICE).
#
# %spellout-ordinal-masculine (a number with a full stop, "5. vieta"): the
# nominative, with the cardinal words of the counting forms before the last
# word (simts, divi simti, tūkstotis, divi tūkstoši), as the reference voice
# says them; the words with # are read from the language file.
%spellout-ordinal-masculine:
0: nultais;
1: pirmais;
2: otrais;
3: trešais;
4: ceturtais;
5: piektais;
6: sestais;
7: septītais;
8: astotais;
9: devītais;
10: desmitais;
11: >%%spellout-prefixed>padsmitais;
20: divdesmit[ >>|ais];
30: trīsdesmit[ >>|ais];
40: četrdesmit[ >>|ais];
50: piecdesmit[# >>|ais#];
60: sešdesmit[ >>|ais];
70: septiņdesmit[ >>|ais];
80: astoņdesmit[ >>|ais];
90: deviņdesmit[ >>|ais];
100: simt[s# >>|ais];
200: <%%counting<[ simti# >>|simtais#];
1000: [tūkstotis# >>|tūkstošais#];
2000: <%%counting< tūkstoš[i# >>|ais#];
1000000: miljon[s# >>|ais];
2000000: <%%counting< miljon[i# >>|ais];
1000000000: miljard[s# >>|ais];
2000000000: <%%counting< miljard[i# >>|ais];
%%counting:
0: nulle;
1: viens;
2: divi;
3: trīs;
4: četri;
5: pieci;
6: seši;
7: septiņi;
8: astoņi;
9: deviņi;
10: desmit;
11: >%%spellout-prefixed>padsmit;
20: <%%spellout-prefixed<desmit[ >>];
50: piecdesmit#[ >>];
60: <%%spellout-prefixed<desmit[ >>];
100: simts#[ >>];
200: <%%counting< simti#[ >>];
1000: tūkstotis#[ >>];
2000: <%%counting< tūkstoši#[ >>];
# The written forms, for years and dates in improved and normalise-only
# mode ("2024. gada" divtūkstoš divdesmit ceturtā gada, "1998. gadā"
# tūkstoš deviņsimt deviņdesmit astotajā gadā): the stem, then the case
# ending of the definite adjective.
%%stem:
0: nult;
1: pirm;
2: otr;
3: treš;
4: ceturt;
5: piekt;
6: sest;
7: septīt;
8: astot;
9: devīt;
10: desmit;
11: >%%spellout-prefixed>padsmit;
20: <%%spellout-prefixed<desmit[ >>];
100: simt[ >>];
200: <%%spellout-prefixed<simt[ >>];
1000: tūkstoš[ >>];
2000: <%%spellout-prefixed<tūkstoš[ >>];
10000/1000: <%spellout-cardinal-masculine< tūkstoš[ >>];
1000000: miljon[ >>];
2000000: <%spellout-cardinal-masculine< miljon[ >>];
%spellout-ordinal-written:
0: =%%stem=ais;
%spellout-ordinal-masculine-genitive:
0: =%%stem=ā;
%spellout-ordinal-masculine-dative:
0: =%%stem=ajam;
%spellout-ordinal-masculine-accusative:
0: =%%stem=o;
%spellout-ordinal-masculine-locative:
0: =%%stem=ajā;
%spellout-ordinal-feminine:
0: =%%stem=ā;
%spellout-ordinal-feminine-genitive:
0: =%%stem=ās;
%spellout-ordinal-feminine-locative:
0: =%%stem=ajā;
%%spellout-prefixed:
1: vien;
2: div;
3: trīs;
4: četr;
5: piec;
6: seš;
7: septiņ;
8: astoņ;
9: deviņ;
%spellout-cardinal-masculine:
0: nulle;
1: viens;
2: divi;
3: trīs;
4: četri;
5: pieci;
6: seši;
7: septiņi;
8: astoņi;
9: deviņi;
10: desmit;
11: >%%spellout-prefixed>padsmit;
20: <%%spellout-prefixed<desmit[ >>];
100: simt[ >>];
200: <%%spellout-prefixed<simt[ >>];
1000: tūkstoš[ >>];
2000: <%%spellout-prefixed<tūkstoš[ >>];
10000/1000: <%spellout-cardinal-masculine< tūkstoš[ >>];
