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/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,32 +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
|
-
|
|
144
|
+
};
|
|
145
|
+
export const csw = b;
|
|
146
|
+
export const cv = (n, ord) => {
|
|
147
|
+
if (ord) return 'other';
|
|
148
|
+
return n == 0 ? 'zero'
|
|
149
|
+
: n == 1 ? 'one'
|
|
150
|
+
: 'other';
|
|
151
|
+
};
|
|
152
|
+
export const cy = (n, ord) => {
|
|
182
153
|
if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
|
|
183
154
|
: n == 1 ? 'one'
|
|
184
155
|
: n == 2 ? 'two'
|
|
@@ -191,88 +162,66 @@ cy: (n, ord) => {
|
|
|
191
162
|
: n == 3 ? 'few'
|
|
192
163
|
: n == 6 ? 'many'
|
|
193
164
|
: 'other';
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
da: (n, ord) => {
|
|
165
|
+
};
|
|
166
|
+
export const da = (n, ord) => {
|
|
197
167
|
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
|
|
198
168
|
if (ord) return 'other';
|
|
199
169
|
return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
doi: c,
|
|
205
|
-
|
|
206
|
-
dsb: (n, ord) => {
|
|
170
|
+
};
|
|
171
|
+
export const de = d;
|
|
172
|
+
export const doi = c;
|
|
173
|
+
export const dsb = (n, ord) => {
|
|
207
174
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
208
175
|
if (ord) return 'other';
|
|
209
176
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
210
177
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
211
178
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
212
179
|
: 'other';
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
ee: a,
|
|
220
|
-
|
|
221
|
-
el: a,
|
|
222
|
-
|
|
223
|
-
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) => {
|
|
224
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);
|
|
225
187
|
if (ord) return n10 == 1 && n100 != 11 ? 'one'
|
|
226
188
|
: n10 == 2 && n100 != 12 ? 'two'
|
|
227
189
|
: n10 == 3 && n100 != 13 ? 'few'
|
|
228
190
|
: 'other';
|
|
229
191
|
return n == 1 && v0 ? 'one' : 'other';
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
es: (n, ord) => {
|
|
192
|
+
};
|
|
193
|
+
export const eo = a;
|
|
194
|
+
export const es = (n, ord) => {
|
|
235
195
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
236
196
|
if (ord) return 'other';
|
|
237
197
|
return n == 1 ? 'one'
|
|
238
198
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
239
199
|
: 'other';
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
fa: c,
|
|
247
|
-
|
|
248
|
-
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) => {
|
|
249
205
|
if (ord) return 'other';
|
|
250
206
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
fil: (n, ord) => {
|
|
207
|
+
};
|
|
208
|
+
export const fi = d;
|
|
209
|
+
export const fil = (n, ord) => {
|
|
256
210
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
257
211
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
258
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';
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
fr: (n, ord) => {
|
|
213
|
+
};
|
|
214
|
+
export const fo = a;
|
|
215
|
+
export const fr = (n, ord) => {
|
|
264
216
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
265
217
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
266
218
|
return n >= 0 && n < 2 ? 'one'
|
|
267
219
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
268
220
|
: 'other';
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
fy: d,
|
|
274
|
-
|
|
275
|
-
ga: (n, ord) => {
|
|
221
|
+
};
|
|
222
|
+
export const fur = a;
|
|
223
|
+
export const fy = d;
|
|
224
|
+
export const ga = (n, ord) => {
|
|
276
225
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
277
226
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
278
227
|
return n == 1 ? 'one'
|
|
@@ -280,9 +229,8 @@ ga: (n, ord) => {
|
|
|
280
229
|
: (t0 && n >= 3 && n <= 6) ? 'few'
|
|
281
230
|
: (t0 && n >= 7 && n <= 10) ? 'many'
|
|
282
231
|
: 'other';
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
gd: (n, ord) => {
|
|
232
|
+
};
|
|
233
|
+
export const gd = (n, ord) => {
|
|
286
234
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
287
235
|
if (ord) return (n == 1 || n == 11) ? 'one'
|
|
288
236
|
: (n == 2 || n == 12) ? 'two'
|
|
@@ -292,24 +240,19 @@ gd: (n, ord) => {
|
|
|
292
240
|
: (n == 2 || n == 12) ? 'two'
|
|
293
241
|
: ((t0 && n >= 3 && n <= 10) || (t0 && n >= 13 && n <= 19)) ? 'few'
|
|
294
242
|
: 'other';
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
gsw: a,
|
|
300
|
-
|
|
301
|
-
gu: (n, ord) => {
|
|
243
|
+
};
|
|
244
|
+
export const gl = d;
|
|
245
|
+
export const gsw = a;
|
|
246
|
+
export const gu = (n, ord) => {
|
|
302
247
|
if (ord) return n == 1 ? 'one'
|
|
303
248
|
: (n == 2 || n == 3) ? 'two'
|
|
304
249
|
: n == 4 ? 'few'
|
|
305
250
|
: n == 6 ? 'many'
|
|
306
251
|
: 'other';
|
|
307
252
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
gv: (n, ord) => {
|
|
253
|
+
};
|
|
254
|
+
export const guw = b;
|
|
255
|
+
export const gv = (n, ord) => {
|
|
313
256
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
314
257
|
if (ord) return 'other';
|
|
315
258
|
return v0 && i10 == 1 ? 'one'
|
|
@@ -317,147 +260,122 @@ gv: (n, ord) => {
|
|
|
317
260
|
: v0 && (i100 == 0 || i100 == 20 || i100 == 40 || i100 == 60 || i100 == 80) ? 'few'
|
|
318
261
|
: !v0 ? 'many'
|
|
319
262
|
: 'other';
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
haw: a,
|
|
325
|
-
|
|
326
|
-
he: (n, ord) => {
|
|
263
|
+
};
|
|
264
|
+
export const ha = a;
|
|
265
|
+
export const haw = a;
|
|
266
|
+
export const he = (n, ord) => {
|
|
327
267
|
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
328
268
|
if (ord) return 'other';
|
|
329
269
|
return i == 1 && v0 || i == 0 && !v0 ? 'one'
|
|
330
270
|
: i == 2 && v0 ? 'two'
|
|
331
271
|
: 'other';
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
hi: (n, ord) => {
|
|
272
|
+
};
|
|
273
|
+
export const hi = (n, ord) => {
|
|
335
274
|
if (ord) return n == 1 ? 'one'
|
|
336
275
|
: (n == 2 || n == 3) ? 'two'
|
|
337
276
|
: n == 4 ? 'few'
|
|
338
277
|
: n == 6 ? 'many'
|
|
339
278
|
: 'other';
|
|
340
279
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
hr: (n, ord) => {
|
|
280
|
+
};
|
|
281
|
+
export const hnj = e;
|
|
282
|
+
export const hr = (n, ord) => {
|
|
346
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);
|
|
347
284
|
if (ord) return 'other';
|
|
348
285
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
349
286
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
350
287
|
: 'other';
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
hsb: (n, ord) => {
|
|
288
|
+
};
|
|
289
|
+
export const hsb = (n, ord) => {
|
|
354
290
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
355
291
|
if (ord) return 'other';
|
|
356
292
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
357
293
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
358
294
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
359
295
|
: 'other';
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
hu: (n, ord) => {
|
|
296
|
+
};
|
|
297
|
+
export const hu = (n, ord) => {
|
|
363
298
|
if (ord) return (n == 1 || n == 5) ? 'one' : 'other';
|
|
364
299
|
return n == 1 ? 'one' : 'other';
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
hy: (n, ord) => {
|
|
300
|
+
};
|
|
301
|
+
export const hy = (n, ord) => {
|
|
368
302
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
369
303
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
ii: e,
|
|
379
|
-
|
|
380
|
-
io: d,
|
|
381
|
-
|
|
382
|
-
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) => {
|
|
383
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);
|
|
384
313
|
if (ord) return 'other';
|
|
385
314
|
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
it: (n, ord) => {
|
|
315
|
+
};
|
|
316
|
+
export const it = (n, ord) => {
|
|
389
317
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
390
318
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
391
319
|
return n == 1 && v0 ? 'one'
|
|
392
320
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
393
321
|
: 'other';
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
jmc: a,
|
|
405
|
-
|
|
406
|
-
jv: e,
|
|
407
|
-
|
|
408
|
-
jw: e,
|
|
409
|
-
|
|
410
|
-
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) => {
|
|
411
331
|
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
|
|
412
332
|
if (ord) return i == 1 ? 'one'
|
|
413
333
|
: i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'
|
|
414
334
|
: 'other';
|
|
415
335
|
return n == 1 ? 'one' : 'other';
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
kab: (n, ord) => {
|
|
336
|
+
};
|
|
337
|
+
export const kab = (n, ord) => {
|
|
419
338
|
if (ord) return 'other';
|
|
420
339
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
kde: e,
|
|
428
|
-
|
|
429
|
-
kea: e,
|
|
430
|
-
|
|
431
|
-
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) => {
|
|
432
346
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
433
347
|
if (ord) return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';
|
|
434
348
|
return n == 1 ? 'one' : 'other';
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
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) => {
|
|
356
|
+
if (ord) return n == 1 ? 'one'
|
|
357
|
+
: (n == 2 || n == 3) ? 'two'
|
|
358
|
+
: n == 4 ? 'few'
|
|
359
|
+
: 'other';
|
|
360
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
361
|
+
};
|
|
362
|
+
export const kok_Latn = (n, ord) => {
|
|
363
|
+
if (ord) return n == 1 ? 'one'
|
|
364
|
+
: (n == 2 || n == 3) ? 'two'
|
|
365
|
+
: n == 4 ? 'few'
|
|
366
|
+
: 'other';
|
|
367
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
368
|
+
};
|
|
369
|
+
export const ks = a;
|
|
370
|
+
export const ksb = a;
|
|
371
|
+
export const ksh = (n, ord) => {
|
|
452
372
|
if (ord) return 'other';
|
|
453
373
|
return n == 0 ? 'zero'
|
|
454
374
|
: n == 1 ? 'one'
|
|
455
375
|
: 'other';
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
kw: (n, ord) => {
|
|
376
|
+
};
|
|
377
|
+
export const ku = a;
|
|
378
|
+
export const kw = (n, ord) => {
|
|
461
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);
|
|
462
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'
|
|
463
381
|
: n == 5 || n100 == 5 ? 'many'
|
|
@@ -468,95 +386,82 @@ kw: (n, ord) => {
|
|
|
468
386
|
: (n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63 || n100 == 83) ? 'few'
|
|
469
387
|
: n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61 || n100 == 81) ? 'many'
|
|
470
388
|
: 'other';
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
lag: (n, ord) => {
|
|
389
|
+
};
|
|
390
|
+
export const ky = a;
|
|
391
|
+
export const lag = (n, ord) => {
|
|
476
392
|
const s = String(n).split('.'), i = s[0];
|
|
477
393
|
if (ord) return 'other';
|
|
478
394
|
return n == 0 ? 'zero'
|
|
479
395
|
: (i == 0 || i == 1) && n != 0 ? 'one'
|
|
480
396
|
: 'other';
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
lg: a,
|
|
486
|
-
|
|
487
|
-
lij: (n, ord) => {
|
|
397
|
+
};
|
|
398
|
+
export const lb = a;
|
|
399
|
+
export const lg = a;
|
|
400
|
+
export const lij = (n, ord) => {
|
|
488
401
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n;
|
|
489
402
|
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
490
403
|
return n == 1 && v0 ? 'one' : 'other';
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
404
|
+
};
|
|
405
|
+
export const lkt = e;
|
|
406
|
+
export const lld = (n, ord) => {
|
|
407
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
408
|
+
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
409
|
+
return n == 1 && v0 ? 'one'
|
|
410
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
411
|
+
: 'other';
|
|
412
|
+
};
|
|
413
|
+
export const ln = b;
|
|
414
|
+
export const lo = (n, ord) => {
|
|
498
415
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
499
416
|
return 'other';
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
lt: (n, ord) => {
|
|
417
|
+
};
|
|
418
|
+
export const lt = (n, ord) => {
|
|
503
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);
|
|
504
420
|
if (ord) return 'other';
|
|
505
421
|
return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'
|
|
506
422
|
: (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
|
|
507
423
|
: f != 0 ? 'many'
|
|
508
424
|
: 'other';
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
lv: (n, ord) => {
|
|
425
|
+
};
|
|
426
|
+
export const lv = (n, ord) => {
|
|
512
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);
|
|
513
428
|
if (ord) return 'other';
|
|
514
429
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
515
430
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
516
431
|
: 'other';
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
mgo: a,
|
|
524
|
-
|
|
525
|
-
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) => {
|
|
526
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);
|
|
527
438
|
if (ord) return i10 == 1 && i100 != 11 ? 'one'
|
|
528
439
|
: i10 == 2 && i100 != 12 ? 'two'
|
|
529
440
|
: (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? 'many'
|
|
530
441
|
: 'other';
|
|
531
442
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one' : 'other';
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
mn: a,
|
|
537
|
-
|
|
538
|
-
mo: (n, ord) => {
|
|
443
|
+
};
|
|
444
|
+
export const ml = a;
|
|
445
|
+
export const mn = a;
|
|
446
|
+
export const mo = (n, ord) => {
|
|
539
447
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
540
448
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
541
449
|
return n == 1 && v0 ? 'one'
|
|
542
450
|
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
543
451
|
: 'other';
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
mr: (n, ord) => {
|
|
452
|
+
};
|
|
453
|
+
export const mr = (n, ord) => {
|
|
547
454
|
if (ord) return n == 1 ? 'one'
|
|
548
455
|
: (n == 2 || n == 3) ? 'two'
|
|
549
456
|
: n == 4 ? 'few'
|
|
550
457
|
: 'other';
|
|
551
458
|
return n == 1 ? 'one' : 'other';
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
ms: (n, ord) => {
|
|
459
|
+
};
|
|
460
|
+
export const ms = (n, ord) => {
|
|
555
461
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
556
462
|
return 'other';
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
mt: (n, ord) => {
|
|
463
|
+
};
|
|
464
|
+
export const mt = (n, ord) => {
|
|
560
465
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
561
466
|
if (ord) return 'other';
|
|
562
467
|
return n == 1 ? 'one'
|
|
@@ -564,45 +469,28 @@ mt: (n, ord) => {
|
|
|
564
469
|
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
|
|
565
470
|
: (n100 >= 11 && n100 <= 19) ? 'many'
|
|
566
471
|
: 'other';
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
nb: a,
|
|
576
|
-
|
|
577
|
-
nd: a,
|
|
578
|
-
|
|
579
|
-
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) => {
|
|
580
479
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
581
480
|
if (ord) return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';
|
|
582
481
|
return n == 1 ? 'one' : 'other';
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
nr: a,
|
|
596
|
-
|
|
597
|
-
nso: b,
|
|
598
|
-
|
|
599
|
-
ny: a,
|
|
600
|
-
|
|
601
|
-
nyn: a,
|
|
602
|
-
|
|
603
|
-
om: a,
|
|
604
|
-
|
|
605
|
-
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) => {
|
|
606
494
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
607
495
|
if (ord) return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'
|
|
608
496
|
: (n == 2 || n == 3) ? 'two'
|
|
@@ -610,287 +498,216 @@ or: (n, ord) => {
|
|
|
610
498
|
: n == 6 ? 'many'
|
|
611
499
|
: 'other';
|
|
612
500
|
return n == 1 ? 'one' : 'other';
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
pap: a,
|
|
622
|
-
|
|
623
|
-
pcm: c,
|
|
624
|
-
|
|
625
|
-
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) => {
|
|
626
508
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
627
509
|
if (ord) return 'other';
|
|
628
510
|
return n == 1 && v0 ? 'one'
|
|
629
511
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
630
512
|
: v0 && i != 1 && (i10 == 0 || i10 == 1) || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 12 && i100 <= 14) ? 'many'
|
|
631
513
|
: 'other';
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
prg: (n, ord) => {
|
|
514
|
+
};
|
|
515
|
+
export const prg = (n, ord) => {
|
|
635
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);
|
|
636
517
|
if (ord) return 'other';
|
|
637
518
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
638
519
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
639
520
|
: 'other';
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
pt: (n, ord) => {
|
|
521
|
+
};
|
|
522
|
+
export const ps = a;
|
|
523
|
+
export const pt = (n, ord) => {
|
|
645
524
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
646
525
|
if (ord) return 'other';
|
|
647
526
|
return (i == 0 || i == 1) ? 'one'
|
|
648
527
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
649
528
|
: 'other';
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
pt_PT: (n, ord) => {
|
|
529
|
+
};
|
|
530
|
+
export const pt_PT = (n, ord) => {
|
|
653
531
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
654
532
|
if (ord) return 'other';
|
|
655
533
|
return n == 1 && v0 ? 'one'
|
|
656
534
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
657
535
|
: 'other';
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
ro: (n, ord) => {
|
|
536
|
+
};
|
|
537
|
+
export const rm = a;
|
|
538
|
+
export const ro = (n, ord) => {
|
|
663
539
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
664
540
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
665
541
|
return n == 1 && v0 ? 'one'
|
|
666
542
|
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
|
|
667
543
|
: 'other';
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
ru: (n, ord) => {
|
|
544
|
+
};
|
|
545
|
+
export const rof = a;
|
|
546
|
+
export const ru = (n, ord) => {
|
|
673
547
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
674
548
|
if (ord) return 'other';
|
|
675
549
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
676
550
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
677
551
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
678
552
|
: 'other';
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
saq: a,
|
|
686
|
-
|
|
687
|
-
sat: f,
|
|
688
|
-
|
|
689
|
-
sc: (n, ord) => {
|
|
690
|
-
const s = String(n).split('.'), v0 = !s[1];
|
|
691
|
-
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
692
|
-
return n == 1 && v0 ? 'one' : 'other';
|
|
693
|
-
},
|
|
694
|
-
|
|
695
|
-
scn: (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) => {
|
|
696
559
|
const s = String(n).split('.'), v0 = !s[1];
|
|
697
560
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
698
561
|
return n == 1 && v0 ? 'one' : 'other';
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
562
|
+
};
|
|
563
|
+
export const scn = (n, ord) => {
|
|
564
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, i1000000 = i.slice(-6);
|
|
565
|
+
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
566
|
+
return n == 1 && v0 ? 'one'
|
|
567
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
568
|
+
: 'other';
|
|
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) => {
|
|
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);
|
|
578
|
+
if (ord) return 'other';
|
|
579
|
+
return n10 == 1 && n100 != 11 ? 'one'
|
|
580
|
+
: n == 2 ? 'two'
|
|
581
|
+
: n != 2 && (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
|
|
582
|
+
: f != 0 ? 'many'
|
|
583
|
+
: 'other';
|
|
584
|
+
};
|
|
585
|
+
export const sh = (n, ord) => {
|
|
714
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);
|
|
715
587
|
if (ord) return 'other';
|
|
716
588
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
717
589
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
718
590
|
: 'other';
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
shi: (n, ord) => {
|
|
591
|
+
};
|
|
592
|
+
export const shi = (n, ord) => {
|
|
722
593
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
723
594
|
if (ord) return 'other';
|
|
724
595
|
return n >= 0 && n <= 1 ? 'one'
|
|
725
596
|
: (t0 && n >= 2 && n <= 10) ? 'few'
|
|
726
597
|
: 'other';
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
si: (n, ord) => {
|
|
598
|
+
};
|
|
599
|
+
export const si = (n, ord) => {
|
|
730
600
|
const s = String(n).split('.'), i = s[0], f = s[1] || '';
|
|
731
601
|
if (ord) return 'other';
|
|
732
602
|
return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
sk: (n, ord) => {
|
|
603
|
+
};
|
|
604
|
+
export const sk = (n, ord) => {
|
|
736
605
|
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
737
606
|
if (ord) return 'other';
|
|
738
607
|
return n == 1 && v0 ? 'one'
|
|
739
608
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
740
609
|
: !v0 ? 'many'
|
|
741
610
|
: 'other';
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
sl: (n, ord) => {
|
|
611
|
+
};
|
|
612
|
+
export const sl = (n, ord) => {
|
|
745
613
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
|
|
746
614
|
if (ord) return 'other';
|
|
747
615
|
return v0 && i100 == 1 ? 'one'
|
|
748
616
|
: v0 && i100 == 2 ? 'two'
|
|
749
617
|
: v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
|
|
750
618
|
: 'other';
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
sms: f,
|
|
762
|
-
|
|
763
|
-
sn: a,
|
|
764
|
-
|
|
765
|
-
so: a,
|
|
766
|
-
|
|
767
|
-
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) => {
|
|
768
628
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
769
629
|
if (ord) return n == 1 ? 'one'
|
|
770
630
|
: n10 == 4 && n100 != 14 ? 'many'
|
|
771
631
|
: 'other';
|
|
772
632
|
return n == 1 ? 'one' : 'other';
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
sr: (n, ord) => {
|
|
633
|
+
};
|
|
634
|
+
export const sr = (n, ord) => {
|
|
776
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);
|
|
777
636
|
if (ord) return 'other';
|
|
778
637
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
779
638
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
780
639
|
: 'other';
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
st: a,
|
|
788
|
-
|
|
789
|
-
su: e,
|
|
790
|
-
|
|
791
|
-
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) => {
|
|
792
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);
|
|
793
647
|
if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
|
|
794
648
|
return n == 1 && v0 ? 'one' : 'other';
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
teo: a,
|
|
806
|
-
|
|
807
|
-
th: e,
|
|
808
|
-
|
|
809
|
-
ti: b,
|
|
810
|
-
|
|
811
|
-
tig: a,
|
|
812
|
-
|
|
813
|
-
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) => {
|
|
814
659
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
815
660
|
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
|
|
816
661
|
return n == 1 ? 'one' : 'other';
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
tl: (n, ord) => {
|
|
662
|
+
};
|
|
663
|
+
export const tl = (n, ord) => {
|
|
820
664
|
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
821
665
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
822
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';
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
tr: a,
|
|
832
|
-
|
|
833
|
-
ts: a,
|
|
834
|
-
|
|
835
|
-
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) => {
|
|
836
674
|
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
837
675
|
if (ord) return 'other';
|
|
838
676
|
return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
uk: (n, ord) => {
|
|
677
|
+
};
|
|
678
|
+
export const ug = a;
|
|
679
|
+
export const uk = (n, ord) => {
|
|
844
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);
|
|
845
681
|
if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';
|
|
846
682
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
847
683
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
848
684
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
849
685
|
: 'other';
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
uz: a,
|
|
857
|
-
|
|
858
|
-
ve: a,
|
|
859
|
-
|
|
860
|
-
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) => {
|
|
861
692
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
862
693
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
863
694
|
return n == 1 && v0 ? 'one'
|
|
864
695
|
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
865
696
|
: 'other';
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
vi: (n, ord) => {
|
|
697
|
+
};
|
|
698
|
+
export const vi = (n, ord) => {
|
|
869
699
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
870
700
|
return 'other';
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
xog: a,
|
|
886
|
-
|
|
887
|
-
yi: d,
|
|
888
|
-
|
|
889
|
-
yo: e,
|
|
890
|
-
|
|
891
|
-
yue: e,
|
|
892
|
-
|
|
893
|
-
zh: e,
|
|
894
|
-
|
|
895
|
-
zu: c
|
|
896
|
-
}));
|
|
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;
|