make-plural 7.4.0 → 8.0.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/README.md +9 -10
- package/cardinals.d.ts +8 -1
- package/cardinals.js +283 -504
- package/examples.d.ts +9 -2
- package/examples.js +224 -224
- package/examples.json +9 -2
- package/ordinals.d.ts +5 -0
- package/ordinals.js +140 -235
- package/package.json +9 -61
- package/pluralCategories.d.ts +8 -1
- package/pluralCategories.js +229 -229
- package/plurals.d.ts +7 -0
- package/plurals.js +331 -514
- package/ranges.js +93 -190
- package/cardinals.mjs +0 -470
- package/examples.mjs +0 -225
- package/ordinals.mjs +0 -203
- package/pluralCategories.mjs +0 -223
- package/plurals.mjs +0 -673
- package/ranges.mjs +0 -106
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","
|
|
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","
|
|
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/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
|
@@ -1,312 +1,217 @@
|
|
|
1
1
|
const a = (n) => 'other';
|
|
2
2
|
const b = (n) => n == 1 ? 'one' : 'other';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}(this, {
|
|
10
|
-
af: a,
|
|
11
|
-
|
|
12
|
-
am: a,
|
|
13
|
-
|
|
14
|
-
an: a,
|
|
15
|
-
|
|
16
|
-
ar: a,
|
|
17
|
-
|
|
18
|
-
as: (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
4
|
+
export const af = a;
|
|
5
|
+
export const am = a;
|
|
6
|
+
export const an = a;
|
|
7
|
+
export const ar = a;
|
|
8
|
+
export const as = (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
19
9
|
: (n == 2 || n == 3) ? 'two'
|
|
20
10
|
: n == 4 ? 'few'
|
|
21
11
|
: n == 6 ? 'many'
|
|
22
|
-
: 'other'
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
az: (n) => {
|
|
12
|
+
: 'other';
|
|
13
|
+
export const ast = a;
|
|
14
|
+
export const az = (n) => {
|
|
27
15
|
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
|
|
28
16
|
return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
|
|
29
17
|
: (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
|
|
30
18
|
: i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
|
|
31
19
|
: 'other';
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
be: (n) => {
|
|
20
|
+
};
|
|
21
|
+
export const bal = b;
|
|
22
|
+
export const be = (n) => {
|
|
37
23
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
38
24
|
return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
blo: (n) => {
|
|
25
|
+
};
|
|
26
|
+
export const bg = a;
|
|
27
|
+
export const blo = (n) => {
|
|
44
28
|
const s = String(n).split('.'), i = s[0];
|
|
45
29
|
return i == 0 ? 'zero'
|
|
46
30
|
: i == 1 ? 'one'
|
|
47
31
|
: (i == 2 || i == 3 || i == 4 || i == 5 || i == 6) ? 'few'
|
|
48
32
|
: 'other';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
bn: (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
33
|
+
};
|
|
34
|
+
export const bn = (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
52
35
|
: (n == 2 || n == 3) ? 'two'
|
|
53
36
|
: n == 4 ? 'few'
|
|
54
37
|
: n == 6 ? 'many'
|
|
55
|
-
: 'other'
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
ca: (n) => (n == 1 || n == 3) ? 'one'
|
|
38
|
+
: 'other';
|
|
39
|
+
export const bs = a;
|
|
40
|
+
export const ca = (n) => (n == 1 || n == 3) ? 'one'
|
|
60
41
|
: n == 2 ? 'two'
|
|
61
42
|
: n == 4 ? 'few'
|
|
62
|
-
: 'other'
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
cy: (n) => (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
|
|
43
|
+
: 'other';
|
|
44
|
+
export const ce = a;
|
|
45
|
+
export const cs = a;
|
|
46
|
+
export const cv = a;
|
|
47
|
+
export const cy = (n) => (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
|
|
69
48
|
: n == 1 ? 'one'
|
|
70
49
|
: n == 2 ? 'two'
|
|
71
50
|
: (n == 3 || n == 4) ? 'few'
|
|
72
51
|
: (n == 5 || n == 6) ? 'many'
|
|
73
|
-
: 'other'
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
dsb: a,
|
|
80
|
-
|
|
81
|
-
el: a,
|
|
82
|
-
|
|
83
|
-
en: (n) => {
|
|
52
|
+
: 'other';
|
|
53
|
+
export const da = a;
|
|
54
|
+
export const de = a;
|
|
55
|
+
export const dsb = a;
|
|
56
|
+
export const el = a;
|
|
57
|
+
export const en = (n) => {
|
|
84
58
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
85
59
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
86
60
|
: n10 == 2 && n100 != 12 ? 'two'
|
|
87
61
|
: n10 == 3 && n100 != 13 ? 'few'
|
|
88
62
|
: 'other';
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
fil: b,
|
|
102
|
-
|
|
103
|
-
fr: b,
|
|
104
|
-
|
|
105
|
-
fy: a,
|
|
106
|
-
|
|
107
|
-
ga: b,
|
|
108
|
-
|
|
109
|
-
gd: (n) => (n == 1 || n == 11) ? 'one'
|
|
63
|
+
};
|
|
64
|
+
export const es = a;
|
|
65
|
+
export const et = a;
|
|
66
|
+
export const eu = a;
|
|
67
|
+
export const fa = a;
|
|
68
|
+
export const fi = a;
|
|
69
|
+
export const fil = b;
|
|
70
|
+
export const fr = b;
|
|
71
|
+
export const fy = a;
|
|
72
|
+
export const ga = b;
|
|
73
|
+
export const gd = (n) => (n == 1 || n == 11) ? 'one'
|
|
110
74
|
: (n == 2 || n == 12) ? 'two'
|
|
111
75
|
: (n == 3 || n == 13) ? 'few'
|
|
112
|
-
: 'other'
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
gsw: a,
|
|
117
|
-
|
|
118
|
-
gu: (n) => n == 1 ? 'one'
|
|
76
|
+
: 'other';
|
|
77
|
+
export const gl = a;
|
|
78
|
+
export const gsw = a;
|
|
79
|
+
export const gu = (n) => n == 1 ? 'one'
|
|
119
80
|
: (n == 2 || n == 3) ? 'two'
|
|
120
81
|
: n == 4 ? 'few'
|
|
121
82
|
: n == 6 ? 'many'
|
|
122
|
-
: 'other'
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
hi: (n) => n == 1 ? 'one'
|
|
83
|
+
: 'other';
|
|
84
|
+
export const he = a;
|
|
85
|
+
export const hi = (n) => n == 1 ? 'one'
|
|
127
86
|
: (n == 2 || n == 3) ? 'two'
|
|
128
87
|
: n == 4 ? 'few'
|
|
129
88
|
: n == 6 ? 'many'
|
|
130
|
-
: 'other'
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
id: a,
|
|
143
|
-
|
|
144
|
-
is: a,
|
|
145
|
-
|
|
146
|
-
it: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
|
|
147
|
-
|
|
148
|
-
ja: a,
|
|
149
|
-
|
|
150
|
-
ka: (n) => {
|
|
89
|
+
: 'other';
|
|
90
|
+
export const hr = a;
|
|
91
|
+
export const hsb = a;
|
|
92
|
+
export const hu = (n) => (n == 1 || n == 5) ? 'one' : 'other';
|
|
93
|
+
export const hy = b;
|
|
94
|
+
export const ia = a;
|
|
95
|
+
export const id = a;
|
|
96
|
+
export const ie = a;
|
|
97
|
+
export const is = a;
|
|
98
|
+
export const it = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
99
|
+
export const ja = a;
|
|
100
|
+
export const ka = (n) => {
|
|
151
101
|
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
|
|
152
102
|
return i == 1 ? 'one'
|
|
153
103
|
: i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'
|
|
154
104
|
: 'other';
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
kk: (n) => {
|
|
105
|
+
};
|
|
106
|
+
export const kk = (n) => {
|
|
158
107
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
159
108
|
return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
109
|
+
};
|
|
110
|
+
export const km = a;
|
|
111
|
+
export const kn = a;
|
|
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';
|
|
121
|
+
export const kw = (n) => {
|
|
169
122
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
170
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'
|
|
171
124
|
: n == 5 || n100 == 5 ? 'many'
|
|
172
125
|
: 'other';
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
lij: (n) => {
|
|
126
|
+
};
|
|
127
|
+
export const ky = a;
|
|
128
|
+
export const lij = (n) => {
|
|
178
129
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
179
130
|
return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
lo
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
lv: a,
|
|
187
|
-
|
|
188
|
-
mk: (n) => {
|
|
131
|
+
};
|
|
132
|
+
export const lld = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
133
|
+
export const lo = b;
|
|
134
|
+
export const lt = a;
|
|
135
|
+
export const lv = a;
|
|
136
|
+
export const mk = (n) => {
|
|
189
137
|
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
190
138
|
return i10 == 1 && i100 != 11 ? 'one'
|
|
191
139
|
: i10 == 2 && i100 != 12 ? 'two'
|
|
192
140
|
: (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? 'many'
|
|
193
141
|
: 'other';
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
mo: b,
|
|
201
|
-
|
|
202
|
-
mr: (n) => n == 1 ? 'one'
|
|
142
|
+
};
|
|
143
|
+
export const ml = a;
|
|
144
|
+
export const mn = a;
|
|
145
|
+
export const mo = b;
|
|
146
|
+
export const mr = (n) => n == 1 ? 'one'
|
|
203
147
|
: (n == 2 || n == 3) ? 'two'
|
|
204
148
|
: n == 4 ? 'few'
|
|
205
|
-
: 'other'
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
nb: a,
|
|
212
|
-
|
|
213
|
-
ne: (n) => {
|
|
149
|
+
: 'other';
|
|
150
|
+
export const ms = b;
|
|
151
|
+
export const my = a;
|
|
152
|
+
export const nb = a;
|
|
153
|
+
export const ne = (n) => {
|
|
214
154
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
215
155
|
return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
no: a,
|
|
221
|
-
|
|
222
|
-
or: (n) => {
|
|
156
|
+
};
|
|
157
|
+
export const nl = a;
|
|
158
|
+
export const no = a;
|
|
159
|
+
export const or = (n) => {
|
|
223
160
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
224
161
|
return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'
|
|
225
162
|
: (n == 2 || n == 3) ? 'two'
|
|
226
163
|
: n == 4 ? 'few'
|
|
227
164
|
: n == 6 ? 'many'
|
|
228
165
|
: 'other';
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
sd: a,
|
|
250
|
-
|
|
251
|
-
sh: a,
|
|
252
|
-
|
|
253
|
-
si: a,
|
|
254
|
-
|
|
255
|
-
sk: a,
|
|
256
|
-
|
|
257
|
-
sl: a,
|
|
258
|
-
|
|
259
|
-
sq: (n) => {
|
|
166
|
+
};
|
|
167
|
+
export const pa = a;
|
|
168
|
+
export const pl = a;
|
|
169
|
+
export const prg = a;
|
|
170
|
+
export const ps = a;
|
|
171
|
+
export const pt = a;
|
|
172
|
+
export const ro = b;
|
|
173
|
+
export const ru = a;
|
|
174
|
+
export const sc = (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
|
+
};
|
|
179
|
+
export const sd = a;
|
|
180
|
+
export const sh = a;
|
|
181
|
+
export const si = a;
|
|
182
|
+
export const sk = a;
|
|
183
|
+
export const sl = a;
|
|
184
|
+
export const sq = (n) => {
|
|
260
185
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
261
186
|
return n == 1 ? 'one'
|
|
262
187
|
: n10 == 4 && n100 != 14 ? 'many'
|
|
263
188
|
: 'other';
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
sv: (n) => {
|
|
189
|
+
};
|
|
190
|
+
export const sr = a;
|
|
191
|
+
export const sv = (n) => {
|
|
269
192
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
270
193
|
return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
te: a,
|
|
278
|
-
|
|
279
|
-
th: a,
|
|
280
|
-
|
|
281
|
-
tk: (n) => {
|
|
194
|
+
};
|
|
195
|
+
export const sw = a;
|
|
196
|
+
export const ta = a;
|
|
197
|
+
export const te = a;
|
|
198
|
+
export const th = a;
|
|
199
|
+
export const tk = (n) => {
|
|
282
200
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
283
201
|
return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
tr: a,
|
|
291
|
-
|
|
292
|
-
uk: (n) => {
|
|
202
|
+
};
|
|
203
|
+
export const tl = b;
|
|
204
|
+
export const tpi = a;
|
|
205
|
+
export const tr = a;
|
|
206
|
+
export const uk = (n) => {
|
|
293
207
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
294
208
|
return n10 == 3 && n100 != 13 ? 'few' : 'other';
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
vi: b,
|
|
306
|
-
|
|
307
|
-
yue: a,
|
|
308
|
-
|
|
309
|
-
zh: a,
|
|
310
|
-
|
|
311
|
-
zu: a
|
|
312
|
-
}));
|
|
209
|
+
};
|
|
210
|
+
export const und = a;
|
|
211
|
+
export const ur = a;
|
|
212
|
+
export const uz = a;
|
|
213
|
+
export const vec = (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
214
|
+
export const vi = b;
|
|
215
|
+
export const yue = a;
|
|
216
|
+
export const zh = a;
|
|
217
|
+
export const zu = a;
|