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