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