make-plural 7.5.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.js +269 -499
- package/examples.js +224 -231
- package/ordinals.js +134 -248
- package/package.json +9 -61
- package/pluralCategories.js +229 -236
- package/plurals.js +300 -530
- package/ranges.js +93 -190
- package/cardinals.mjs +0 -472
- package/examples.mjs +0 -232
- package/ordinals.mjs +0 -217
- package/pluralCategories.mjs +0 -230
- package/plurals.mjs +0 -713
- package/ranges.mjs +0 -106
package/plurals.js
CHANGED
|
@@ -23,21 +23,11 @@ const f = (n, ord) => {
|
|
|
23
23
|
: 'other';
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}(this, {
|
|
32
|
-
af: a,
|
|
33
|
-
|
|
34
|
-
ak: b,
|
|
35
|
-
|
|
36
|
-
am: c,
|
|
37
|
-
|
|
38
|
-
an: a,
|
|
39
|
-
|
|
40
|
-
ar: (n, ord) => {
|
|
26
|
+
export const af = a;
|
|
27
|
+
export const ak = b;
|
|
28
|
+
export const am = c;
|
|
29
|
+
export const an = a;
|
|
30
|
+
export const ar = (n, ord) => {
|
|
41
31
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
42
32
|
if (ord) return 'other';
|
|
43
33
|
return n == 0 ? 'zero'
|
|
@@ -46,9 +36,8 @@ ar: (n, ord) => {
|
|
|
46
36
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
47
37
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
48
38
|
: 'other';
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
ars: (n, ord) => {
|
|
39
|
+
};
|
|
40
|
+
export const ars = (n, ord) => {
|
|
52
41
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
53
42
|
if (ord) return 'other';
|
|
54
43
|
return n == 0 ? 'zero'
|
|
@@ -57,50 +46,39 @@ ars: (n, ord) => {
|
|
|
57
46
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
58
47
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
59
48
|
: 'other';
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
as: (n, ord) => {
|
|
49
|
+
};
|
|
50
|
+
export const as = (n, ord) => {
|
|
63
51
|
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
64
52
|
: (n == 2 || n == 3) ? 'two'
|
|
65
53
|
: n == 4 ? 'few'
|
|
66
54
|
: n == 6 ? 'many'
|
|
67
55
|
: 'other';
|
|
68
56
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
ast: d,
|
|
74
|
-
|
|
75
|
-
az: (n, ord) => {
|
|
57
|
+
};
|
|
58
|
+
export const asa = a;
|
|
59
|
+
export const ast = d;
|
|
60
|
+
export const az = (n, ord) => {
|
|
76
61
|
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
|
|
77
62
|
if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
|
|
78
63
|
: (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
|
|
79
64
|
: i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
|
|
80
65
|
: 'other';
|
|
81
66
|
return n == 1 ? 'one' : 'other';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
be: (n, ord) => {
|
|
67
|
+
};
|
|
68
|
+
export const bal = (n, ord) => n == 1 ? 'one' : 'other';
|
|
69
|
+
export const be = (n, ord) => {
|
|
87
70
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
88
71
|
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
89
72
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
90
73
|
: (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'
|
|
91
74
|
: t0 && n10 == 0 || (n10 >= 5 && n10 <= 9) || (n100 >= 11 && n100 <= 14) ? 'many'
|
|
92
75
|
: 'other';
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
bg: a,
|
|
100
|
-
|
|
101
|
-
bho: b,
|
|
102
|
-
|
|
103
|
-
blo: (n, ord) => {
|
|
76
|
+
};
|
|
77
|
+
export const bem = a;
|
|
78
|
+
export const bez = a;
|
|
79
|
+
export const bg = a;
|
|
80
|
+
export const bho = b;
|
|
81
|
+
export const blo = (n, ord) => {
|
|
104
82
|
const s = String(n).split('.'), i = s[0];
|
|
105
83
|
if (ord) return i == 0 ? 'zero'
|
|
106
84
|
: i == 1 ? 'one'
|
|
@@ -109,22 +87,18 @@ blo: (n, ord) => {
|
|
|
109
87
|
return n == 0 ? 'zero'
|
|
110
88
|
: n == 1 ? 'one'
|
|
111
89
|
: 'other';
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
bn: (n, ord) => {
|
|
90
|
+
};
|
|
91
|
+
export const bm = e;
|
|
92
|
+
export const bn = (n, ord) => {
|
|
117
93
|
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
118
94
|
: (n == 2 || n == 3) ? 'two'
|
|
119
95
|
: n == 4 ? 'few'
|
|
120
96
|
: n == 6 ? 'many'
|
|
121
97
|
: 'other';
|
|
122
98
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
br: (n, ord) => {
|
|
99
|
+
};
|
|
100
|
+
export const bo = e;
|
|
101
|
+
export const br = (n, ord) => {
|
|
128
102
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
|
|
129
103
|
if (ord) return 'other';
|
|
130
104
|
return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'
|
|
@@ -132,19 +106,16 @@ br: (n, ord) => {
|
|
|
132
106
|
: ((n10 == 3 || n10 == 4) || n10 == 9) && (n100 < 10 || n100 > 19) && (n100 < 70 || n100 > 79) && (n100 < 90 || n100 > 99) ? 'few'
|
|
133
107
|
: n != 0 && t0 && n1000000 == 0 ? 'many'
|
|
134
108
|
: 'other';
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
bs: (n, ord) => {
|
|
109
|
+
};
|
|
110
|
+
export const brx = a;
|
|
111
|
+
export const bs = (n, ord) => {
|
|
140
112
|
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);
|
|
141
113
|
if (ord) return 'other';
|
|
142
114
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
143
115
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
144
116
|
: 'other';
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
ca: (n, ord) => {
|
|
117
|
+
};
|
|
118
|
+
export const ca = (n, ord) => {
|
|
148
119
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
149
120
|
if (ord) return (n == 1 || n == 3) ? 'one'
|
|
150
121
|
: n == 2 ? 'two'
|
|
@@ -153,41 +124,32 @@ ca: (n, ord) => {
|
|
|
153
124
|
return n == 1 && v0 ? 'one'
|
|
154
125
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
155
126
|
: 'other';
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
ceb: (n, ord) => {
|
|
127
|
+
};
|
|
128
|
+
export const ce = a;
|
|
129
|
+
export const ceb = (n, ord) => {
|
|
161
130
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
162
131
|
if (ord) return 'other';
|
|
163
132
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
ckb: a,
|
|
171
|
-
|
|
172
|
-
cs: (n, ord) => {
|
|
133
|
+
};
|
|
134
|
+
export const cgg = a;
|
|
135
|
+
export const chr = a;
|
|
136
|
+
export const ckb = a;
|
|
137
|
+
export const cs = (n, ord) => {
|
|
173
138
|
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
174
139
|
if (ord) return 'other';
|
|
175
140
|
return n == 1 && v0 ? 'one'
|
|
176
141
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
177
142
|
: !v0 ? 'many'
|
|
178
143
|
: 'other';
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
cv: (n, ord) => {
|
|
144
|
+
};
|
|
145
|
+
export const csw = b;
|
|
146
|
+
export const cv = (n, ord) => {
|
|
184
147
|
if (ord) return 'other';
|
|
185
148
|
return n == 0 ? 'zero'
|
|
186
149
|
: n == 1 ? 'one'
|
|
187
150
|
: 'other';
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
cy: (n, ord) => {
|
|
151
|
+
};
|
|
152
|
+
export const cy = (n, ord) => {
|
|
191
153
|
if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
|
|
192
154
|
: n == 1 ? 'one'
|
|
193
155
|
: n == 2 ? 'two'
|
|
@@ -200,88 +162,66 @@ cy: (n, ord) => {
|
|
|
200
162
|
: n == 3 ? 'few'
|
|
201
163
|
: n == 6 ? 'many'
|
|
202
164
|
: 'other';
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
da: (n, ord) => {
|
|
165
|
+
};
|
|
166
|
+
export const da = (n, ord) => {
|
|
206
167
|
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
|
|
207
168
|
if (ord) return 'other';
|
|
208
169
|
return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
doi: c,
|
|
214
|
-
|
|
215
|
-
dsb: (n, ord) => {
|
|
170
|
+
};
|
|
171
|
+
export const de = d;
|
|
172
|
+
export const doi = c;
|
|
173
|
+
export const dsb = (n, ord) => {
|
|
216
174
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
217
175
|
if (ord) return 'other';
|
|
218
176
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
219
177
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
220
178
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
221
179
|
: 'other';
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
ee: a,
|
|
229
|
-
|
|
230
|
-
el: a,
|
|
231
|
-
|
|
232
|
-
en: (n, ord) => {
|
|
180
|
+
};
|
|
181
|
+
export const dv = a;
|
|
182
|
+
export const dz = e;
|
|
183
|
+
export const ee = a;
|
|
184
|
+
export const el = a;
|
|
185
|
+
export const en = (n, ord) => {
|
|
233
186
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
234
187
|
if (ord) return n10 == 1 && n100 != 11 ? 'one'
|
|
235
188
|
: n10 == 2 && n100 != 12 ? 'two'
|
|
236
189
|
: n10 == 3 && n100 != 13 ? 'few'
|
|
237
190
|
: 'other';
|
|
238
191
|
return n == 1 && v0 ? 'one' : 'other';
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
es: (n, ord) => {
|
|
192
|
+
};
|
|
193
|
+
export const eo = a;
|
|
194
|
+
export const es = (n, ord) => {
|
|
244
195
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
245
196
|
if (ord) return 'other';
|
|
246
197
|
return n == 1 ? 'one'
|
|
247
198
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
248
199
|
: 'other';
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
fa: c,
|
|
256
|
-
|
|
257
|
-
ff: (n, ord) => {
|
|
200
|
+
};
|
|
201
|
+
export const et = d;
|
|
202
|
+
export const eu = a;
|
|
203
|
+
export const fa = c;
|
|
204
|
+
export const ff = (n, ord) => {
|
|
258
205
|
if (ord) return 'other';
|
|
259
206
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
fil: (n, ord) => {
|
|
207
|
+
};
|
|
208
|
+
export const fi = d;
|
|
209
|
+
export const fil = (n, ord) => {
|
|
265
210
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
266
211
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
267
212
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
fr: (n, ord) => {
|
|
213
|
+
};
|
|
214
|
+
export const fo = a;
|
|
215
|
+
export const fr = (n, ord) => {
|
|
273
216
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
274
217
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
275
218
|
return n >= 0 && n < 2 ? 'one'
|
|
276
219
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
277
220
|
: 'other';
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
fy: d,
|
|
283
|
-
|
|
284
|
-
ga: (n, ord) => {
|
|
221
|
+
};
|
|
222
|
+
export const fur = a;
|
|
223
|
+
export const fy = d;
|
|
224
|
+
export const ga = (n, ord) => {
|
|
285
225
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
286
226
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
287
227
|
return n == 1 ? 'one'
|
|
@@ -289,9 +229,8 @@ ga: (n, ord) => {
|
|
|
289
229
|
: (t0 && n >= 3 && n <= 6) ? 'few'
|
|
290
230
|
: (t0 && n >= 7 && n <= 10) ? 'many'
|
|
291
231
|
: 'other';
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
gd: (n, ord) => {
|
|
232
|
+
};
|
|
233
|
+
export const gd = (n, ord) => {
|
|
295
234
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
296
235
|
if (ord) return (n == 1 || n == 11) ? 'one'
|
|
297
236
|
: (n == 2 || n == 12) ? 'two'
|
|
@@ -301,24 +240,19 @@ gd: (n, ord) => {
|
|
|
301
240
|
: (n == 2 || n == 12) ? 'two'
|
|
302
241
|
: ((t0 && n >= 3 && n <= 10) || (t0 && n >= 13 && n <= 19)) ? 'few'
|
|
303
242
|
: 'other';
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
gsw: a,
|
|
309
|
-
|
|
310
|
-
gu: (n, ord) => {
|
|
243
|
+
};
|
|
244
|
+
export const gl = d;
|
|
245
|
+
export const gsw = a;
|
|
246
|
+
export const gu = (n, ord) => {
|
|
311
247
|
if (ord) return n == 1 ? 'one'
|
|
312
248
|
: (n == 2 || n == 3) ? 'two'
|
|
313
249
|
: n == 4 ? 'few'
|
|
314
250
|
: n == 6 ? 'many'
|
|
315
251
|
: 'other';
|
|
316
252
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
gv: (n, ord) => {
|
|
253
|
+
};
|
|
254
|
+
export const guw = b;
|
|
255
|
+
export const gv = (n, ord) => {
|
|
322
256
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
323
257
|
if (ord) return 'other';
|
|
324
258
|
return v0 && i10 == 1 ? 'one'
|
|
@@ -326,165 +260,122 @@ gv: (n, ord) => {
|
|
|
326
260
|
: v0 && (i100 == 0 || i100 == 20 || i100 == 40 || i100 == 60 || i100 == 80) ? 'few'
|
|
327
261
|
: !v0 ? 'many'
|
|
328
262
|
: 'other';
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
haw: a,
|
|
334
|
-
|
|
335
|
-
he: (n, ord) => {
|
|
263
|
+
};
|
|
264
|
+
export const ha = a;
|
|
265
|
+
export const haw = a;
|
|
266
|
+
export const he = (n, ord) => {
|
|
336
267
|
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
337
268
|
if (ord) return 'other';
|
|
338
269
|
return i == 1 && v0 || i == 0 && !v0 ? 'one'
|
|
339
270
|
: i == 2 && v0 ? 'two'
|
|
340
271
|
: 'other';
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
hi: (n, ord) => {
|
|
272
|
+
};
|
|
273
|
+
export const hi = (n, ord) => {
|
|
344
274
|
if (ord) return n == 1 ? 'one'
|
|
345
275
|
: (n == 2 || n == 3) ? 'two'
|
|
346
276
|
: n == 4 ? 'few'
|
|
347
277
|
: n == 6 ? 'many'
|
|
348
278
|
: 'other';
|
|
349
279
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
hr: (n, ord) => {
|
|
280
|
+
};
|
|
281
|
+
export const hnj = e;
|
|
282
|
+
export const hr = (n, ord) => {
|
|
355
283
|
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);
|
|
356
284
|
if (ord) return 'other';
|
|
357
285
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
358
286
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
359
287
|
: 'other';
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
hsb: (n, ord) => {
|
|
288
|
+
};
|
|
289
|
+
export const hsb = (n, ord) => {
|
|
363
290
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
364
291
|
if (ord) return 'other';
|
|
365
292
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
366
293
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
367
294
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
368
295
|
: 'other';
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
hu: (n, ord) => {
|
|
296
|
+
};
|
|
297
|
+
export const hu = (n, ord) => {
|
|
372
298
|
if (ord) return (n == 1 || n == 5) ? 'one' : 'other';
|
|
373
299
|
return n == 1 ? 'one' : 'other';
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
hy: (n, ord) => {
|
|
300
|
+
};
|
|
301
|
+
export const hy = (n, ord) => {
|
|
377
302
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
378
303
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
ig: e,
|
|
388
|
-
|
|
389
|
-
ii: e,
|
|
390
|
-
|
|
391
|
-
io: d,
|
|
392
|
-
|
|
393
|
-
is: (n, ord) => {
|
|
304
|
+
};
|
|
305
|
+
export const ia = d;
|
|
306
|
+
export const id = e;
|
|
307
|
+
export const ie = d;
|
|
308
|
+
export const ig = e;
|
|
309
|
+
export const ii = e;
|
|
310
|
+
export const io = d;
|
|
311
|
+
export const is = (n, ord) => {
|
|
394
312
|
const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
395
313
|
if (ord) return 'other';
|
|
396
314
|
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
it: (n, ord) => {
|
|
315
|
+
};
|
|
316
|
+
export const it = (n, ord) => {
|
|
400
317
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
401
318
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
402
319
|
return n == 1 && v0 ? 'one'
|
|
403
320
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
404
321
|
: 'other';
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
jmc: a,
|
|
416
|
-
|
|
417
|
-
jv: e,
|
|
418
|
-
|
|
419
|
-
jw: e,
|
|
420
|
-
|
|
421
|
-
ka: (n, ord) => {
|
|
322
|
+
};
|
|
323
|
+
export const iu = f;
|
|
324
|
+
export const ja = e;
|
|
325
|
+
export const jbo = e;
|
|
326
|
+
export const jgo = a;
|
|
327
|
+
export const jmc = a;
|
|
328
|
+
export const jv = e;
|
|
329
|
+
export const jw = e;
|
|
330
|
+
export const ka = (n, ord) => {
|
|
422
331
|
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
|
|
423
332
|
if (ord) return i == 1 ? 'one'
|
|
424
333
|
: i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'
|
|
425
334
|
: 'other';
|
|
426
335
|
return n == 1 ? 'one' : 'other';
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
kab: (n, ord) => {
|
|
336
|
+
};
|
|
337
|
+
export const kab = (n, ord) => {
|
|
430
338
|
if (ord) return 'other';
|
|
431
339
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
kde: e,
|
|
439
|
-
|
|
440
|
-
kea: e,
|
|
441
|
-
|
|
442
|
-
kk: (n, ord) => {
|
|
340
|
+
};
|
|
341
|
+
export const kaj = a;
|
|
342
|
+
export const kcg = a;
|
|
343
|
+
export const kde = e;
|
|
344
|
+
export const kea = e;
|
|
345
|
+
export const kk = (n, ord) => {
|
|
443
346
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
444
347
|
if (ord) return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';
|
|
445
348
|
return n == 1 ? 'one' : 'other';
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
kn: c,
|
|
455
|
-
|
|
456
|
-
ko: e,
|
|
457
|
-
|
|
458
|
-
kok: (n, ord) => {
|
|
349
|
+
};
|
|
350
|
+
export const kkj = a;
|
|
351
|
+
export const kl = a;
|
|
352
|
+
export const km = e;
|
|
353
|
+
export const kn = c;
|
|
354
|
+
export const ko = e;
|
|
355
|
+
export const kok = (n, ord) => {
|
|
459
356
|
if (ord) return n == 1 ? 'one'
|
|
460
357
|
: (n == 2 || n == 3) ? 'two'
|
|
461
358
|
: n == 4 ? 'few'
|
|
462
359
|
: 'other';
|
|
463
360
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
kok_Latn: (n, ord) => {
|
|
361
|
+
};
|
|
362
|
+
export const kok_Latn = (n, ord) => {
|
|
467
363
|
if (ord) return n == 1 ? 'one'
|
|
468
364
|
: (n == 2 || n == 3) ? 'two'
|
|
469
365
|
: n == 4 ? 'few'
|
|
470
366
|
: 'other';
|
|
471
367
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
ksb: a,
|
|
477
|
-
|
|
478
|
-
ksh: (n, ord) => {
|
|
368
|
+
};
|
|
369
|
+
export const ks = a;
|
|
370
|
+
export const ksb = a;
|
|
371
|
+
export const ksh = (n, ord) => {
|
|
479
372
|
if (ord) return 'other';
|
|
480
373
|
return n == 0 ? 'zero'
|
|
481
374
|
: n == 1 ? 'one'
|
|
482
375
|
: 'other';
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
kw: (n, ord) => {
|
|
376
|
+
};
|
|
377
|
+
export const ku = a;
|
|
378
|
+
export const kw = (n, ord) => {
|
|
488
379
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3), n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
|
|
489
380
|
if (ord) 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'
|
|
490
381
|
: n == 5 || n100 == 5 ? 'many'
|
|
@@ -495,103 +386,82 @@ kw: (n, ord) => {
|
|
|
495
386
|
: (n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63 || n100 == 83) ? 'few'
|
|
496
387
|
: n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61 || n100 == 81) ? 'many'
|
|
497
388
|
: 'other';
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
lag: (n, ord) => {
|
|
389
|
+
};
|
|
390
|
+
export const ky = a;
|
|
391
|
+
export const lag = (n, ord) => {
|
|
503
392
|
const s = String(n).split('.'), i = s[0];
|
|
504
393
|
if (ord) return 'other';
|
|
505
394
|
return n == 0 ? 'zero'
|
|
506
395
|
: (i == 0 || i == 1) && n != 0 ? 'one'
|
|
507
396
|
: 'other';
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
lg: a,
|
|
513
|
-
|
|
514
|
-
lij: (n, ord) => {
|
|
397
|
+
};
|
|
398
|
+
export const lb = a;
|
|
399
|
+
export const lg = a;
|
|
400
|
+
export const lij = (n, ord) => {
|
|
515
401
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n;
|
|
516
402
|
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
517
403
|
return n == 1 && v0 ? 'one' : 'other';
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
lld: (n, ord) => {
|
|
404
|
+
};
|
|
405
|
+
export const lkt = e;
|
|
406
|
+
export const lld = (n, ord) => {
|
|
523
407
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
524
408
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
525
409
|
return n == 1 && v0 ? 'one'
|
|
526
410
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
527
411
|
: 'other';
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
lo: (n, ord) => {
|
|
412
|
+
};
|
|
413
|
+
export const ln = b;
|
|
414
|
+
export const lo = (n, ord) => {
|
|
533
415
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
534
416
|
return 'other';
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
lt: (n, ord) => {
|
|
417
|
+
};
|
|
418
|
+
export const lt = (n, ord) => {
|
|
538
419
|
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);
|
|
539
420
|
if (ord) return 'other';
|
|
540
421
|
return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'
|
|
541
422
|
: (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
|
|
542
423
|
: f != 0 ? 'many'
|
|
543
424
|
: 'other';
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
lv: (n, ord) => {
|
|
425
|
+
};
|
|
426
|
+
export const lv = (n, ord) => {
|
|
547
427
|
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
|
|
548
428
|
if (ord) return 'other';
|
|
549
429
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
550
430
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
551
431
|
: 'other';
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
mgo: a,
|
|
559
|
-
|
|
560
|
-
mk: (n, ord) => {
|
|
432
|
+
};
|
|
433
|
+
export const mas = a;
|
|
434
|
+
export const mg = b;
|
|
435
|
+
export const mgo = a;
|
|
436
|
+
export const mk = (n, ord) => {
|
|
561
437
|
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);
|
|
562
438
|
if (ord) return i10 == 1 && i100 != 11 ? 'one'
|
|
563
439
|
: i10 == 2 && i100 != 12 ? 'two'
|
|
564
440
|
: (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? 'many'
|
|
565
441
|
: 'other';
|
|
566
442
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one' : 'other';
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
mn: a,
|
|
572
|
-
|
|
573
|
-
mo: (n, ord) => {
|
|
443
|
+
};
|
|
444
|
+
export const ml = a;
|
|
445
|
+
export const mn = a;
|
|
446
|
+
export const mo = (n, ord) => {
|
|
574
447
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
575
448
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
576
449
|
return n == 1 && v0 ? 'one'
|
|
577
450
|
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
578
451
|
: 'other';
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
mr: (n, ord) => {
|
|
452
|
+
};
|
|
453
|
+
export const mr = (n, ord) => {
|
|
582
454
|
if (ord) return n == 1 ? 'one'
|
|
583
455
|
: (n == 2 || n == 3) ? 'two'
|
|
584
456
|
: n == 4 ? 'few'
|
|
585
457
|
: 'other';
|
|
586
458
|
return n == 1 ? 'one' : 'other';
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
ms: (n, ord) => {
|
|
459
|
+
};
|
|
460
|
+
export const ms = (n, ord) => {
|
|
590
461
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
591
462
|
return 'other';
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
mt: (n, ord) => {
|
|
463
|
+
};
|
|
464
|
+
export const mt = (n, ord) => {
|
|
595
465
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
596
466
|
if (ord) return 'other';
|
|
597
467
|
return n == 1 ? 'one'
|
|
@@ -599,45 +469,28 @@ mt: (n, ord) => {
|
|
|
599
469
|
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
|
|
600
470
|
: (n100 >= 11 && n100 <= 19) ? 'many'
|
|
601
471
|
: 'other';
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
nb: a,
|
|
611
|
-
|
|
612
|
-
nd: a,
|
|
613
|
-
|
|
614
|
-
ne: (n, ord) => {
|
|
472
|
+
};
|
|
473
|
+
export const my = e;
|
|
474
|
+
export const nah = a;
|
|
475
|
+
export const naq = f;
|
|
476
|
+
export const nb = a;
|
|
477
|
+
export const nd = a;
|
|
478
|
+
export const ne = (n, ord) => {
|
|
615
479
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
616
480
|
if (ord) return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';
|
|
617
481
|
return n == 1 ? 'one' : 'other';
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
nr: a,
|
|
631
|
-
|
|
632
|
-
nso: b,
|
|
633
|
-
|
|
634
|
-
ny: a,
|
|
635
|
-
|
|
636
|
-
nyn: a,
|
|
637
|
-
|
|
638
|
-
om: a,
|
|
639
|
-
|
|
640
|
-
or: (n, ord) => {
|
|
482
|
+
};
|
|
483
|
+
export const nl = d;
|
|
484
|
+
export const nn = a;
|
|
485
|
+
export const nnh = a;
|
|
486
|
+
export const no = a;
|
|
487
|
+
export const nqo = e;
|
|
488
|
+
export const nr = a;
|
|
489
|
+
export const nso = b;
|
|
490
|
+
export const ny = a;
|
|
491
|
+
export const nyn = a;
|
|
492
|
+
export const om = a;
|
|
493
|
+
export const or = (n, ord) => {
|
|
641
494
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
642
495
|
if (ord) return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'
|
|
643
496
|
: (n == 2 || n == 3) ? 'two'
|
|
@@ -645,109 +498,82 @@ or: (n, ord) => {
|
|
|
645
498
|
: n == 6 ? 'many'
|
|
646
499
|
: 'other';
|
|
647
500
|
return n == 1 ? 'one' : 'other';
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
pap: a,
|
|
657
|
-
|
|
658
|
-
pcm: c,
|
|
659
|
-
|
|
660
|
-
pl: (n, ord) => {
|
|
501
|
+
};
|
|
502
|
+
export const os = a;
|
|
503
|
+
export const osa = e;
|
|
504
|
+
export const pa = b;
|
|
505
|
+
export const pap = a;
|
|
506
|
+
export const pcm = c;
|
|
507
|
+
export const pl = (n, ord) => {
|
|
661
508
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
662
509
|
if (ord) return 'other';
|
|
663
510
|
return n == 1 && v0 ? 'one'
|
|
664
511
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
665
512
|
: v0 && i != 1 && (i10 == 0 || i10 == 1) || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 12 && i100 <= 14) ? 'many'
|
|
666
513
|
: 'other';
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
prg: (n, ord) => {
|
|
514
|
+
};
|
|
515
|
+
export const prg = (n, ord) => {
|
|
670
516
|
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
|
|
671
517
|
if (ord) return 'other';
|
|
672
518
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
673
519
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
674
520
|
: 'other';
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
pt: (n, ord) => {
|
|
521
|
+
};
|
|
522
|
+
export const ps = a;
|
|
523
|
+
export const pt = (n, ord) => {
|
|
680
524
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
681
525
|
if (ord) return 'other';
|
|
682
526
|
return (i == 0 || i == 1) ? 'one'
|
|
683
527
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
684
528
|
: 'other';
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
pt_PT: (n, ord) => {
|
|
529
|
+
};
|
|
530
|
+
export const pt_PT = (n, ord) => {
|
|
688
531
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
689
532
|
if (ord) return 'other';
|
|
690
533
|
return n == 1 && v0 ? 'one'
|
|
691
534
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
692
535
|
: 'other';
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
ro: (n, ord) => {
|
|
536
|
+
};
|
|
537
|
+
export const rm = a;
|
|
538
|
+
export const ro = (n, ord) => {
|
|
698
539
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
699
540
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
700
541
|
return n == 1 && v0 ? 'one'
|
|
701
542
|
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
702
543
|
: 'other';
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
ru: (n, ord) => {
|
|
544
|
+
};
|
|
545
|
+
export const rof = a;
|
|
546
|
+
export const ru = (n, ord) => {
|
|
708
547
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
709
548
|
if (ord) return 'other';
|
|
710
549
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
711
550
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
712
551
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
713
552
|
: 'other';
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
saq: a,
|
|
721
|
-
|
|
722
|
-
sat: f,
|
|
723
|
-
|
|
724
|
-
sc: (n, ord) => {
|
|
553
|
+
};
|
|
554
|
+
export const rwk = a;
|
|
555
|
+
export const sah = e;
|
|
556
|
+
export const saq = a;
|
|
557
|
+
export const sat = f;
|
|
558
|
+
export const sc = (n, ord) => {
|
|
725
559
|
const s = String(n).split('.'), v0 = !s[1];
|
|
726
560
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
727
561
|
return n == 1 && v0 ? 'one' : 'other';
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
scn: (n, ord) => {
|
|
562
|
+
};
|
|
563
|
+
export const scn = (n, ord) => {
|
|
731
564
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, i1000000 = i.slice(-6);
|
|
732
565
|
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
733
566
|
return n == 1 && v0 ? 'one'
|
|
734
567
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
735
568
|
: 'other';
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
seh: a,
|
|
745
|
-
|
|
746
|
-
ses: e,
|
|
747
|
-
|
|
748
|
-
sg: e,
|
|
749
|
-
|
|
750
|
-
sgs: (n, ord) => {
|
|
569
|
+
};
|
|
570
|
+
export const sd = a;
|
|
571
|
+
export const sdh = a;
|
|
572
|
+
export const se = f;
|
|
573
|
+
export const seh = a;
|
|
574
|
+
export const ses = e;
|
|
575
|
+
export const sg = e;
|
|
576
|
+
export const sgs = (n, ord) => {
|
|
751
577
|
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
578
|
if (ord) return 'other';
|
|
753
579
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
@@ -755,189 +581,133 @@ sgs: (n, ord) => {
|
|
|
755
581
|
: n != 2 && (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
|
|
756
582
|
: f != 0 ? 'many'
|
|
757
583
|
: 'other';
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
sh: (n, ord) => {
|
|
584
|
+
};
|
|
585
|
+
export const sh = (n, ord) => {
|
|
761
586
|
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);
|
|
762
587
|
if (ord) return 'other';
|
|
763
588
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
764
589
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
765
590
|
: 'other';
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
shi: (n, ord) => {
|
|
591
|
+
};
|
|
592
|
+
export const shi = (n, ord) => {
|
|
769
593
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
770
594
|
if (ord) return 'other';
|
|
771
595
|
return n >= 0 && n <= 1 ? 'one'
|
|
772
596
|
: (t0 && n >= 2 && n <= 10) ? 'few'
|
|
773
597
|
: 'other';
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
si: (n, ord) => {
|
|
598
|
+
};
|
|
599
|
+
export const si = (n, ord) => {
|
|
777
600
|
const s = String(n).split('.'), i = s[0], f = s[1] || '';
|
|
778
601
|
if (ord) return 'other';
|
|
779
602
|
return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
sk: (n, ord) => {
|
|
603
|
+
};
|
|
604
|
+
export const sk = (n, ord) => {
|
|
783
605
|
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
784
606
|
if (ord) return 'other';
|
|
785
607
|
return n == 1 && v0 ? 'one'
|
|
786
608
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
787
609
|
: !v0 ? 'many'
|
|
788
610
|
: 'other';
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
sl: (n, ord) => {
|
|
611
|
+
};
|
|
612
|
+
export const sl = (n, ord) => {
|
|
792
613
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
|
|
793
614
|
if (ord) return 'other';
|
|
794
615
|
return v0 && i100 == 1 ? 'one'
|
|
795
616
|
: v0 && i100 == 2 ? 'two'
|
|
796
617
|
: v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
|
|
797
618
|
: 'other';
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
sms: f,
|
|
809
|
-
|
|
810
|
-
sn: a,
|
|
811
|
-
|
|
812
|
-
so: a,
|
|
813
|
-
|
|
814
|
-
sq: (n, ord) => {
|
|
619
|
+
};
|
|
620
|
+
export const sma = f;
|
|
621
|
+
export const smi = f;
|
|
622
|
+
export const smj = f;
|
|
623
|
+
export const smn = f;
|
|
624
|
+
export const sms = f;
|
|
625
|
+
export const sn = a;
|
|
626
|
+
export const so = a;
|
|
627
|
+
export const sq = (n, ord) => {
|
|
815
628
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
816
629
|
if (ord) return n == 1 ? 'one'
|
|
817
630
|
: n10 == 4 && n100 != 14 ? 'many'
|
|
818
631
|
: 'other';
|
|
819
632
|
return n == 1 ? 'one' : 'other';
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
sr: (n, ord) => {
|
|
633
|
+
};
|
|
634
|
+
export const sr = (n, ord) => {
|
|
823
635
|
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);
|
|
824
636
|
if (ord) return 'other';
|
|
825
637
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
826
638
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
827
639
|
: 'other';
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
st: a,
|
|
835
|
-
|
|
836
|
-
su: e,
|
|
837
|
-
|
|
838
|
-
sv: (n, ord) => {
|
|
640
|
+
};
|
|
641
|
+
export const ss = a;
|
|
642
|
+
export const ssy = a;
|
|
643
|
+
export const st = a;
|
|
644
|
+
export const su = e;
|
|
645
|
+
export const sv = (n, ord) => {
|
|
839
646
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
840
647
|
if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
|
|
841
648
|
return n == 1 && v0 ? 'one' : 'other';
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
teo: a,
|
|
853
|
-
|
|
854
|
-
th: e,
|
|
855
|
-
|
|
856
|
-
ti: b,
|
|
857
|
-
|
|
858
|
-
tig: a,
|
|
859
|
-
|
|
860
|
-
tk: (n, ord) => {
|
|
649
|
+
};
|
|
650
|
+
export const sw = d;
|
|
651
|
+
export const syr = a;
|
|
652
|
+
export const ta = a;
|
|
653
|
+
export const te = a;
|
|
654
|
+
export const teo = a;
|
|
655
|
+
export const th = e;
|
|
656
|
+
export const ti = b;
|
|
657
|
+
export const tig = a;
|
|
658
|
+
export const tk = (n, ord) => {
|
|
861
659
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
862
660
|
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
|
|
863
661
|
return n == 1 ? 'one' : 'other';
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
tl: (n, ord) => {
|
|
662
|
+
};
|
|
663
|
+
export const tl = (n, ord) => {
|
|
867
664
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
868
665
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
869
666
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
tr: a,
|
|
879
|
-
|
|
880
|
-
ts: a,
|
|
881
|
-
|
|
882
|
-
tzm: (n, ord) => {
|
|
667
|
+
};
|
|
668
|
+
export const tn = a;
|
|
669
|
+
export const to = e;
|
|
670
|
+
export const tpi = e;
|
|
671
|
+
export const tr = a;
|
|
672
|
+
export const ts = a;
|
|
673
|
+
export const tzm = (n, ord) => {
|
|
883
674
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
884
675
|
if (ord) return 'other';
|
|
885
676
|
return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
uk: (n, ord) => {
|
|
677
|
+
};
|
|
678
|
+
export const ug = a;
|
|
679
|
+
export const uk = (n, ord) => {
|
|
891
680
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), i10 = i.slice(-1), i100 = i.slice(-2);
|
|
892
681
|
if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';
|
|
893
682
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
894
683
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
895
684
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
896
685
|
: 'other';
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
uz: a,
|
|
904
|
-
|
|
905
|
-
ve: a,
|
|
906
|
-
|
|
907
|
-
vec: (n, ord) => {
|
|
686
|
+
};
|
|
687
|
+
export const und = e;
|
|
688
|
+
export const ur = d;
|
|
689
|
+
export const uz = a;
|
|
690
|
+
export const ve = a;
|
|
691
|
+
export const vec = (n, ord) => {
|
|
908
692
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
909
693
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
910
694
|
return n == 1 && v0 ? 'one'
|
|
911
695
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
912
696
|
: 'other';
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
vi: (n, ord) => {
|
|
697
|
+
};
|
|
698
|
+
export const vi = (n, ord) => {
|
|
916
699
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
917
700
|
return 'other';
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
xog: a,
|
|
933
|
-
|
|
934
|
-
yi: d,
|
|
935
|
-
|
|
936
|
-
yo: e,
|
|
937
|
-
|
|
938
|
-
yue: e,
|
|
939
|
-
|
|
940
|
-
zh: e,
|
|
941
|
-
|
|
942
|
-
zu: c
|
|
943
|
-
}));
|
|
701
|
+
};
|
|
702
|
+
export const vo = a;
|
|
703
|
+
export const vun = a;
|
|
704
|
+
export const wa = b;
|
|
705
|
+
export const wae = a;
|
|
706
|
+
export const wo = e;
|
|
707
|
+
export const xh = a;
|
|
708
|
+
export const xog = a;
|
|
709
|
+
export const yi = d;
|
|
710
|
+
export const yo = e;
|
|
711
|
+
export const yue = e;
|
|
712
|
+
export const zh = e;
|
|
713
|
+
export const zu = c;
|