make-plural 6.2.2 → 7.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/LICENSE +29 -11
- package/README.md +44 -16
- package/cardinals.d.ts +215 -211
- package/cardinals.js +109 -122
- package/cardinals.mjs +140 -153
- 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 +58 -83
- package/ordinals.mjs +58 -81
- package/package.json +23 -24
- package/pluralCategories.d.ts +5 -1
- package/pluralCategories.js +8 -8
- package/pluralCategories.mjs +5 -1
- package/plurals.d.ts +215 -211
- package/plurals.js +208 -207
- package/plurals.mjs +268 -267
- package/ranges.d.ts +93 -0
- package/ranges.js +209 -0
- package/ranges.mjs +112 -0
- package/CHANGELOG.md +0 -113
package/plurals.mjs
CHANGED
|
@@ -1,36 +1,35 @@
|
|
|
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 =
|
|
26
|
+
export const _in = e;
|
|
25
27
|
export const af = a;
|
|
26
28
|
export const ak = b;
|
|
27
|
-
export
|
|
28
|
-
if (ord) return 'other';
|
|
29
|
-
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
30
|
-
}
|
|
29
|
+
export const am = c;
|
|
31
30
|
export const an = a;
|
|
32
|
-
export
|
|
33
|
-
|
|
31
|
+
export const ar = (n, ord) => {
|
|
32
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
34
33
|
if (ord) return 'other';
|
|
35
34
|
return n == 0 ? 'zero'
|
|
36
35
|
: n == 1 ? 'one'
|
|
@@ -38,9 +37,9 @@ export function ar(n, ord) {
|
|
|
38
37
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
39
38
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
40
39
|
: 'other';
|
|
41
|
-
}
|
|
42
|
-
export
|
|
43
|
-
|
|
40
|
+
};
|
|
41
|
+
export const ars = (n, ord) => {
|
|
42
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
44
43
|
if (ord) return 'other';
|
|
45
44
|
return n == 0 ? 'zero'
|
|
46
45
|
: n == 1 ? 'one'
|
|
@@ -48,90 +47,90 @@ export function ars(n, ord) {
|
|
|
48
47
|
: (n100 >= 3 && n100 <= 10) ? 'few'
|
|
49
48
|
: (n100 >= 11 && n100 <= 99) ? 'many'
|
|
50
49
|
: 'other';
|
|
51
|
-
}
|
|
52
|
-
export
|
|
50
|
+
};
|
|
51
|
+
export const as = (n, ord) => {
|
|
53
52
|
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
|
|
54
53
|
: (n == 2 || n == 3) ? 'two'
|
|
55
54
|
: n == 4 ? 'few'
|
|
56
55
|
: n == 6 ? 'many'
|
|
57
56
|
: 'other';
|
|
58
57
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
59
|
-
}
|
|
58
|
+
};
|
|
60
59
|
export const asa = a;
|
|
61
|
-
export const ast =
|
|
62
|
-
export
|
|
63
|
-
|
|
60
|
+
export const ast = d;
|
|
61
|
+
export const az = (n, ord) => {
|
|
62
|
+
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
|
|
64
63
|
if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
|
|
65
64
|
: (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
|
|
66
65
|
: i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
|
|
67
66
|
: 'other';
|
|
68
67
|
return n == 1 ? 'one' : 'other';
|
|
69
|
-
}
|
|
70
|
-
export
|
|
71
|
-
|
|
68
|
+
};
|
|
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,70 @@ 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
175
|
export const es = a;
|
|
176
|
-
export const et =
|
|
176
|
+
export const et = d;
|
|
177
177
|
export const eu = a;
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
181
|
-
}
|
|
182
|
-
export function ff(n, ord) {
|
|
178
|
+
export const fa = c;
|
|
179
|
+
export const ff = (n, ord) => {
|
|
183
180
|
if (ord) return 'other';
|
|
184
181
|
return n >= 0 && n < 2 ? 'one' : 'other';
|
|
185
|
-
}
|
|
186
|
-
export const fi =
|
|
187
|
-
export
|
|
188
|
-
|
|
182
|
+
};
|
|
183
|
+
export const fi = d;
|
|
184
|
+
export const fil = (n, ord) => {
|
|
185
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
189
186
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
190
187
|
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
|
-
}
|
|
188
|
+
};
|
|
192
189
|
export const fo = a;
|
|
193
|
-
export
|
|
190
|
+
export const fr = (n, ord) => {
|
|
191
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
194
192
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
195
|
-
return n >= 0 && n < 2 ? 'one'
|
|
196
|
-
|
|
193
|
+
return n >= 0 && n < 2 ? 'one'
|
|
194
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
195
|
+
: 'other';
|
|
196
|
+
};
|
|
197
197
|
export const fur = a;
|
|
198
|
-
export const fy =
|
|
199
|
-
export
|
|
200
|
-
|
|
198
|
+
export const fy = d;
|
|
199
|
+
export const ga = (n, ord) => {
|
|
200
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
201
201
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
202
202
|
return n == 1 ? 'one'
|
|
203
203
|
: n == 2 ? 'two'
|
|
204
204
|
: (t0 && n >= 3 && n <= 6) ? 'few'
|
|
205
205
|
: (t0 && n >= 7 && n <= 10) ? 'many'
|
|
206
206
|
: 'other';
|
|
207
|
-
}
|
|
208
|
-
export
|
|
209
|
-
|
|
207
|
+
};
|
|
208
|
+
export const gd = (n, ord) => {
|
|
209
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
210
210
|
if (ord) return (n == 1 || n == 11) ? 'one'
|
|
211
211
|
: (n == 2 || n == 12) ? 'two'
|
|
212
212
|
: (n == 3 || n == 13) ? 'few'
|
|
@@ -215,138 +215,135 @@ export function gd(n, ord) {
|
|
|
215
215
|
: (n == 2 || n == 12) ? 'two'
|
|
216
216
|
: ((t0 && n >= 3 && n <= 10) || (t0 && n >= 13 && n <= 19)) ? 'few'
|
|
217
217
|
: 'other';
|
|
218
|
-
}
|
|
219
|
-
export const gl =
|
|
218
|
+
};
|
|
219
|
+
export const gl = d;
|
|
220
220
|
export const gsw = a;
|
|
221
|
-
export
|
|
221
|
+
export const gu = (n, ord) => {
|
|
222
222
|
if (ord) return n == 1 ? 'one'
|
|
223
223
|
: (n == 2 || n == 3) ? 'two'
|
|
224
224
|
: n == 4 ? 'few'
|
|
225
225
|
: n == 6 ? 'many'
|
|
226
226
|
: 'other';
|
|
227
227
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
228
|
-
}
|
|
228
|
+
};
|
|
229
229
|
export const guw = b;
|
|
230
|
-
export
|
|
231
|
-
|
|
230
|
+
export const gv = (n, ord) => {
|
|
231
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
232
232
|
if (ord) return 'other';
|
|
233
233
|
return v0 && i10 == 1 ? 'one'
|
|
234
234
|
: v0 && i10 == 2 ? 'two'
|
|
235
235
|
: v0 && (i100 == 0 || i100 == 20 || i100 == 40 || i100 == 60 || i100 == 80) ? 'few'
|
|
236
236
|
: !v0 ? 'many'
|
|
237
237
|
: 'other';
|
|
238
|
-
}
|
|
238
|
+
};
|
|
239
239
|
export const ha = a;
|
|
240
240
|
export const haw = a;
|
|
241
|
-
export
|
|
242
|
-
|
|
241
|
+
export const he = (n, ord) => {
|
|
242
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
243
243
|
if (ord) return 'other';
|
|
244
244
|
return n == 1 && v0 ? 'one'
|
|
245
245
|
: i == 2 && v0 ? 'two'
|
|
246
246
|
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
247
247
|
: 'other';
|
|
248
|
-
}
|
|
249
|
-
export
|
|
248
|
+
};
|
|
249
|
+
export const hi = (n, ord) => {
|
|
250
250
|
if (ord) return n == 1 ? 'one'
|
|
251
251
|
: (n == 2 || n == 3) ? 'two'
|
|
252
252
|
: n == 4 ? 'few'
|
|
253
253
|
: n == 6 ? 'many'
|
|
254
254
|
: 'other';
|
|
255
255
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
256
|
-
}
|
|
257
|
-
export
|
|
258
|
-
|
|
256
|
+
};
|
|
257
|
+
export const hr = (n, ord) => {
|
|
258
|
+
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
259
|
if (ord) return 'other';
|
|
260
260
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
261
261
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
262
262
|
: 'other';
|
|
263
|
-
}
|
|
264
|
-
export
|
|
265
|
-
|
|
263
|
+
};
|
|
264
|
+
export const hsb = (n, ord) => {
|
|
265
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
|
|
266
266
|
if (ord) return 'other';
|
|
267
267
|
return v0 && i100 == 1 || f100 == 1 ? 'one'
|
|
268
268
|
: v0 && i100 == 2 || f100 == 2 ? 'two'
|
|
269
269
|
: v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
|
|
270
270
|
: 'other';
|
|
271
|
-
}
|
|
272
|
-
export
|
|
271
|
+
};
|
|
272
|
+
export const hu = (n, ord) => {
|
|
273
273
|
if (ord) return (n == 1 || n == 5) ? 'one' : 'other';
|
|
274
274
|
return n == 1 ? 'one' : 'other';
|
|
275
|
-
}
|
|
276
|
-
export
|
|
275
|
+
};
|
|
276
|
+
export const hy = (n, ord) => {
|
|
277
277
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
278
278
|
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
|
-
|
|
279
|
+
};
|
|
280
|
+
export const ia = d;
|
|
281
|
+
export const id = e;
|
|
282
|
+
export const ig = e;
|
|
283
|
+
export const ii = e;
|
|
284
|
+
export const io = d;
|
|
285
|
+
export const is = (n, ord) => {
|
|
286
|
+
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
|
|
287
287
|
if (ord) return 'other';
|
|
288
288
|
return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';
|
|
289
|
-
}
|
|
290
|
-
export
|
|
291
|
-
|
|
289
|
+
};
|
|
290
|
+
export const it = (n, ord) => {
|
|
291
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
292
292
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
293
293
|
return n == 1 && v0 ? 'one' : 'other';
|
|
294
|
-
}
|
|
295
|
-
export const iu =
|
|
296
|
-
export
|
|
297
|
-
|
|
294
|
+
};
|
|
295
|
+
export const iu = f;
|
|
296
|
+
export const iw = (n, ord) => {
|
|
297
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
298
298
|
if (ord) return 'other';
|
|
299
299
|
return n == 1 && v0 ? 'one'
|
|
300
300
|
: i == 2 && v0 ? 'two'
|
|
301
301
|
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
302
302
|
: 'other';
|
|
303
|
-
}
|
|
304
|
-
export const ja =
|
|
305
|
-
export const jbo =
|
|
303
|
+
};
|
|
304
|
+
export const ja = e;
|
|
305
|
+
export const jbo = e;
|
|
306
306
|
export const jgo = a;
|
|
307
|
-
export const ji =
|
|
307
|
+
export const ji = d;
|
|
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,293 @@ 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];
|
|
481
484
|
if (ord) return 'other';
|
|
482
485
|
return (i == 0 || i == 1) ? 'one' : 'other';
|
|
483
|
-
}
|
|
484
|
-
export const pt_PT =
|
|
486
|
+
};
|
|
487
|
+
export const pt_PT = d;
|
|
485
488
|
export const rm = a;
|
|
486
|
-
export
|
|
487
|
-
|
|
489
|
+
export const ro = (n, ord) => {
|
|
490
|
+
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
488
491
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
489
492
|
return n == 1 && v0 ? 'one'
|
|
490
493
|
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
|
|
491
494
|
: 'other';
|
|
492
|
-
}
|
|
495
|
+
};
|
|
493
496
|
export const rof = a;
|
|
494
|
-
export const root =
|
|
495
|
-
export
|
|
496
|
-
|
|
497
|
+
export const root = e;
|
|
498
|
+
export const ru = (n, ord) => {
|
|
499
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
497
500
|
if (ord) return 'other';
|
|
498
501
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
499
502
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
500
503
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
501
504
|
: 'other';
|
|
502
|
-
}
|
|
505
|
+
};
|
|
503
506
|
export const rwk = a;
|
|
504
|
-
export const sah =
|
|
507
|
+
export const sah = e;
|
|
505
508
|
export const saq = a;
|
|
506
|
-
export
|
|
507
|
-
|
|
509
|
+
export const sat = f;
|
|
510
|
+
export const sc = (n, ord) => {
|
|
511
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
508
512
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
509
513
|
return n == 1 && v0 ? 'one' : 'other';
|
|
510
|
-
}
|
|
511
|
-
export
|
|
512
|
-
|
|
514
|
+
};
|
|
515
|
+
export const scn = (n, ord) => {
|
|
516
|
+
const s = String(n).split('.'), v0 = !s[1];
|
|
513
517
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
514
518
|
return n == 1 && v0 ? 'one' : 'other';
|
|
515
|
-
}
|
|
519
|
+
};
|
|
516
520
|
export const sd = a;
|
|
517
521
|
export const sdh = a;
|
|
518
|
-
export const se =
|
|
522
|
+
export const se = f;
|
|
519
523
|
export const seh = a;
|
|
520
|
-
export const ses =
|
|
521
|
-
export const sg =
|
|
522
|
-
export
|
|
523
|
-
|
|
524
|
+
export const ses = e;
|
|
525
|
+
export const sg = e;
|
|
526
|
+
export const sh = (n, ord) => {
|
|
527
|
+
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
528
|
if (ord) return 'other';
|
|
525
529
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
526
530
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
527
531
|
: 'other';
|
|
528
|
-
}
|
|
529
|
-
export
|
|
530
|
-
|
|
532
|
+
};
|
|
533
|
+
export const shi = (n, ord) => {
|
|
534
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
531
535
|
if (ord) return 'other';
|
|
532
536
|
return n >= 0 && n <= 1 ? 'one'
|
|
533
537
|
: (t0 && n >= 2 && n <= 10) ? 'few'
|
|
534
538
|
: 'other';
|
|
535
|
-
}
|
|
536
|
-
export
|
|
537
|
-
|
|
539
|
+
};
|
|
540
|
+
export const si = (n, ord) => {
|
|
541
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '';
|
|
538
542
|
if (ord) return 'other';
|
|
539
543
|
return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
|
|
540
|
-
}
|
|
541
|
-
export
|
|
542
|
-
|
|
544
|
+
};
|
|
545
|
+
export const sk = (n, ord) => {
|
|
546
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1];
|
|
543
547
|
if (ord) return 'other';
|
|
544
548
|
return n == 1 && v0 ? 'one'
|
|
545
549
|
: (i >= 2 && i <= 4) && v0 ? 'few'
|
|
546
550
|
: !v0 ? 'many'
|
|
547
551
|
: 'other';
|
|
548
|
-
}
|
|
549
|
-
export
|
|
550
|
-
|
|
552
|
+
};
|
|
553
|
+
export const sl = (n, ord) => {
|
|
554
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
|
|
551
555
|
if (ord) return 'other';
|
|
552
556
|
return v0 && i100 == 1 ? 'one'
|
|
553
557
|
: v0 && i100 == 2 ? 'two'
|
|
554
558
|
: v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
|
|
555
559
|
: 'other';
|
|
556
|
-
}
|
|
557
|
-
export const sma =
|
|
558
|
-
export const smi =
|
|
559
|
-
export const smj =
|
|
560
|
-
export const smn =
|
|
561
|
-
export const sms =
|
|
560
|
+
};
|
|
561
|
+
export const sma = f;
|
|
562
|
+
export const smi = f;
|
|
563
|
+
export const smj = f;
|
|
564
|
+
export const smn = f;
|
|
565
|
+
export const sms = f;
|
|
562
566
|
export const sn = a;
|
|
563
567
|
export const so = a;
|
|
564
|
-
export
|
|
565
|
-
|
|
568
|
+
export const sq = (n, ord) => {
|
|
569
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
566
570
|
if (ord) return n == 1 ? 'one'
|
|
567
571
|
: n10 == 4 && n100 != 14 ? 'many'
|
|
568
572
|
: 'other';
|
|
569
573
|
return n == 1 ? 'one' : 'other';
|
|
570
|
-
}
|
|
571
|
-
export
|
|
572
|
-
|
|
574
|
+
};
|
|
575
|
+
export const sr = (n, ord) => {
|
|
576
|
+
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
577
|
if (ord) return 'other';
|
|
574
578
|
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
|
|
575
579
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
|
|
576
580
|
: 'other';
|
|
577
|
-
}
|
|
581
|
+
};
|
|
578
582
|
export const ss = a;
|
|
579
583
|
export const ssy = a;
|
|
580
584
|
export const st = a;
|
|
581
|
-
export const su =
|
|
582
|
-
export
|
|
583
|
-
|
|
585
|
+
export const su = e;
|
|
586
|
+
export const sv = (n, ord) => {
|
|
587
|
+
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
588
|
if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
|
|
585
589
|
return n == 1 && v0 ? 'one' : 'other';
|
|
586
|
-
}
|
|
587
|
-
export const sw =
|
|
590
|
+
};
|
|
591
|
+
export const sw = d;
|
|
588
592
|
export const syr = a;
|
|
589
593
|
export const ta = a;
|
|
590
594
|
export const te = a;
|
|
591
595
|
export const teo = a;
|
|
592
|
-
export const th =
|
|
596
|
+
export const th = e;
|
|
593
597
|
export const ti = b;
|
|
594
598
|
export const tig = a;
|
|
595
|
-
export
|
|
596
|
-
|
|
599
|
+
export const tk = (n, ord) => {
|
|
600
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
597
601
|
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
|
|
598
602
|
return n == 1 ? 'one' : 'other';
|
|
599
|
-
}
|
|
600
|
-
export
|
|
601
|
-
|
|
603
|
+
};
|
|
604
|
+
export const tl = (n, ord) => {
|
|
605
|
+
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
|
|
602
606
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
603
607
|
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
|
-
}
|
|
608
|
+
};
|
|
605
609
|
export const tn = a;
|
|
606
|
-
export const to =
|
|
610
|
+
export const to = e;
|
|
607
611
|
export const tr = a;
|
|
608
612
|
export const ts = a;
|
|
609
|
-
export
|
|
610
|
-
|
|
613
|
+
export const tzm = (n, ord) => {
|
|
614
|
+
const s = String(n).split('.'), t0 = Number(s[0]) == n;
|
|
611
615
|
if (ord) return 'other';
|
|
612
616
|
return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';
|
|
613
|
-
}
|
|
617
|
+
};
|
|
614
618
|
export const ug = a;
|
|
615
|
-
export
|
|
616
|
-
|
|
619
|
+
export const uk = (n, ord) => {
|
|
620
|
+
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
621
|
if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';
|
|
618
622
|
return v0 && i10 == 1 && i100 != 11 ? 'one'
|
|
619
623
|
: v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
|
|
620
624
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
621
625
|
: 'other';
|
|
622
|
-
}
|
|
623
|
-
export const ur =
|
|
626
|
+
};
|
|
627
|
+
export const ur = d;
|
|
624
628
|
export const uz = a;
|
|
625
629
|
export const ve = a;
|
|
626
|
-
export
|
|
630
|
+
export const vi = (n, ord) => {
|
|
627
631
|
if (ord) return n == 1 ? 'one' : 'other';
|
|
628
632
|
return 'other';
|
|
629
|
-
}
|
|
633
|
+
};
|
|
630
634
|
export const vo = a;
|
|
631
635
|
export const vun = a;
|
|
632
636
|
export const wa = b;
|
|
633
637
|
export const wae = a;
|
|
634
|
-
export const wo =
|
|
638
|
+
export const wo = e;
|
|
635
639
|
export const xh = a;
|
|
636
640
|
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
|
-
}
|
|
641
|
+
export const yi = d;
|
|
642
|
+
export const yo = e;
|
|
643
|
+
export const yue = e;
|
|
644
|
+
export const zh = e;
|
|
645
|
+
export const zu = c;
|