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/plurals.mjs
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
const a = (n, ord) => {
|
|
2
2
|
if (ord) return 'other';
|
|
3
3
|
return n == 1 ? 'one' : 'other';
|
|
4
|
-
}
|
|
5
|
-
|
|
4
|
+
};
|
|
5
|
+
const b = (n, ord) => {
|
|
6
6
|
if (ord) return 'other';
|
|
7
7
|
return (n == 0 || n == 1) ? 'one' : 'other';
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
};
|
|
9
|
+
const c = (n, ord) => {
|
|
10
|
+
if (ord) return 'other';
|
|
11
|
+
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
12
|
+
};
|
|
13
|
+
const d = (n, ord) => {
|
|
14
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
11
15
|
if (ord) return 'other';
|
|
12
16
|
return n == 1 && v0 ? 'one' : 'other';
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
function e(n, ord) {
|
|
17
|
+
};
|
|
18
|
+
const e = (n, ord) => 'other';
|
|
19
|
+
const f = (n, ord) => {
|
|
18
20
|
if (ord) return 'other';
|
|
19
21
|
return n == 1 ? 'one'
|
|
20
22
|
: n == 2 ? 'two'
|
|
21
23
|
: 'other';
|
|
22
|
-
}
|
|
24
|
+
};
|
|
23
25
|
|
|
24
|
-
export const _in = d;
|
|
25
26
|
export const af = a;
|
|
26
27
|
export const ak = b;
|
|
27
|
-
export
|
|
28
|
-
if (ord) return 'other';
|
|
29
|
-
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
30
|
-
}
|
|
28
|
+
export const am = c;
|
|
31
29
|
export const an = a;
|
|
32
|
-
export
|
|
33
|
-
|
|
30
|
+
export const ar = (n, ord) => {
|
|
31
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
34
32
|
if (ord) return 'other';
|
|
35
33
|
return n == 0 ? 'zero'
|
|
36
34
|
: n == 1 ? 'one'
|
|
@@ -38,9 +36,9 @@ export function ar(n, ord) {
|
|
|
38
36
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
39
37
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
40
38
|
: 'other';
|
|
41
|
-
}
|
|
42
|
-
export
|
|
43
|
-
|
|
39
|
+
};
|
|
40
|
+
export const ars = (n, ord) => {
|
|
41
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
44
42
|
if (ord) return 'other';
|
|
45
43
|
return n == 0 ? 'zero'
|
|
46
44
|
: n == 1 ? 'one'
|
|
@@ -48,90 +46,91 @@ export function ars(n, ord) {
|
|
|
48
46
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
49
47
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
50
48
|
: 'other';
|
|
51
|
-
}
|
|
52
|
-
export
|
|
49
|
+
};
|
|
50
|
+
export const as = (n, ord) => {
|
|
53
51
|
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
54
52
|
: (n == 2 || n == 3) ? 'two'
|
|
55
53
|
: n == 4 ? 'few'
|
|
56
54
|
: n == 6 ? 'many'
|
|
57
55
|
: 'other';
|
|
58
56
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
59
|
-
}
|
|
57
|
+
};
|
|
60
58
|
export const asa = a;
|
|
61
|
-
export const ast =
|
|
62
|
-
export
|
|
63
|
-
|
|
59
|
+
export const ast = d;
|
|
60
|
+
export const az = (n, ord) => {
|
|
61
|
+
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
|
|
64
62
|
if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
|
|
65
63
|
: (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
|
|
66
64
|
: i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
|
|
67
65
|
: 'other';
|
|
68
66
|
return n == 1 ? 'one' : 'other';
|
|
69
|
-
}
|
|
70
|
-
export
|
|
71
|
-
|
|
67
|
+
};
|
|
68
|
+
export const bal = (n, ord) => n == 1 ? 'one' : 'other';
|
|
69
|
+
export const be = (n, ord) => {
|
|
70
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
72
71
|
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
73
72
|
return n10 == 1 && n100 != 11 ? 'one'
|
|
74
73
|
: (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'
|
|
75
74
|
: t0 && n10 == 0 || (n10 >= 5 && n10 <= 9) || (n100 >= 11 && n100 <= 14) ? 'many'
|
|
76
75
|
: 'other';
|
|
77
|
-
}
|
|
76
|
+
};
|
|
78
77
|
export const bem = a;
|
|
79
78
|
export const bez = a;
|
|
80
79
|
export const bg = a;
|
|
81
80
|
export const bho = b;
|
|
82
|
-
export const bm =
|
|
83
|
-
export
|
|
81
|
+
export const bm = e;
|
|
82
|
+
export const bn = (n, ord) => {
|
|
84
83
|
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
85
84
|
: (n == 2 || n == 3) ? 'two'
|
|
86
85
|
: n == 4 ? 'few'
|
|
87
86
|
: n == 6 ? 'many'
|
|
88
87
|
: 'other';
|
|
89
88
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
90
|
-
}
|
|
91
|
-
export const bo =
|
|
92
|
-
export
|
|
93
|
-
|
|
89
|
+
};
|
|
90
|
+
export const bo = e;
|
|
91
|
+
export const br = (n, ord) => {
|
|
92
|
+
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);
|
|
94
93
|
if (ord) return 'other';
|
|
95
94
|
return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'
|
|
96
95
|
: n10 == 2 && n100 != 12 && n100 != 72 && n100 != 92 ? 'two'
|
|
97
96
|
: ((n10 == 3 || n10 == 4) || n10 == 9) && (n100 < 10 || n100 > 19) && (n100 < 70 || n100 > 79) && (n100 < 90 || n100 > 99) ? 'few'
|
|
98
97
|
: n != 0 && t0 && n1000000 == 0 ? 'many'
|
|
99
98
|
: 'other';
|
|
100
|
-
}
|
|
99
|
+
};
|
|
101
100
|
export const brx = a;
|
|
102
|
-
export
|
|
103
|
-
|
|
101
|
+
export const bs = (n, ord) => {
|
|
102
|
+
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);
|
|
104
103
|
if (ord) return 'other';
|
|
105
104
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
106
105
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
107
106
|
: 'other';
|
|
108
|
-
}
|
|
109
|
-
export
|
|
110
|
-
|
|
107
|
+
};
|
|
108
|
+
export const ca = (n, ord) => {
|
|
109
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
111
110
|
if (ord) return (n == 1 || n == 3) ? 'one'
|
|
112
111
|
: n == 2 ? 'two'
|
|
113
112
|
: n == 4 ? 'few'
|
|
114
113
|
: 'other';
|
|
115
114
|
return n == 1 && v0 ? 'one' : 'other';
|
|
116
|
-
}
|
|
115
|
+
};
|
|
117
116
|
export const ce = a;
|
|
118
|
-
export
|
|
119
|
-
|
|
117
|
+
export const ceb = (n, ord) => {
|
|
118
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
120
119
|
if (ord) return 'other';
|
|
121
120
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
122
|
-
}
|
|
121
|
+
};
|
|
123
122
|
export const cgg = a;
|
|
124
123
|
export const chr = a;
|
|
125
124
|
export const ckb = a;
|
|
126
|
-
export
|
|
127
|
-
|
|
125
|
+
export const cs = (n, ord) => {
|
|
126
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
128
127
|
if (ord) return 'other';
|
|
129
128
|
return n == 1 && v0 ? 'one'
|
|
130
129
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
131
130
|
: !v0 ? 'many'
|
|
132
131
|
: 'other';
|
|
133
|
-
}
|
|
134
|
-
export
|
|
132
|
+
};
|
|
133
|
+
export const cy = (n, ord) => {
|
|
135
134
|
if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
|
|
136
135
|
: n == 1 ? 'one'
|
|
137
136
|
: n == 2 ? 'two'
|
|
@@ -144,69 +143,76 @@ export function cy(n, ord) {
|
|
|
144
143
|
: n == 3 ? 'few'
|
|
145
144
|
: n == 6 ? 'many'
|
|
146
145
|
: 'other';
|
|
147
|
-
}
|
|
148
|
-
export
|
|
149
|
-
|
|
146
|
+
};
|
|
147
|
+
export const da = (n, ord) => {
|
|
148
|
+
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
|
|
150
149
|
if (ord) return 'other';
|
|
151
150
|
return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';
|
|
152
|
-
}
|
|
153
|
-
export const de =
|
|
154
|
-
export
|
|
155
|
-
|
|
151
|
+
};
|
|
152
|
+
export const de = d;
|
|
153
|
+
export const doi = c;
|
|
154
|
+
export const dsb = (n, ord) => {
|
|
155
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
156
156
|
if (ord) return 'other';
|
|
157
157
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
158
158
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
159
159
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
160
160
|
: 'other';
|
|
161
|
-
}
|
|
161
|
+
};
|
|
162
162
|
export const dv = a;
|
|
163
|
-
export const dz =
|
|
163
|
+
export const dz = e;
|
|
164
164
|
export const ee = a;
|
|
165
165
|
export const el = a;
|
|
166
|
-
export
|
|
167
|
-
|
|
166
|
+
export const en = (n, ord) => {
|
|
167
|
+
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);
|
|
168
168
|
if (ord) return n10 == 1 && n100 != 11 ? 'one'
|
|
169
169
|
: n10 == 2 && n100 != 12 ? 'two'
|
|
170
170
|
: n10 == 3 && n100 != 13 ? 'few'
|
|
171
171
|
: 'other';
|
|
172
172
|
return n == 1 && v0 ? 'one' : 'other';
|
|
173
|
-
}
|
|
173
|
+
};
|
|
174
174
|
export const eo = a;
|
|
175
|
-
export const es =
|
|
176
|
-
|
|
177
|
-
export const eu = a;
|
|
178
|
-
export function fa(n, ord) {
|
|
175
|
+
export const es = (n, ord) => {
|
|
176
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
179
177
|
if (ord) return 'other';
|
|
180
|
-
return n
|
|
181
|
-
|
|
182
|
-
|
|
178
|
+
return n == 1 ? 'one'
|
|
179
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
180
|
+
: 'other';
|
|
181
|
+
};
|
|
182
|
+
export const et = d;
|
|
183
|
+
export const eu = a;
|
|
184
|
+
export const fa = c;
|
|
185
|
+
export const ff = (n, ord) => {
|
|
183
186
|
if (ord) return 'other';
|
|
184
187
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
185
|
-
}
|
|
186
|
-
export const fi =
|
|
187
|
-
export
|
|
188
|
-
|
|
188
|
+
};
|
|
189
|
+
export const fi = d;
|
|
190
|
+
export const fil = (n, ord) => {
|
|
191
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
189
192
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
190
193
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
191
|
-
}
|
|
194
|
+
};
|
|
192
195
|
export const fo = a;
|
|
193
|
-
export
|
|
196
|
+
export const fr = (n, ord) => {
|
|
197
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
194
198
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
195
|
-
return n >= 0 && n < 2 ? 'one'
|
|
196
|
-
|
|
199
|
+
return n >= 0 && n < 2 ? 'one'
|
|
200
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
201
|
+
: 'other';
|
|
202
|
+
};
|
|
197
203
|
export const fur = a;
|
|
198
|
-
export const fy =
|
|
199
|
-
export
|
|
200
|
-
|
|
204
|
+
export const fy = d;
|
|
205
|
+
export const ga = (n, ord) => {
|
|
206
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
201
207
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
202
208
|
return n == 1 ? 'one'
|
|
203
209
|
: n == 2 ? 'two'
|
|
204
210
|
: (t0 && n >= 3 && n <= 6) ? 'few'
|
|
205
211
|
: (t0 && n >= 7 && n <= 10) ? 'many'
|
|
206
212
|
: 'other';
|
|
207
|
-
}
|
|
208
|
-
export
|
|
209
|
-
|
|
213
|
+
};
|
|
214
|
+
export const gd = (n, ord) => {
|
|
215
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
210
216
|
if (ord) return (n == 1 || n == 11) ? 'one'
|
|
211
217
|
: (n == 2 || n == 12) ? 'two'
|
|
212
218
|
: (n == 3 || n == 13) ? 'few'
|
|
@@ -215,138 +221,129 @@ export function gd(n, ord) {
|
|
|
215
221
|
: (n == 2 || n == 12) ? 'two'
|
|
216
222
|
: ((t0 && n >= 3 && n <= 10) || (t0 && n >= 13 && n <= 19)) ? 'few'
|
|
217
223
|
: 'other';
|
|
218
|
-
}
|
|
219
|
-
export const gl =
|
|
224
|
+
};
|
|
225
|
+
export const gl = d;
|
|
220
226
|
export const gsw = a;
|
|
221
|
-
export
|
|
227
|
+
export const gu = (n, ord) => {
|
|
222
228
|
if (ord) return n == 1 ? 'one'
|
|
223
229
|
: (n == 2 || n == 3) ? 'two'
|
|
224
230
|
: n == 4 ? 'few'
|
|
225
231
|
: n == 6 ? 'many'
|
|
226
232
|
: 'other';
|
|
227
233
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
228
|
-
}
|
|
234
|
+
};
|
|
229
235
|
export const guw = b;
|
|
230
|
-
export
|
|
231
|
-
|
|
236
|
+
export const gv = (n, ord) => {
|
|
237
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
232
238
|
if (ord) return 'other';
|
|
233
239
|
return v0 && i10 == 1 ? 'one'
|
|
234
240
|
: v0 && i10 == 2 ? 'two'
|
|
235
241
|
: v0 && (i100 == 0 || i100 == 20 || i100 == 40 || i100 == 60 || i100 == 80) ? 'few'
|
|
236
242
|
: !v0 ? 'many'
|
|
237
243
|
: 'other';
|
|
238
|
-
}
|
|
244
|
+
};
|
|
239
245
|
export const ha = a;
|
|
240
246
|
export const haw = a;
|
|
241
|
-
export
|
|
242
|
-
|
|
247
|
+
export const he = (n, ord) => {
|
|
248
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
243
249
|
if (ord) return 'other';
|
|
244
250
|
return n == 1 && v0 ? 'one'
|
|
245
251
|
: i == 2 && v0 ? 'two'
|
|
246
252
|
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
247
253
|
: 'other';
|
|
248
|
-
}
|
|
249
|
-
export
|
|
254
|
+
};
|
|
255
|
+
export const hi = (n, ord) => {
|
|
250
256
|
if (ord) return n == 1 ? 'one'
|
|
251
257
|
: (n == 2 || n == 3) ? 'two'
|
|
252
258
|
: n == 4 ? 'few'
|
|
253
259
|
: n == 6 ? 'many'
|
|
254
260
|
: 'other';
|
|
255
261
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
256
|
-
}
|
|
257
|
-
export
|
|
258
|
-
|
|
262
|
+
};
|
|
263
|
+
export const hnj = e;
|
|
264
|
+
export const hr = (n, ord) => {
|
|
265
|
+
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);
|
|
259
266
|
if (ord) return 'other';
|
|
260
267
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
261
268
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
262
269
|
: 'other';
|
|
263
|
-
}
|
|
264
|
-
export
|
|
265
|
-
|
|
270
|
+
};
|
|
271
|
+
export const hsb = (n, ord) => {
|
|
272
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
266
273
|
if (ord) return 'other';
|
|
267
274
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
268
275
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
269
276
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
270
277
|
: 'other';
|
|
271
|
-
}
|
|
272
|
-
export
|
|
278
|
+
};
|
|
279
|
+
export const hu = (n, ord) => {
|
|
273
280
|
if (ord) return (n == 1 || n == 5) ? 'one' : 'other';
|
|
274
281
|
return n == 1 ? 'one' : 'other';
|
|
275
|
-
}
|
|
276
|
-
export
|
|
282
|
+
};
|
|
283
|
+
export const hy = (n, ord) => {
|
|
277
284
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
278
285
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
279
|
-
}
|
|
280
|
-
export const ia =
|
|
281
|
-
export const id =
|
|
282
|
-
export const ig =
|
|
283
|
-
export const ii =
|
|
284
|
-
export const io =
|
|
285
|
-
export
|
|
286
|
-
|
|
286
|
+
};
|
|
287
|
+
export const ia = d;
|
|
288
|
+
export const id = e;
|
|
289
|
+
export const ig = e;
|
|
290
|
+
export const ii = e;
|
|
291
|
+
export const io = d;
|
|
292
|
+
export const is = (n, ord) => {
|
|
293
|
+
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
287
294
|
if (ord) return 'other';
|
|
288
295
|
return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';
|
|
289
|
-
}
|
|
290
|
-
export
|
|
291
|
-
|
|
296
|
+
};
|
|
297
|
+
export const it = (n, ord) => {
|
|
298
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
292
299
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
293
|
-
return n == 1 && v0 ? 'one' : 'other';
|
|
294
|
-
}
|
|
295
|
-
export const iu = e;
|
|
296
|
-
export function iw(n, ord) {
|
|
297
|
-
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
298
|
-
if (ord) return 'other';
|
|
299
300
|
return n == 1 && v0 ? 'one'
|
|
300
|
-
: i ==
|
|
301
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
301
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
302
302
|
: 'other';
|
|
303
|
-
}
|
|
304
|
-
export const
|
|
305
|
-
export const
|
|
303
|
+
};
|
|
304
|
+
export const iu = f;
|
|
305
|
+
export const ja = e;
|
|
306
|
+
export const jbo = e;
|
|
306
307
|
export const jgo = a;
|
|
307
|
-
export const ji = c;
|
|
308
308
|
export const jmc = a;
|
|
309
|
-
export const jv =
|
|
310
|
-
export const jw =
|
|
311
|
-
export
|
|
312
|
-
|
|
309
|
+
export const jv = e;
|
|
310
|
+
export const jw = e;
|
|
311
|
+
export const ka = (n, ord) => {
|
|
312
|
+
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
|
|
313
313
|
if (ord) return i == 1 ? 'one'
|
|
314
314
|
: i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'
|
|
315
315
|
: 'other';
|
|
316
316
|
return n == 1 ? 'one' : 'other';
|
|
317
|
-
}
|
|
318
|
-
export
|
|
317
|
+
};
|
|
318
|
+
export const kab = (n, ord) => {
|
|
319
319
|
if (ord) return 'other';
|
|
320
320
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
321
|
-
}
|
|
321
|
+
};
|
|
322
322
|
export const kaj = a;
|
|
323
323
|
export const kcg = a;
|
|
324
|
-
export const kde =
|
|
325
|
-
export const kea =
|
|
326
|
-
export
|
|
327
|
-
|
|
324
|
+
export const kde = e;
|
|
325
|
+
export const kea = e;
|
|
326
|
+
export const kk = (n, ord) => {
|
|
327
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
328
328
|
if (ord) return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';
|
|
329
329
|
return n == 1 ? 'one' : 'other';
|
|
330
|
-
}
|
|
330
|
+
};
|
|
331
331
|
export const kkj = a;
|
|
332
332
|
export const kl = a;
|
|
333
|
-
export const km =
|
|
334
|
-
export
|
|
335
|
-
|
|
336
|
-
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
337
|
-
}
|
|
338
|
-
export const ko = d;
|
|
333
|
+
export const km = e;
|
|
334
|
+
export const kn = c;
|
|
335
|
+
export const ko = e;
|
|
339
336
|
export const ks = a;
|
|
340
337
|
export const ksb = a;
|
|
341
|
-
export
|
|
338
|
+
export const ksh = (n, ord) => {
|
|
342
339
|
if (ord) return 'other';
|
|
343
340
|
return n == 0 ? 'zero'
|
|
344
341
|
: n == 1 ? 'one'
|
|
345
342
|
: 'other';
|
|
346
|
-
}
|
|
343
|
+
};
|
|
347
344
|
export const ku = a;
|
|
348
|
-
export
|
|
349
|
-
|
|
345
|
+
export const kw = (n, ord) => {
|
|
346
|
+
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);
|
|
350
347
|
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'
|
|
351
348
|
: n == 5 || n100 == 5 ? 'many'
|
|
352
349
|
: 'other';
|
|
@@ -356,289 +353,302 @@ export function kw(n, ord) {
|
|
|
356
353
|
: (n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63 || n100 == 83) ? 'few'
|
|
357
354
|
: n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61 || n100 == 81) ? 'many'
|
|
358
355
|
: 'other';
|
|
359
|
-
}
|
|
356
|
+
};
|
|
360
357
|
export const ky = a;
|
|
361
|
-
export
|
|
362
|
-
|
|
358
|
+
export const lag = (n, ord) => {
|
|
359
|
+
const s = String(n).split('.'), i = s[0];
|
|
363
360
|
if (ord) return 'other';
|
|
364
361
|
return n == 0 ? 'zero'
|
|
365
362
|
: (i == 0 || i == 1) && n != 0 ? 'one'
|
|
366
363
|
: 'other';
|
|
367
|
-
}
|
|
364
|
+
};
|
|
368
365
|
export const lb = a;
|
|
369
366
|
export const lg = a;
|
|
370
|
-
export const
|
|
367
|
+
export const lij = (n, ord) => {
|
|
368
|
+
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n;
|
|
369
|
+
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
|
|
370
|
+
return n == 1 && v0 ? 'one' : 'other';
|
|
371
|
+
};
|
|
372
|
+
export const lkt = e;
|
|
371
373
|
export const ln = b;
|
|
372
|
-
export
|
|
374
|
+
export const lo = (n, ord) => {
|
|
373
375
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
374
376
|
return 'other';
|
|
375
|
-
}
|
|
376
|
-
export
|
|
377
|
-
|
|
377
|
+
};
|
|
378
|
+
export const lt = (n, ord) => {
|
|
379
|
+
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);
|
|
378
380
|
if (ord) return 'other';
|
|
379
381
|
return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'
|
|
380
382
|
: (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
|
|
381
383
|
: f != 0 ? 'many'
|
|
382
384
|
: 'other';
|
|
383
|
-
}
|
|
384
|
-
export
|
|
385
|
-
|
|
385
|
+
};
|
|
386
|
+
export const lv = (n, ord) => {
|
|
387
|
+
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);
|
|
386
388
|
if (ord) return 'other';
|
|
387
389
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
388
390
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
389
391
|
: 'other';
|
|
390
|
-
}
|
|
392
|
+
};
|
|
391
393
|
export const mas = a;
|
|
392
394
|
export const mg = b;
|
|
393
395
|
export const mgo = a;
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
+
export const mk = (n, ord) => {
|
|
397
|
+
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);
|
|
396
398
|
if (ord) return i10 == 1 && i100 != 11 ? 'one'
|
|
397
399
|
: i10 == 2 && i100 != 12 ? 'two'
|
|
398
400
|
: (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? 'many'
|
|
399
401
|
: 'other';
|
|
400
402
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one' : 'other';
|
|
401
|
-
}
|
|
403
|
+
};
|
|
402
404
|
export const ml = a;
|
|
403
405
|
export const mn = a;
|
|
404
|
-
export
|
|
405
|
-
|
|
406
|
+
export const mo = (n, ord) => {
|
|
407
|
+
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
406
408
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
407
409
|
return n == 1 && v0 ? 'one'
|
|
408
410
|
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
|
|
409
411
|
: 'other';
|
|
410
|
-
}
|
|
411
|
-
export
|
|
412
|
+
};
|
|
413
|
+
export const mr = (n, ord) => {
|
|
412
414
|
if (ord) return n == 1 ? 'one'
|
|
413
415
|
: (n == 2 || n == 3) ? 'two'
|
|
414
416
|
: n == 4 ? 'few'
|
|
415
417
|
: 'other';
|
|
416
418
|
return n == 1 ? 'one' : 'other';
|
|
417
|
-
}
|
|
418
|
-
export
|
|
419
|
+
};
|
|
420
|
+
export const ms = (n, ord) => {
|
|
419
421
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
420
422
|
return 'other';
|
|
421
|
-
}
|
|
422
|
-
export
|
|
423
|
-
|
|
423
|
+
};
|
|
424
|
+
export const mt = (n, ord) => {
|
|
425
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
424
426
|
if (ord) return 'other';
|
|
425
427
|
return n == 1 ? 'one'
|
|
426
428
|
: n == 0 || (n100 >= 2 && n100 <= 10) ? 'few'
|
|
427
429
|
: (n100 >= 11 && n100 <= 19) ? 'many'
|
|
428
430
|
: 'other';
|
|
429
|
-
}
|
|
430
|
-
export const my =
|
|
431
|
+
};
|
|
432
|
+
export const my = e;
|
|
431
433
|
export const nah = a;
|
|
432
|
-
export const naq =
|
|
434
|
+
export const naq = f;
|
|
433
435
|
export const nb = a;
|
|
434
436
|
export const nd = a;
|
|
435
|
-
export
|
|
436
|
-
|
|
437
|
+
export const ne = (n, ord) => {
|
|
438
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
437
439
|
if (ord) return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';
|
|
438
440
|
return n == 1 ? 'one' : 'other';
|
|
439
|
-
}
|
|
440
|
-
export const nl =
|
|
441
|
+
};
|
|
442
|
+
export const nl = d;
|
|
441
443
|
export const nn = a;
|
|
442
444
|
export const nnh = a;
|
|
443
445
|
export const no = a;
|
|
444
|
-
export const nqo =
|
|
446
|
+
export const nqo = e;
|
|
445
447
|
export const nr = a;
|
|
446
448
|
export const nso = b;
|
|
447
449
|
export const ny = a;
|
|
448
450
|
export const nyn = a;
|
|
449
451
|
export const om = a;
|
|
450
|
-
export
|
|
451
|
-
|
|
452
|
+
export const or = (n, ord) => {
|
|
453
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
452
454
|
if (ord) return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'
|
|
453
455
|
: (n == 2 || n == 3) ? 'two'
|
|
454
456
|
: n == 4 ? 'few'
|
|
455
457
|
: n == 6 ? 'many'
|
|
456
458
|
: 'other';
|
|
457
459
|
return n == 1 ? 'one' : 'other';
|
|
458
|
-
}
|
|
460
|
+
};
|
|
459
461
|
export const os = a;
|
|
460
|
-
export const osa =
|
|
462
|
+
export const osa = e;
|
|
461
463
|
export const pa = b;
|
|
462
464
|
export const pap = a;
|
|
463
|
-
export
|
|
464
|
-
|
|
465
|
+
export const pcm = c;
|
|
466
|
+
export const pl = (n, ord) => {
|
|
467
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
465
468
|
if (ord) return 'other';
|
|
466
469
|
return n == 1 && v0 ? 'one'
|
|
467
470
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
468
471
|
: v0 && i != 1 && (i10 == 0 || i10 == 1) || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 12 && i100 <= 14) ? 'many'
|
|
469
472
|
: 'other';
|
|
470
|
-
}
|
|
471
|
-
export
|
|
472
|
-
|
|
473
|
+
};
|
|
474
|
+
export const prg = (n, ord) => {
|
|
475
|
+
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);
|
|
473
476
|
if (ord) return 'other';
|
|
474
477
|
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
|
|
475
478
|
: n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
|
|
476
479
|
: 'other';
|
|
477
|
-
}
|
|
480
|
+
};
|
|
478
481
|
export const ps = a;
|
|
479
|
-
export
|
|
480
|
-
|
|
482
|
+
export const pt = (n, ord) => {
|
|
483
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
481
484
|
if (ord) return 'other';
|
|
482
|
-
return (i == 0 || i == 1) ? 'one'
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
return (i == 0 || i == 1) ? 'one'
|
|
486
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
487
|
+
: 'other';
|
|
488
|
+
};
|
|
489
|
+
export const pt_PT = (n, ord) => {
|
|
490
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
491
|
+
if (ord) return 'other';
|
|
492
|
+
return n == 1 && v0 ? 'one'
|
|
493
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
494
|
+
: 'other';
|
|
495
|
+
};
|
|
485
496
|
export const rm = a;
|
|
486
|
-
export
|
|
487
|
-
|
|
497
|
+
export const ro = (n, ord) => {
|
|
498
|
+
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
488
499
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
489
500
|
return n == 1 && v0 ? 'one'
|
|
490
501
|
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
|
|
491
502
|
: 'other';
|
|
492
|
-
}
|
|
503
|
+
};
|
|
493
504
|
export const rof = a;
|
|
494
|
-
export const
|
|
495
|
-
|
|
496
|
-
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
505
|
+
export const ru = (n, ord) => {
|
|
506
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
497
507
|
if (ord) return 'other';
|
|
498
508
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
499
509
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
500
510
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
501
511
|
: 'other';
|
|
502
|
-
}
|
|
512
|
+
};
|
|
503
513
|
export const rwk = a;
|
|
504
|
-
export const sah =
|
|
514
|
+
export const sah = e;
|
|
505
515
|
export const saq = a;
|
|
506
|
-
export
|
|
507
|
-
|
|
516
|
+
export const sat = f;
|
|
517
|
+
export const sc = (n, ord) => {
|
|
518
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
508
519
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
509
520
|
return n == 1 && v0 ? 'one' : 'other';
|
|
510
|
-
}
|
|
511
|
-
export
|
|
512
|
-
|
|
521
|
+
};
|
|
522
|
+
export const scn = (n, ord) => {
|
|
523
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
513
524
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
514
525
|
return n == 1 && v0 ? 'one' : 'other';
|
|
515
|
-
}
|
|
526
|
+
};
|
|
516
527
|
export const sd = a;
|
|
517
528
|
export const sdh = a;
|
|
518
|
-
export const se =
|
|
529
|
+
export const se = f;
|
|
519
530
|
export const seh = a;
|
|
520
|
-
export const ses =
|
|
521
|
-
export const sg =
|
|
522
|
-
export
|
|
523
|
-
|
|
531
|
+
export const ses = e;
|
|
532
|
+
export const sg = e;
|
|
533
|
+
export const sh = (n, ord) => {
|
|
534
|
+
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);
|
|
524
535
|
if (ord) return 'other';
|
|
525
536
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
526
537
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
527
538
|
: 'other';
|
|
528
|
-
}
|
|
529
|
-
export
|
|
530
|
-
|
|
539
|
+
};
|
|
540
|
+
export const shi = (n, ord) => {
|
|
541
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
531
542
|
if (ord) return 'other';
|
|
532
543
|
return n >= 0 && n <= 1 ? 'one'
|
|
533
544
|
: (t0 && n >= 2 && n <= 10) ? 'few'
|
|
534
545
|
: 'other';
|
|
535
|
-
}
|
|
536
|
-
export
|
|
537
|
-
|
|
546
|
+
};
|
|
547
|
+
export const si = (n, ord) => {
|
|
548
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '';
|
|
538
549
|
if (ord) return 'other';
|
|
539
550
|
return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
|
|
540
|
-
}
|
|
541
|
-
export
|
|
542
|
-
|
|
551
|
+
};
|
|
552
|
+
export const sk = (n, ord) => {
|
|
553
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
543
554
|
if (ord) return 'other';
|
|
544
555
|
return n == 1 && v0 ? 'one'
|
|
545
556
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
546
557
|
: !v0 ? 'many'
|
|
547
558
|
: 'other';
|
|
548
|
-
}
|
|
549
|
-
export
|
|
550
|
-
|
|
559
|
+
};
|
|
560
|
+
export const sl = (n, ord) => {
|
|
561
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
|
|
551
562
|
if (ord) return 'other';
|
|
552
563
|
return v0 && i100 == 1 ? 'one'
|
|
553
564
|
: v0 && i100 == 2 ? 'two'
|
|
554
565
|
: v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
|
|
555
566
|
: 'other';
|
|
556
|
-
}
|
|
557
|
-
export const sma =
|
|
558
|
-
export const smi =
|
|
559
|
-
export const smj =
|
|
560
|
-
export const smn =
|
|
561
|
-
export const sms =
|
|
567
|
+
};
|
|
568
|
+
export const sma = f;
|
|
569
|
+
export const smi = f;
|
|
570
|
+
export const smj = f;
|
|
571
|
+
export const smn = f;
|
|
572
|
+
export const sms = f;
|
|
562
573
|
export const sn = a;
|
|
563
574
|
export const so = a;
|
|
564
|
-
export
|
|
565
|
-
|
|
575
|
+
export const sq = (n, ord) => {
|
|
576
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
566
577
|
if (ord) return n == 1 ? 'one'
|
|
567
578
|
: n10 == 4 && n100 != 14 ? 'many'
|
|
568
579
|
: 'other';
|
|
569
580
|
return n == 1 ? 'one' : 'other';
|
|
570
|
-
}
|
|
571
|
-
export
|
|
572
|
-
|
|
581
|
+
};
|
|
582
|
+
export const sr = (n, ord) => {
|
|
583
|
+
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);
|
|
573
584
|
if (ord) return 'other';
|
|
574
585
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
575
586
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
576
587
|
: 'other';
|
|
577
|
-
}
|
|
588
|
+
};
|
|
578
589
|
export const ss = a;
|
|
579
590
|
export const ssy = a;
|
|
580
591
|
export const st = a;
|
|
581
|
-
export const su =
|
|
582
|
-
export
|
|
583
|
-
|
|
592
|
+
export const su = e;
|
|
593
|
+
export const sv = (n, ord) => {
|
|
594
|
+
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);
|
|
584
595
|
if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
|
|
585
596
|
return n == 1 && v0 ? 'one' : 'other';
|
|
586
|
-
}
|
|
587
|
-
export const sw =
|
|
597
|
+
};
|
|
598
|
+
export const sw = d;
|
|
588
599
|
export const syr = a;
|
|
589
600
|
export const ta = a;
|
|
590
601
|
export const te = a;
|
|
591
602
|
export const teo = a;
|
|
592
|
-
export const th =
|
|
603
|
+
export const th = e;
|
|
593
604
|
export const ti = b;
|
|
594
605
|
export const tig = a;
|
|
595
|
-
export
|
|
596
|
-
|
|
606
|
+
export const tk = (n, ord) => {
|
|
607
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
597
608
|
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
|
|
598
609
|
return n == 1 ? 'one' : 'other';
|
|
599
|
-
}
|
|
600
|
-
export
|
|
601
|
-
|
|
610
|
+
};
|
|
611
|
+
export const tl = (n, ord) => {
|
|
612
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
602
613
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
603
614
|
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
|
|
604
|
-
}
|
|
615
|
+
};
|
|
605
616
|
export const tn = a;
|
|
606
|
-
export const to =
|
|
617
|
+
export const to = e;
|
|
618
|
+
export const tpi = e;
|
|
607
619
|
export const tr = a;
|
|
608
620
|
export const ts = a;
|
|
609
|
-
export
|
|
610
|
-
|
|
621
|
+
export const tzm = (n, ord) => {
|
|
622
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
611
623
|
if (ord) return 'other';
|
|
612
624
|
return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';
|
|
613
|
-
}
|
|
625
|
+
};
|
|
614
626
|
export const ug = a;
|
|
615
|
-
export
|
|
616
|
-
|
|
627
|
+
export const uk = (n, ord) => {
|
|
628
|
+
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);
|
|
617
629
|
if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';
|
|
618
630
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
619
631
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
620
632
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
621
633
|
: 'other';
|
|
622
|
-
}
|
|
623
|
-
export const
|
|
634
|
+
};
|
|
635
|
+
export const und = e;
|
|
636
|
+
export const ur = d;
|
|
624
637
|
export const uz = a;
|
|
625
638
|
export const ve = a;
|
|
626
|
-
export
|
|
639
|
+
export const vi = (n, ord) => {
|
|
627
640
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
628
641
|
return 'other';
|
|
629
|
-
}
|
|
642
|
+
};
|
|
630
643
|
export const vo = a;
|
|
631
644
|
export const vun = a;
|
|
632
645
|
export const wa = b;
|
|
633
646
|
export const wae = a;
|
|
634
|
-
export const wo =
|
|
647
|
+
export const wo = e;
|
|
635
648
|
export const xh = a;
|
|
636
649
|
export const xog = a;
|
|
637
|
-
export const yi =
|
|
638
|
-
export const yo =
|
|
639
|
-
export const yue =
|
|
640
|
-
export const zh =
|
|
641
|
-
export
|
|
642
|
-
if (ord) return 'other';
|
|
643
|
-
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
644
|
-
}
|
|
650
|
+
export const yi = d;
|
|
651
|
+
export const yo = e;
|
|
652
|
+
export const yue = e;
|
|
653
|
+
export const zh = e;
|
|
654
|
+
export const zu = c;
|