make-plural 7.4.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/examples.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "bez": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
16
16
  "bg": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
17
17
  "bho": {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
18
- "blo": {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","16","100","1000","10000","100000","1000000","2.0","2.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0"],"one":["1"],"few":["2","6"],"other":["7","19","100","1000","10000","100000","1000000"]}},
18
+ "blo": {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0"],"one":["1"],"few":["2","6"],"other":["7","22","100","1000","10000","100000","1000000"]}},
19
19
  "bm": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
20
20
  "bn": {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","5","7","10"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","11","25","100","1000","10000","100000","1000000"]}},
21
21
  "bo": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
@@ -29,6 +29,8 @@
29
29
  "chr": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
30
30
  "ckb": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
31
31
  "cs": {"cardinal":{"one":["1"],"few":["2","4"],"many":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["0","5","19","100","1000","10000","100000","1000000"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
32
+ "csw": {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
33
+ "cv": {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
32
34
  "cy": {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["3","3.0","3.00","3.000","3.0000"],"many":["6","6.0","6.00","6.000","6.0000"],"other":["4","5","7","20","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0","7","9"],"one":["1"],"two":["2"],"few":["3","4"],"many":["5","6"],"other":["10","25","100","1000","10000","100000","1000000"]}},
33
35
  "da": {"cardinal":{"one":["1","0.1","1.0","1.6"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.4","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
34
36
  "de": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
@@ -69,6 +71,7 @@
69
71
  "hy": {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
70
72
  "ia": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
71
73
  "id": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
74
+ "ie": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
72
75
  "ig": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
73
76
  "ii": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
74
77
  "io": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
@@ -93,6 +96,8 @@
93
96
  "km": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
94
97
  "kn": {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
95
98
  "ko": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
99
+ "kok": {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
100
+ "kok_Latn": {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
96
101
  "ks": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
97
102
  "ksb": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
98
103
  "ksh": {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
@@ -104,6 +109,7 @@
104
109
  "lg": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
105
110
  "lij": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","89","800","803"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
106
111
  "lkt": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
112
+ "lld": {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
107
113
  "ln": {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
108
114
  "lo": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
109
115
  "lt": {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"few":["2","9","22","29","102","1002","2.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","22.0","102.0","1002.0"],"many":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"],"other":["0","10","20","30","40","50","60","100","1000","10000","100000","1000000","0.0","10.0","11.0","12.0","13.0","14.0","15.0","16.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
@@ -154,13 +160,14 @@
154
160
  "saq": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
155
161
  "sat": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"other":["0","3","17","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
156
162
  "sc": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
157
- "scn": {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
163
+ "scn": {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","89","800","803"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
158
164
  "sd": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
159
165
  "sdh": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
160
166
  "se": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"other":["0","3","17","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
161
167
  "seh": {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
162
168
  "ses": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
163
169
  "sg": {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
170
+ "sgs": {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["3","9","22","29","32","102","1002","3.0","4.0","5.0","6.0","7.0","8.0","9.0","22.0","102.0","1002.0"],"many":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"],"other":["0","10","20","30","40","50","60","100","1000","10000","100000","1000000","0.0","10.0","11.0","12.0","13.0","14.0","15.0","16.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
164
171
  "sh": {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
165
172
  "shi": {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"few":["2","10","2.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","2.00","3.00","4.00","5.00","6.00","7.00","8.00"],"other":["11","26","100","1000","10000","100000","1000000","1.1","1.9","2.1","2.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
166
173
  "si": {"cardinal":{"one":["0","1","0.0","0.1","1.0","0.00","0.01","1.00","0.000","0.001","1.000","0.0000","0.0001","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.2","0.9","1.1","1.8","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
package/examples.mjs CHANGED
@@ -22,7 +22,7 @@ export const bem = c;
22
22
  export const bez = c;
23
23
  export const bg = a;
24
24
  export const bho = b;
25
- export const blo = {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","16","100","1000","10000","100000","1000000","2.0","2.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0"],"one":["1"],"few":["2","6"],"other":["7","19","100","1000","10000","100000","1000000"]}};
25
+ export const blo = {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0"],"one":["1"],"few":["2","6"],"other":["7","22","100","1000","10000","100000","1000000"]}};
26
26
  export const bm = e;
27
27
  export const bn = {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","5","7","10"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","11","25","100","1000","10000","100000","1000000"]}};
28
28
  export const bo = e;
@@ -36,6 +36,8 @@ export const cgg = c;
36
36
  export const chr = c;
37
37
  export const ckb = c;
38
38
  export const cs = {"cardinal":{"one":["1"],"few":["2","4"],"many":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["0","5","19","100","1000","10000","100000","1000000"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
39
+ export const csw = b;
40
+ export const cv = {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
39
41
  export const cy = {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["3","3.0","3.00","3.000","3.0000"],"many":["6","6.0","6.00","6.000","6.0000"],"other":["4","5","7","20","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"zero":["0","7","9"],"one":["1"],"two":["2"],"few":["3","4"],"many":["5","6"],"other":["10","25","100","1000","10000","100000","1000000"]}};
40
42
  export const da = {"cardinal":{"one":["1","0.1","1.0","1.6"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.4","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
41
43
  export const de = d;
@@ -76,6 +78,7 @@ export const hu = {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other"
76
78
  export const hy = {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
77
79
  export const ia = d;
78
80
  export const id = f;
81
+ export const ie = d;
79
82
  export const ig = e;
80
83
  export const ii = e;
81
84
  export const io = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
@@ -100,6 +103,8 @@ export const kl = c;
100
103
  export const km = f;
101
104
  export const kn = {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
102
105
  export const ko = f;
106
+ export const kok = {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}};
107
+ export const kok_Latn = {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}};
103
108
  export const ks = c;
104
109
  export const ksb = c;
105
110
  export const ksh = {"cardinal":{"zero":["0","0.0","0.00","0.000","0.0000"],"one":["1","1.0","1.00","1.000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
@@ -111,6 +116,7 @@ export const lb = c;
111
116
  export const lg = c;
112
117
  export const lij = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","89","800","803"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
113
118
  export const lkt = e;
119
+ export const lld = {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
114
120
  export const ln = b;
115
121
  export const lo = {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
116
122
  export const lt = {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"few":["2","9","22","29","102","1002","2.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","22.0","102.0","1002.0"],"many":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"],"other":["0","10","20","30","40","50","60","100","1000","10000","100000","1000000","0.0","10.0","11.0","12.0","13.0","14.0","15.0","16.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
@@ -161,13 +167,14 @@ export const sah = e;
161
167
  export const saq = c;
162
168
  export const sat = g;
163
169
  export const sc = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
164
- export const scn = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
170
+ export const scn = {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","89","800","803"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
165
171
  export const sd = a;
166
172
  export const sdh = c;
167
173
  export const se = g;
168
174
  export const seh = c;
169
175
  export const ses = e;
170
176
  export const sg = e;
177
+ export const sgs = {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","71.0","81.0","101.0","1001.0"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["3","9","22","29","32","102","1002","3.0","4.0","5.0","6.0","7.0","8.0","9.0","22.0","102.0","1002.0"],"many":["0.1","0.9","1.1","1.7","10.1","100.1","1000.1"],"other":["0","10","20","30","40","50","60","100","1000","10000","100000","1000000","0.0","10.0","11.0","12.0","13.0","14.0","15.0","16.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
171
178
  export const sh = {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
172
179
  export const shi = {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"few":["2","10","2.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","2.00","3.00","4.00","5.00","6.00","7.00","8.00"],"other":["11","26","100","1000","10000","100000","1000000","1.1","1.9","2.1","2.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
173
180
  export const si = {"cardinal":{"one":["0","1","0.0","0.1","1.0","0.00","0.01","1.00","0.000","0.001","1.000","0.0000","0.0001","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.2","0.9","1.1","1.8","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
package/ordinals.d.ts CHANGED
@@ -16,6 +16,7 @@ export const bs: (n: number | string) => "other";
16
16
  export const ca: (n: number | string) => "one" | "two" | "few" | "other";
17
17
  export const ce: (n: number | string) => "other";
18
18
  export const cs: (n: number | string) => "other";
19
+ export const cv: (n: number | string) => "other";
19
20
  export const cy: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
20
21
  export const da: (n: number | string) => "other";
21
22
  export const de: (n: number | string) => "other";
@@ -43,6 +44,7 @@ export const hu: (n: number | string) => "one" | "other";
43
44
  export const hy: (n: number | string) => "one" | "other";
44
45
  export const ia: (n: number | string) => "other";
45
46
  export const id: (n: number | string) => "other";
47
+ export const ie: (n: number | string) => "other";
46
48
  export const is: (n: number | string) => "other";
47
49
  export const it: (n: number | string) => "many" | "other";
48
50
  export const ja: (n: number | string) => "other";
@@ -51,9 +53,12 @@ export const kk: (n: number | string) => "many" | "other";
51
53
  export const km: (n: number | string) => "other";
52
54
  export const kn: (n: number | string) => "other";
53
55
  export const ko: (n: number | string) => "other";
56
+ export const kok: (n: number | string) => "one" | "two" | "few" | "other";
57
+ export const kok_Latn: (n: number | string) => "one" | "two" | "few" | "other";
54
58
  export const kw: (n: number | string) => "one" | "many" | "other";
55
59
  export const ky: (n: number | string) => "other";
56
60
  export const lij: (n: number | string) => "many" | "other";
61
+ export const lld: (n: number | string) => "many" | "other";
57
62
  export const lo: (n: number | string) => "one" | "other";
58
63
  export const lt: (n: number | string) => "other";
59
64
  export const lv: (n: number | string) => "other";
package/ordinals.js CHANGED
@@ -65,6 +65,8 @@ ce: a,
65
65
 
66
66
  cs: a,
67
67
 
68
+ cv: a,
69
+
68
70
  cy: (n) => (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
69
71
  : n == 1 ? 'one'
70
72
  : n == 2 ? 'two'
@@ -141,6 +143,8 @@ ia: a,
141
143
 
142
144
  id: a,
143
145
 
146
+ ie: a,
147
+
144
148
  is: a,
145
149
 
146
150
  it: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
@@ -165,6 +169,16 @@ kn: a,
165
169
 
166
170
  ko: a,
167
171
 
172
+ kok: (n) => n == 1 ? 'one'
173
+ : (n == 2 || n == 3) ? 'two'
174
+ : n == 4 ? 'few'
175
+ : 'other',
176
+
177
+ kok_Latn: (n) => n == 1 ? 'one'
178
+ : (n == 2 || n == 3) ? 'two'
179
+ : n == 4 ? 'few'
180
+ : 'other',
181
+
168
182
  kw: (n) => {
169
183
  const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
170
184
  return (t0 && n >= 1 && n <= 4) || ((n100 >= 1 && n100 <= 4) || (n100 >= 21 && n100 <= 24) || (n100 >= 41 && n100 <= 44) || (n100 >= 61 && n100 <= 64) || (n100 >= 81 && n100 <= 84)) ? 'one'
@@ -179,6 +193,8 @@ lij: (n) => {
179
193
  return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
180
194
  },
181
195
 
196
+ lld: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
197
+
182
198
  lo: b,
183
199
 
184
200
  lt: a,
@@ -244,7 +260,10 @@ ru: a,
244
260
 
245
261
  sc: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
246
262
 
247
- scn: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
263
+ scn: (n) => {
264
+ const s = String(n).split('.'), t0 = Number(s[0]) == n;
265
+ return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
266
+ },
248
267
 
249
268
  sd: a,
250
269
 
package/ordinals.mjs CHANGED
@@ -43,6 +43,7 @@ export const ca = (n) => (n == 1 || n == 3) ? 'one'
43
43
  : 'other';
44
44
  export const ce = a;
45
45
  export const cs = a;
46
+ export const cv = a;
46
47
  export const cy = (n) => (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
47
48
  : n == 1 ? 'one'
48
49
  : n == 2 ? 'two'
@@ -92,6 +93,7 @@ export const hu = (n) => (n == 1 || n == 5) ? 'one' : 'other';
92
93
  export const hy = b;
93
94
  export const ia = a;
94
95
  export const id = a;
96
+ export const ie = a;
95
97
  export const is = a;
96
98
  export const it = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
97
99
  export const ja = a;
@@ -108,6 +110,14 @@ export const kk = (n) => {
108
110
  export const km = a;
109
111
  export const kn = a;
110
112
  export const ko = a;
113
+ export const kok = (n) => n == 1 ? 'one'
114
+ : (n == 2 || n == 3) ? 'two'
115
+ : n == 4 ? 'few'
116
+ : 'other';
117
+ export const kok_Latn = (n) => n == 1 ? 'one'
118
+ : (n == 2 || n == 3) ? 'two'
119
+ : n == 4 ? 'few'
120
+ : 'other';
111
121
  export const kw = (n) => {
112
122
  const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
113
123
  return (t0 && n >= 1 && n <= 4) || ((n100 >= 1 && n100 <= 4) || (n100 >= 21 && n100 <= 24) || (n100 >= 41 && n100 <= 44) || (n100 >= 61 && n100 <= 64) || (n100 >= 81 && n100 <= 84)) ? 'one'
@@ -119,6 +129,7 @@ export const lij = (n) => {
119
129
  const s = String(n).split('.'), t0 = Number(s[0]) == n;
120
130
  return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
121
131
  };
132
+ export const lld = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
122
133
  export const lo = b;
123
134
  export const lt = a;
124
135
  export const lv = a;
@@ -161,7 +172,10 @@ export const pt = a;
161
172
  export const ro = b;
162
173
  export const ru = a;
163
174
  export const sc = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
164
- export const scn = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
175
+ export const scn = (n) => {
176
+ const s = String(n).split('.'), t0 = Number(s[0]) == n;
177
+ return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
178
+ };
165
179
  export const sd = a;
166
180
  export const sh = a;
167
181
  export const si = a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-plural",
3
- "version": "7.4.0",
3
+ "version": "7.5.0",
4
4
  "description": "Unicode CLDR pluralization rules as JavaScript functions",
5
5
  "keywords": [
6
6
  "unicode",
@@ -30,6 +30,8 @@ export const cgg: {cardinal:["one","other"],ordinal:["other"]};
30
30
  export const chr: {cardinal:["one","other"],ordinal:["other"]};
31
31
  export const ckb: {cardinal:["one","other"],ordinal:["other"]};
32
32
  export const cs: {cardinal:["one","few","many","other"],ordinal:["other"]};
33
+ export const csw: {cardinal:["one","other"],ordinal:["other"]};
34
+ export const cv: {cardinal:["zero","one","other"],ordinal:["other"]};
33
35
  export const cy: {cardinal:["zero","one","two","few","many","other"],ordinal:["zero","one","two","few","many","other"]};
34
36
  export const da: {cardinal:["one","other"],ordinal:["other"]};
35
37
  export const de: {cardinal:["one","other"],ordinal:["other"]};
@@ -70,6 +72,7 @@ export const hu: {cardinal:["one","other"],ordinal:["one","other"]};
70
72
  export const hy: {cardinal:["one","other"],ordinal:["one","other"]};
71
73
  export const ia: {cardinal:["one","other"],ordinal:["other"]};
72
74
  export const id: {cardinal:["other"],ordinal:["other"]};
75
+ export const ie: {cardinal:["one","other"],ordinal:["other"]};
73
76
  export const ig: {cardinal:["other"],ordinal:["other"]};
74
77
  export const ii: {cardinal:["other"],ordinal:["other"]};
75
78
  export const io: {cardinal:["one","other"],ordinal:["other"]};
@@ -94,6 +97,8 @@ export const kl: {cardinal:["one","other"],ordinal:["other"]};
94
97
  export const km: {cardinal:["other"],ordinal:["other"]};
95
98
  export const kn: {cardinal:["one","other"],ordinal:["other"]};
96
99
  export const ko: {cardinal:["other"],ordinal:["other"]};
100
+ export const kok: {cardinal:["one","other"],ordinal:["one","two","few","other"]};
101
+ export const kok_Latn: {cardinal:["one","other"],ordinal:["one","two","few","other"]};
97
102
  export const ks: {cardinal:["one","other"],ordinal:["other"]};
98
103
  export const ksb: {cardinal:["one","other"],ordinal:["other"]};
99
104
  export const ksh: {cardinal:["zero","one","other"],ordinal:["other"]};
@@ -105,6 +110,7 @@ export const lb: {cardinal:["one","other"],ordinal:["other"]};
105
110
  export const lg: {cardinal:["one","other"],ordinal:["other"]};
106
111
  export const lij: {cardinal:["one","other"],ordinal:["many","other"]};
107
112
  export const lkt: {cardinal:["other"],ordinal:["other"]};
113
+ export const lld: {cardinal:["one","many","other"],ordinal:["many","other"]};
108
114
  export const ln: {cardinal:["one","other"],ordinal:["other"]};
109
115
  export const lo: {cardinal:["other"],ordinal:["one","other"]};
110
116
  export const lt: {cardinal:["one","few","many","other"],ordinal:["other"]};
@@ -155,13 +161,14 @@ export const sah: {cardinal:["other"],ordinal:["other"]};
155
161
  export const saq: {cardinal:["one","other"],ordinal:["other"]};
156
162
  export const sat: {cardinal:["one","two","other"],ordinal:["other"]};
157
163
  export const sc: {cardinal:["one","other"],ordinal:["many","other"]};
158
- export const scn: {cardinal:["one","other"],ordinal:["many","other"]};
164
+ export const scn: {cardinal:["one","many","other"],ordinal:["many","other"]};
159
165
  export const sd: {cardinal:["one","other"],ordinal:["other"]};
160
166
  export const sdh: {cardinal:["one","other"],ordinal:["other"]};
161
167
  export const se: {cardinal:["one","two","other"],ordinal:["other"]};
162
168
  export const seh: {cardinal:["one","other"],ordinal:["other"]};
163
169
  export const ses: {cardinal:["other"],ordinal:["other"]};
164
170
  export const sg: {cardinal:["other"],ordinal:["other"]};
171
+ export const sgs: {cardinal:["one","two","few","many","other"],ordinal:["other"]};
165
172
  export const sh: {cardinal:["one","few","other"],ordinal:["other"]};
166
173
  export const shi: {cardinal:["one","few","other"],ordinal:["other"]};
167
174
  export const si: {cardinal:["one","other"],ordinal:["other"]};
@@ -40,6 +40,8 @@ cgg: a,
40
40
  chr: a,
41
41
  ckb: a,
42
42
  cs: {cardinal:[o,f,m,x],ordinal:[x]},
43
+ csw: a,
44
+ cv: {cardinal:[z,o,x],ordinal:[x]},
43
45
  cy: {cardinal:[z,o,t,f,m,x],ordinal:[z,o,t,f,m,x]},
44
46
  da: a,
45
47
  de: a,
@@ -80,6 +82,7 @@ hu: b,
80
82
  hy: b,
81
83
  ia: a,
82
84
  id: c,
85
+ ie: a,
83
86
  ig: c,
84
87
  ii: c,
85
88
  io: a,
@@ -104,6 +107,8 @@ kl: a,
104
107
  km: c,
105
108
  kn: a,
106
109
  ko: c,
110
+ kok: {cardinal:[o,x],ordinal:[o,t,f,x]},
111
+ kok_Latn: {cardinal:[o,x],ordinal:[o,t,f,x]},
107
112
  ks: a,
108
113
  ksb: a,
109
114
  ksh: {cardinal:[z,o,x],ordinal:[x]},
@@ -115,6 +120,7 @@ lb: a,
115
120
  lg: a,
116
121
  lij: {cardinal:[o,x],ordinal:[m,x]},
117
122
  lkt: c,
123
+ lld: {cardinal:[o,m,x],ordinal:[m,x]},
118
124
  ln: a,
119
125
  lo: {cardinal:[x],ordinal:[o,x]},
120
126
  lt: {cardinal:[o,f,m,x],ordinal:[x]},
@@ -165,13 +171,14 @@ sah: c,
165
171
  saq: a,
166
172
  sat: d,
167
173
  sc: {cardinal:[o,x],ordinal:[m,x]},
168
- scn: {cardinal:[o,x],ordinal:[m,x]},
174
+ scn: {cardinal:[o,m,x],ordinal:[m,x]},
169
175
  sd: a,
170
176
  sdh: a,
171
177
  se: d,
172
178
  seh: a,
173
179
  ses: c,
174
180
  sg: c,
181
+ sgs: {cardinal:[o,t,f,m,x],ordinal:[x]},
175
182
  sh: {cardinal:[o,f,x],ordinal:[x]},
176
183
  shi: {cardinal:[o,f,x],ordinal:[x]},
177
184
  si: a,
@@ -34,6 +34,8 @@ export const cgg = a;
34
34
  export const chr = a;
35
35
  export const ckb = a;
36
36
  export const cs = {cardinal:[o,f,m,x],ordinal:[x]};
37
+ export const csw = a;
38
+ export const cv = {cardinal:[z,o,x],ordinal:[x]};
37
39
  export const cy = {cardinal:[z,o,t,f,m,x],ordinal:[z,o,t,f,m,x]};
38
40
  export const da = a;
39
41
  export const de = a;
@@ -74,6 +76,7 @@ export const hu = b;
74
76
  export const hy = b;
75
77
  export const ia = a;
76
78
  export const id = c;
79
+ export const ie = a;
77
80
  export const ig = c;
78
81
  export const ii = c;
79
82
  export const io = a;
@@ -98,6 +101,8 @@ export const kl = a;
98
101
  export const km = c;
99
102
  export const kn = a;
100
103
  export const ko = c;
104
+ export const kok = {cardinal:[o,x],ordinal:[o,t,f,x]};
105
+ export const kok_Latn = {cardinal:[o,x],ordinal:[o,t,f,x]};
101
106
  export const ks = a;
102
107
  export const ksb = a;
103
108
  export const ksh = {cardinal:[z,o,x],ordinal:[x]};
@@ -109,6 +114,7 @@ export const lb = a;
109
114
  export const lg = a;
110
115
  export const lij = {cardinal:[o,x],ordinal:[m,x]};
111
116
  export const lkt = c;
117
+ export const lld = {cardinal:[o,m,x],ordinal:[m,x]};
112
118
  export const ln = a;
113
119
  export const lo = {cardinal:[x],ordinal:[o,x]};
114
120
  export const lt = {cardinal:[o,f,m,x],ordinal:[x]};
@@ -159,13 +165,14 @@ export const sah = c;
159
165
  export const saq = a;
160
166
  export const sat = d;
161
167
  export const sc = {cardinal:[o,x],ordinal:[m,x]};
162
- export const scn = {cardinal:[o,x],ordinal:[m,x]};
168
+ export const scn = {cardinal:[o,m,x],ordinal:[m,x]};
163
169
  export const sd = a;
164
170
  export const sdh = a;
165
171
  export const se = d;
166
172
  export const seh = a;
167
173
  export const ses = c;
168
174
  export const sg = c;
175
+ export const sgs = {cardinal:[o,t,f,m,x],ordinal:[x]};
169
176
  export const sh = {cardinal:[o,f,x],ordinal:[x]};
170
177
  export const shi = {cardinal:[o,f,x],ordinal:[x]};
171
178
  export const si = a;
package/plurals.d.ts CHANGED
@@ -30,6 +30,8 @@ export const cgg: (n: number | string, ord?: boolean) => "one" | "other";
30
30
  export const chr: (n: number | string, ord?: boolean) => "one" | "other";
31
31
  export const ckb: (n: number | string, ord?: boolean) => "one" | "other";
32
32
  export const cs: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
33
+ export const csw: (n: number | string, ord?: boolean) => "one" | "other";
34
+ export const cv: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
33
35
  export const cy: (n: number | string, ord?: boolean) => "zero" | "one" | "two" | "few" | "many" | "other";
34
36
  export const da: (n: number | string, ord?: boolean) => "one" | "other";
35
37
  export const de: (n: number | string, ord?: boolean) => "one" | "other";
@@ -70,6 +72,7 @@ export const hu: (n: number | string, ord?: boolean) => "one" | "other";
70
72
  export const hy: (n: number | string, ord?: boolean) => "one" | "other";
71
73
  export const ia: (n: number | string, ord?: boolean) => "one" | "other";
72
74
  export const id: (n: number | string, ord?: boolean) => "other";
75
+ export const ie: (n: number | string, ord?: boolean) => "one" | "other";
73
76
  export const ig: (n: number | string, ord?: boolean) => "other";
74
77
  export const ii: (n: number | string, ord?: boolean) => "other";
75
78
  export const io: (n: number | string, ord?: boolean) => "one" | "other";
@@ -94,6 +97,8 @@ export const kl: (n: number | string, ord?: boolean) => "one" | "other";
94
97
  export const km: (n: number | string, ord?: boolean) => "other";
95
98
  export const kn: (n: number | string, ord?: boolean) => "one" | "other";
96
99
  export const ko: (n: number | string, ord?: boolean) => "other";
100
+ export const kok: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
101
+ export const kok_Latn: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
97
102
  export const ks: (n: number | string, ord?: boolean) => "one" | "other";
98
103
  export const ksb: (n: number | string, ord?: boolean) => "one" | "other";
99
104
  export const ksh: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
@@ -105,6 +110,7 @@ export const lb: (n: number | string, ord?: boolean) => "one" | "other";
105
110
  export const lg: (n: number | string, ord?: boolean) => "one" | "other";
106
111
  export const lij: (n: number | string, ord?: boolean) => "one" | "many" | "other";
107
112
  export const lkt: (n: number | string, ord?: boolean) => "other";
113
+ export const lld: (n: number | string, ord?: boolean) => "one" | "many" | "other";
108
114
  export const ln: (n: number | string, ord?: boolean) => "one" | "other";
109
115
  export const lo: (n: number | string, ord?: boolean) => "one" | "other";
110
116
  export const lt: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
@@ -162,6 +168,7 @@ export const se: (n: number | string, ord?: boolean) => "one" | "two" | "other";
162
168
  export const seh: (n: number | string, ord?: boolean) => "one" | "other";
163
169
  export const ses: (n: number | string, ord?: boolean) => "other";
164
170
  export const sg: (n: number | string, ord?: boolean) => "other";
171
+ export const sgs: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
165
172
  export const sh: (n: number | string, ord?: boolean) => "one" | "few" | "other";
166
173
  export const shi: (n: number | string, ord?: boolean) => "one" | "few" | "other";
167
174
  export const si: (n: number | string, ord?: boolean) => "one" | "other";
package/plurals.js CHANGED
@@ -178,6 +178,15 @@ cs: (n, ord) => {
178
178
  : 'other';
179
179
  },
180
180
 
181
+ csw: b,
182
+
183
+ cv: (n, ord) => {
184
+ if (ord) return 'other';
185
+ return n == 0 ? 'zero'
186
+ : n == 1 ? 'one'
187
+ : 'other';
188
+ },
189
+
181
190
  cy: (n, ord) => {
182
191
  if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
183
192
  : n == 1 ? 'one'
@@ -373,6 +382,8 @@ ia: d,
373
382
 
374
383
  id: e,
375
384
 
385
+ ie: d,
386
+
376
387
  ig: e,
377
388
 
378
389
  ii: e,
@@ -444,6 +455,22 @@ kn: c,
444
455
 
445
456
  ko: e,
446
457
 
458
+ kok: (n, ord) => {
459
+ if (ord) return n == 1 ? 'one'
460
+ : (n == 2 || n == 3) ? 'two'
461
+ : n == 4 ? 'few'
462
+ : 'other';
463
+ return n >= 0 && n <= 1 ? 'one' : 'other';
464
+ },
465
+
466
+ kok_Latn: (n, ord) => {
467
+ if (ord) return n == 1 ? 'one'
468
+ : (n == 2 || n == 3) ? 'two'
469
+ : n == 4 ? 'few'
470
+ : 'other';
471
+ return n >= 0 && n <= 1 ? 'one' : 'other';
472
+ },
473
+
447
474
  ks: a,
448
475
 
449
476
  ksb: a,
@@ -492,6 +519,14 @@ lij: (n, ord) => {
492
519
 
493
520
  lkt: e,
494
521
 
522
+ lld: (n, ord) => {
523
+ const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
524
+ if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
525
+ return n == 1 && v0 ? 'one'
526
+ : i != 0 && i1000000 == 0 && v0 ? 'many'
527
+ : 'other';
528
+ },
529
+
495
530
  ln: b,
496
531
 
497
532
  lo: (n, ord) => {
@@ -693,9 +728,11 @@ sc: (n, ord) => {
693
728
  },
694
729
 
695
730
  scn: (n, ord) => {
696
- const s = String(n).split('.'), v0 = !s[1];
697
- if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
698
- return n == 1 && v0 ? 'one' : 'other';
731
+ const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, i1000000 = i.slice(-6);
732
+ if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
733
+ return n == 1 && v0 ? 'one'
734
+ : i != 0 && i1000000 == 0 && v0 ? 'many'
735
+ : 'other';
699
736
  },
700
737
 
701
738
  sd: a,
@@ -710,6 +747,16 @@ ses: e,
710
747
 
711
748
  sg: e,
712
749
 
750
+ sgs: (n, ord) => {
751
+ const s = String(n).split('.'), f = s[1] || '', t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
752
+ if (ord) return 'other';
753
+ return n10 == 1 && n100 != 11 ? 'one'
754
+ : n == 2 ? 'two'
755
+ : n != 2 && (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
756
+ : f != 0 ? 'many'
757
+ : 'other';
758
+ },
759
+
713
760
  sh: (n, ord) => {
714
761
  const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
715
762
  if (ord) return 'other';