make-plural 7.0.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/cardinals.d.ts +8 -8
- package/cardinals.js +29 -18
- package/cardinals.mjs +24 -13
- package/examples.d.ts +8 -8
- package/examples.js +8 -8
- package/examples.mjs +8 -8
- package/ordinals.d.ts +3 -3
- package/ordinals.js +6 -6
- package/ordinals.mjs +3 -3
- package/package.json +1 -1
- package/pluralCategories.d.ts +8 -8
- package/pluralCategories.js +51 -51
- package/pluralCategories.mjs +51 -51
- package/plurals.d.ts +7 -7
- package/plurals.js +30 -21
- package/plurals.mjs +25 -16
package/pluralCategories.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
const z = "zero", o = "one", t = "two", f = "few", m = "many", x = "other";
|
|
2
2
|
const a = {cardinal:[o,x],ordinal:[x]};
|
|
3
|
-
const b = {cardinal:[x],ordinal:[x]};
|
|
4
|
-
const c = {cardinal:[
|
|
5
|
-
const d = {cardinal:[o,x],ordinal:[
|
|
3
|
+
const b = {cardinal:[o,x],ordinal:[o,x]};
|
|
4
|
+
const c = {cardinal:[x],ordinal:[x]};
|
|
5
|
+
const d = {cardinal:[o,f,m,x],ordinal:[x]};
|
|
6
6
|
const e = {cardinal:[o,t,x],ordinal:[x]};
|
|
7
7
|
|
|
8
|
-
export const _in = b;
|
|
9
8
|
export const af = a;
|
|
10
9
|
export const ak = a;
|
|
11
10
|
export const am = a;
|
|
@@ -16,14 +15,15 @@ export const as = {cardinal:[o,x],ordinal:[o,t,f,m,x]};
|
|
|
16
15
|
export const asa = a;
|
|
17
16
|
export const ast = a;
|
|
18
17
|
export const az = {cardinal:[o,x],ordinal:[o,f,m,x]};
|
|
18
|
+
export const bal = b;
|
|
19
19
|
export const be = {cardinal:[o,f,m,x],ordinal:[f,x]};
|
|
20
20
|
export const bem = a;
|
|
21
21
|
export const bez = a;
|
|
22
22
|
export const bg = a;
|
|
23
23
|
export const bho = a;
|
|
24
|
-
export const bm =
|
|
24
|
+
export const bm = c;
|
|
25
25
|
export const bn = {cardinal:[o,x],ordinal:[o,t,f,m,x]};
|
|
26
|
-
export const bo =
|
|
26
|
+
export const bo = c;
|
|
27
27
|
export const br = {cardinal:[o,t,f,m,x],ordinal:[x]};
|
|
28
28
|
export const brx = a;
|
|
29
29
|
export const bs = {cardinal:[o,f,x],ordinal:[x]};
|
|
@@ -33,25 +33,25 @@ export const ceb = a;
|
|
|
33
33
|
export const cgg = a;
|
|
34
34
|
export const chr = a;
|
|
35
35
|
export const ckb = a;
|
|
36
|
-
export const cs =
|
|
36
|
+
export const cs = d;
|
|
37
37
|
export const cy = {cardinal:[z,o,t,f,m,x],ordinal:[z,o,t,f,m,x]};
|
|
38
38
|
export const da = a;
|
|
39
39
|
export const de = a;
|
|
40
40
|
export const doi = a;
|
|
41
41
|
export const dsb = {cardinal:[o,t,f,x],ordinal:[x]};
|
|
42
42
|
export const dv = a;
|
|
43
|
-
export const dz =
|
|
43
|
+
export const dz = c;
|
|
44
44
|
export const ee = a;
|
|
45
45
|
export const el = a;
|
|
46
46
|
export const en = {cardinal:[o,x],ordinal:[o,t,f,x]};
|
|
47
47
|
export const eo = a;
|
|
48
|
-
export const es =
|
|
48
|
+
export const es = {cardinal:[o,m,x],ordinal:[x]};
|
|
49
49
|
export const et = a;
|
|
50
50
|
export const eu = a;
|
|
51
51
|
export const fa = a;
|
|
52
52
|
export const ff = a;
|
|
53
53
|
export const fi = a;
|
|
54
|
-
export const fil =
|
|
54
|
+
export const fil = b;
|
|
55
55
|
export const fo = a;
|
|
56
56
|
export const fr = {cardinal:[o,m,x],ordinal:[o,x]};
|
|
57
57
|
export const fur = a;
|
|
@@ -67,38 +67,37 @@ export const ha = a;
|
|
|
67
67
|
export const haw = a;
|
|
68
68
|
export const he = {cardinal:[o,t,m,x],ordinal:[x]};
|
|
69
69
|
export const hi = {cardinal:[o,x],ordinal:[o,t,f,m,x]};
|
|
70
|
+
export const hnj = c;
|
|
70
71
|
export const hr = {cardinal:[o,f,x],ordinal:[x]};
|
|
71
72
|
export const hsb = {cardinal:[o,t,f,x],ordinal:[x]};
|
|
72
|
-
export const hu =
|
|
73
|
-
export const hy =
|
|
73
|
+
export const hu = b;
|
|
74
|
+
export const hy = b;
|
|
74
75
|
export const ia = a;
|
|
75
|
-
export const id =
|
|
76
|
-
export const ig =
|
|
77
|
-
export const ii =
|
|
76
|
+
export const id = c;
|
|
77
|
+
export const ig = c;
|
|
78
|
+
export const ii = c;
|
|
78
79
|
export const io = a;
|
|
79
80
|
export const is = a;
|
|
80
|
-
export const it = {cardinal:[o,x],ordinal:[m,x]};
|
|
81
|
+
export const it = {cardinal:[o,m,x],ordinal:[m,x]};
|
|
81
82
|
export const iu = e;
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const jbo = b;
|
|
83
|
+
export const ja = c;
|
|
84
|
+
export const jbo = c;
|
|
85
85
|
export const jgo = a;
|
|
86
|
-
export const ji = a;
|
|
87
86
|
export const jmc = a;
|
|
88
|
-
export const jv =
|
|
89
|
-
export const jw =
|
|
87
|
+
export const jv = c;
|
|
88
|
+
export const jw = c;
|
|
90
89
|
export const ka = {cardinal:[o,x],ordinal:[o,m,x]};
|
|
91
90
|
export const kab = a;
|
|
92
91
|
export const kaj = a;
|
|
93
92
|
export const kcg = a;
|
|
94
|
-
export const kde =
|
|
95
|
-
export const kea =
|
|
93
|
+
export const kde = c;
|
|
94
|
+
export const kea = c;
|
|
96
95
|
export const kk = {cardinal:[o,x],ordinal:[m,x]};
|
|
97
96
|
export const kkj = a;
|
|
98
97
|
export const kl = a;
|
|
99
|
-
export const km =
|
|
98
|
+
export const km = c;
|
|
100
99
|
export const kn = a;
|
|
101
|
-
export const ko =
|
|
100
|
+
export const ko = c;
|
|
102
101
|
export const ks = a;
|
|
103
102
|
export const ksb = a;
|
|
104
103
|
export const ksh = {cardinal:[z,o,x],ordinal:[x]};
|
|
@@ -109,10 +108,10 @@ export const lag = {cardinal:[z,o,x],ordinal:[x]};
|
|
|
109
108
|
export const lb = a;
|
|
110
109
|
export const lg = a;
|
|
111
110
|
export const lij = {cardinal:[o,x],ordinal:[m,x]};
|
|
112
|
-
export const lkt =
|
|
111
|
+
export const lkt = c;
|
|
113
112
|
export const ln = a;
|
|
114
113
|
export const lo = {cardinal:[x],ordinal:[o,x]};
|
|
115
|
-
export const lt =
|
|
114
|
+
export const lt = d;
|
|
116
115
|
export const lv = {cardinal:[z,o,x],ordinal:[x]};
|
|
117
116
|
export const mas = a;
|
|
118
117
|
export const mg = a;
|
|
@@ -123,18 +122,18 @@ export const mn = a;
|
|
|
123
122
|
export const mo = {cardinal:[o,f,x],ordinal:[o,x]};
|
|
124
123
|
export const mr = {cardinal:[o,x],ordinal:[o,t,f,x]};
|
|
125
124
|
export const ms = {cardinal:[x],ordinal:[o,x]};
|
|
126
|
-
export const mt =
|
|
127
|
-
export const my =
|
|
125
|
+
export const mt = d;
|
|
126
|
+
export const my = c;
|
|
128
127
|
export const nah = a;
|
|
129
128
|
export const naq = e;
|
|
130
129
|
export const nb = a;
|
|
131
130
|
export const nd = a;
|
|
132
|
-
export const ne =
|
|
131
|
+
export const ne = b;
|
|
133
132
|
export const nl = a;
|
|
134
133
|
export const nn = a;
|
|
135
134
|
export const nnh = a;
|
|
136
135
|
export const no = a;
|
|
137
|
-
export const nqo =
|
|
136
|
+
export const nqo = c;
|
|
138
137
|
export const nr = a;
|
|
139
138
|
export const nso = a;
|
|
140
139
|
export const ny = a;
|
|
@@ -142,22 +141,21 @@ export const nyn = a;
|
|
|
142
141
|
export const om = a;
|
|
143
142
|
export const or = {cardinal:[o,x],ordinal:[o,t,f,m,x]};
|
|
144
143
|
export const os = a;
|
|
145
|
-
export const osa =
|
|
144
|
+
export const osa = c;
|
|
146
145
|
export const pa = a;
|
|
147
146
|
export const pap = a;
|
|
148
147
|
export const pcm = a;
|
|
149
|
-
export const pl =
|
|
148
|
+
export const pl = d;
|
|
150
149
|
export const prg = {cardinal:[z,o,x],ordinal:[x]};
|
|
151
150
|
export const ps = a;
|
|
152
|
-
export const pt =
|
|
153
|
-
export const pt_PT =
|
|
151
|
+
export const pt = {cardinal:[o,m,x],ordinal:[x]};
|
|
152
|
+
export const pt_PT = {cardinal:[o,m,x],ordinal:[x]};
|
|
154
153
|
export const rm = a;
|
|
155
154
|
export const ro = {cardinal:[o,f,x],ordinal:[o,x]};
|
|
156
155
|
export const rof = a;
|
|
157
|
-
export const
|
|
158
|
-
export const ru = c;
|
|
156
|
+
export const ru = d;
|
|
159
157
|
export const rwk = a;
|
|
160
|
-
export const sah =
|
|
158
|
+
export const sah = c;
|
|
161
159
|
export const saq = a;
|
|
162
160
|
export const sat = e;
|
|
163
161
|
export const sc = {cardinal:[o,x],ordinal:[m,x]};
|
|
@@ -166,12 +164,12 @@ export const sd = a;
|
|
|
166
164
|
export const sdh = a;
|
|
167
165
|
export const se = e;
|
|
168
166
|
export const seh = a;
|
|
169
|
-
export const ses =
|
|
170
|
-
export const sg =
|
|
167
|
+
export const ses = c;
|
|
168
|
+
export const sg = c;
|
|
171
169
|
export const sh = {cardinal:[o,f,x],ordinal:[x]};
|
|
172
170
|
export const shi = {cardinal:[o,f,x],ordinal:[x]};
|
|
173
171
|
export const si = a;
|
|
174
|
-
export const sk =
|
|
172
|
+
export const sk = d;
|
|
175
173
|
export const sl = {cardinal:[o,t,f,x],ordinal:[x]};
|
|
176
174
|
export const sma = e;
|
|
177
175
|
export const smi = e;
|
|
@@ -185,25 +183,27 @@ export const sr = {cardinal:[o,f,x],ordinal:[x]};
|
|
|
185
183
|
export const ss = a;
|
|
186
184
|
export const ssy = a;
|
|
187
185
|
export const st = a;
|
|
188
|
-
export const su =
|
|
189
|
-
export const sv =
|
|
186
|
+
export const su = c;
|
|
187
|
+
export const sv = b;
|
|
190
188
|
export const sw = a;
|
|
191
189
|
export const syr = a;
|
|
192
190
|
export const ta = a;
|
|
193
191
|
export const te = a;
|
|
194
192
|
export const teo = a;
|
|
195
|
-
export const th =
|
|
193
|
+
export const th = c;
|
|
196
194
|
export const ti = a;
|
|
197
195
|
export const tig = a;
|
|
198
196
|
export const tk = {cardinal:[o,x],ordinal:[f,x]};
|
|
199
|
-
export const tl =
|
|
197
|
+
export const tl = b;
|
|
200
198
|
export const tn = a;
|
|
201
|
-
export const to =
|
|
199
|
+
export const to = c;
|
|
200
|
+
export const tpi = c;
|
|
202
201
|
export const tr = a;
|
|
203
202
|
export const ts = a;
|
|
204
203
|
export const tzm = a;
|
|
205
204
|
export const ug = a;
|
|
206
205
|
export const uk = {cardinal:[o,f,m,x],ordinal:[f,x]};
|
|
206
|
+
export const und = c;
|
|
207
207
|
export const ur = a;
|
|
208
208
|
export const uz = a;
|
|
209
209
|
export const ve = a;
|
|
@@ -212,11 +212,11 @@ export const vo = a;
|
|
|
212
212
|
export const vun = a;
|
|
213
213
|
export const wa = a;
|
|
214
214
|
export const wae = a;
|
|
215
|
-
export const wo =
|
|
215
|
+
export const wo = c;
|
|
216
216
|
export const xh = a;
|
|
217
217
|
export const xog = a;
|
|
218
218
|
export const yi = a;
|
|
219
|
-
export const yo =
|
|
220
|
-
export const yue =
|
|
221
|
-
export const zh =
|
|
219
|
+
export const yo = c;
|
|
220
|
+
export const yue = c;
|
|
221
|
+
export const zh = c;
|
|
222
222
|
export const zu = a;
|
package/plurals.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export const as: (n: number | string, ord?: boolean) => "one" | "two" | "few" |
|
|
|
10
10
|
export const asa: (n: number | string, ord?: boolean) => "one" | "other";
|
|
11
11
|
export const ast: (n: number | string, ord?: boolean) => "one" | "other";
|
|
12
12
|
export const az: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
|
|
13
|
+
export const bal: (n: number | string, ord?: boolean) => "one" | "other";
|
|
13
14
|
export const be: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
|
|
14
15
|
export const bem: (n: number | string, ord?: boolean) => "one" | "other";
|
|
15
16
|
export const bez: (n: number | string, ord?: boolean) => "one" | "other";
|
|
@@ -39,7 +40,7 @@ export const ee: (n: number | string, ord?: boolean) => "one" | "other";
|
|
|
39
40
|
export const el: (n: number | string, ord?: boolean) => "one" | "other";
|
|
40
41
|
export const en: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
|
|
41
42
|
export const eo: (n: number | string, ord?: boolean) => "one" | "other";
|
|
42
|
-
export const es: (n: number | string, ord?: boolean) => "one" | "other";
|
|
43
|
+
export const es: (n: number | string, ord?: boolean) => "one" | "many" | "other";
|
|
43
44
|
export const et: (n: number | string, ord?: boolean) => "one" | "other";
|
|
44
45
|
export const eu: (n: number | string, ord?: boolean) => "one" | "other";
|
|
45
46
|
export const fa: (n: number | string, ord?: boolean) => "one" | "other";
|
|
@@ -61,6 +62,7 @@ export const ha: (n: number | string, ord?: boolean) => "one" | "other";
|
|
|
61
62
|
export const haw: (n: number | string, ord?: boolean) => "one" | "other";
|
|
62
63
|
export const he: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other";
|
|
63
64
|
export const hi: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
|
|
65
|
+
export const hnj: (n: number | string, ord?: boolean) => "other";
|
|
64
66
|
export const hr: (n: number | string, ord?: boolean) => "one" | "few" | "other";
|
|
65
67
|
export const hsb: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
|
|
66
68
|
export const hu: (n: number | string, ord?: boolean) => "one" | "other";
|
|
@@ -69,16 +71,13 @@ export const ia: (n: number | string, ord?: boolean) => "one" | "other";
|
|
|
69
71
|
export const id: (n: number | string, ord?: boolean) => "other";
|
|
70
72
|
export const ig: (n: number | string, ord?: boolean) => "other";
|
|
71
73
|
export const ii: (n: number | string, ord?: boolean) => "other";
|
|
72
|
-
export const _in: (n: number | string, ord?: boolean) => "other";
|
|
73
74
|
export const io: (n: number | string, ord?: boolean) => "one" | "other";
|
|
74
75
|
export const is: (n: number | string, ord?: boolean) => "one" | "other";
|
|
75
76
|
export const it: (n: number | string, ord?: boolean) => "one" | "many" | "other";
|
|
76
77
|
export const iu: (n: number | string, ord?: boolean) => "one" | "two" | "other";
|
|
77
|
-
export const iw: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other";
|
|
78
78
|
export const ja: (n: number | string, ord?: boolean) => "other";
|
|
79
79
|
export const jbo: (n: number | string, ord?: boolean) => "other";
|
|
80
80
|
export const jgo: (n: number | string, ord?: boolean) => "one" | "other";
|
|
81
|
-
export const ji: (n: number | string, ord?: boolean) => "one" | "other";
|
|
82
81
|
export const jmc: (n: number | string, ord?: boolean) => "one" | "other";
|
|
83
82
|
export const jv: (n: number | string, ord?: boolean) => "other";
|
|
84
83
|
export const jw: (n: number | string, ord?: boolean) => "other";
|
|
@@ -144,12 +143,11 @@ export const pcm: (n: number | string, ord?: boolean) => "one" | "other";
|
|
|
144
143
|
export const pl: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
|
|
145
144
|
export const prg: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
|
|
146
145
|
export const ps: (n: number | string, ord?: boolean) => "one" | "other";
|
|
147
|
-
export const pt: (n: number | string, ord?: boolean) => "one" | "other";
|
|
148
|
-
export const pt_PT: (n: number | string, ord?: boolean) => "one" | "other";
|
|
146
|
+
export const pt: (n: number | string, ord?: boolean) => "one" | "many" | "other";
|
|
147
|
+
export const pt_PT: (n: number | string, ord?: boolean) => "one" | "many" | "other";
|
|
149
148
|
export const rm: (n: number | string, ord?: boolean) => "one" | "other";
|
|
150
149
|
export const ro: (n: number | string, ord?: boolean) => "one" | "few" | "other";
|
|
151
150
|
export const rof: (n: number | string, ord?: boolean) => "one" | "other";
|
|
152
|
-
export const root: (n: number | string, ord?: boolean) => "other";
|
|
153
151
|
export const ru: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
|
|
154
152
|
export const rwk: (n: number | string, ord?: boolean) => "one" | "other";
|
|
155
153
|
export const sah: (n: number | string, ord?: boolean) => "other";
|
|
@@ -194,11 +192,13 @@ export const tk: (n: number | string, ord?: boolean) => "one" | "few" | "other";
|
|
|
194
192
|
export const tl: (n: number | string, ord?: boolean) => "one" | "other";
|
|
195
193
|
export const tn: (n: number | string, ord?: boolean) => "one" | "other";
|
|
196
194
|
export const to: (n: number | string, ord?: boolean) => "other";
|
|
195
|
+
export const tpi: (n: number | string, ord?: boolean) => "other";
|
|
197
196
|
export const tr: (n: number | string, ord?: boolean) => "one" | "other";
|
|
198
197
|
export const ts: (n: number | string, ord?: boolean) => "one" | "other";
|
|
199
198
|
export const tzm: (n: number | string, ord?: boolean) => "one" | "other";
|
|
200
199
|
export const ug: (n: number | string, ord?: boolean) => "one" | "other";
|
|
201
200
|
export const uk: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
|
|
201
|
+
export const und: (n: number | string, ord?: boolean) => "other";
|
|
202
202
|
export const ur: (n: number | string, ord?: boolean) => "one" | "other";
|
|
203
203
|
export const uz: (n: number | string, ord?: boolean) => "one" | "other";
|
|
204
204
|
export const ve: (n: number | string, ord?: boolean) => "one" | "other";
|
package/plurals.js
CHANGED
|
@@ -29,8 +29,6 @@ const f = (n, ord) => {
|
|
|
29
29
|
else if (typeof exports === 'object') module.exports = plurals;
|
|
30
30
|
else root.plurals = plurals;
|
|
31
31
|
}(this, {
|
|
32
|
-
_in: e,
|
|
33
|
-
|
|
34
32
|
af: a,
|
|
35
33
|
|
|
36
34
|
ak: b,
|
|
@@ -83,6 +81,8 @@ az: (n, ord) => {
|
|
|
83
81
|
return n == 1 ? 'one' : 'other';
|
|
84
82
|
},
|
|
85
83
|
|
|
84
|
+
bal: (n, ord) => n == 1 ? 'one' : 'other',
|
|
85
|
+
|
|
86
86
|
be: (n, ord) => {
|
|
87
87
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
88
88
|
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
@@ -218,7 +218,13 @@ en: (n, ord) => {
|
|
|
218
218
|
|
|
219
219
|
eo: a,
|
|
220
220
|
|
|
221
|
-
es:
|
|
221
|
+
es: (n, ord) => {
|
|
222
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
223
|
+
if (ord) return 'other';
|
|
224
|
+
return n == 1 ? 'one'
|
|
225
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
226
|
+
: 'other';
|
|
227
|
+
},
|
|
222
228
|
|
|
223
229
|
et: d,
|
|
224
230
|
|
|
@@ -322,6 +328,8 @@ hi: (n, ord) => {
|
|
|
322
328
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
323
329
|
},
|
|
324
330
|
|
|
331
|
+
hnj: e,
|
|
332
|
+
|
|
325
333
|
hr: (n, ord) => {
|
|
326
334
|
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);
|
|
327
335
|
if (ord) return 'other';
|
|
@@ -366,30 +374,21 @@ is: (n, ord) => {
|
|
|
366
374
|
},
|
|
367
375
|
|
|
368
376
|
it: (n, ord) => {
|
|
369
|
-
const s = String(n).split('.'), v0 = !s[1];
|
|
377
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
370
378
|
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
|
|
371
|
-
return n == 1 && v0 ? 'one' : 'other';
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
iu: f,
|
|
375
|
-
|
|
376
|
-
iw: (n, ord) => {
|
|
377
|
-
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
|
|
378
|
-
if (ord) return 'other';
|
|
379
379
|
return n == 1 && v0 ? 'one'
|
|
380
|
-
: i ==
|
|
381
|
-
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
|
|
380
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
382
381
|
: 'other';
|
|
383
382
|
},
|
|
384
383
|
|
|
384
|
+
iu: f,
|
|
385
|
+
|
|
385
386
|
ja: e,
|
|
386
387
|
|
|
387
388
|
jbo: e,
|
|
388
389
|
|
|
389
390
|
jgo: a,
|
|
390
391
|
|
|
391
|
-
ji: d,
|
|
392
|
-
|
|
393
392
|
jmc: a,
|
|
394
393
|
|
|
395
394
|
jv: e,
|
|
@@ -630,12 +629,20 @@ prg: (n, ord) => {
|
|
|
630
629
|
ps: a,
|
|
631
630
|
|
|
632
631
|
pt: (n, ord) => {
|
|
633
|
-
const s = String(n).split('.'), i = s[0];
|
|
632
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
634
633
|
if (ord) return 'other';
|
|
635
|
-
return (i == 0 || i == 1) ? 'one'
|
|
634
|
+
return (i == 0 || i == 1) ? 'one'
|
|
635
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
636
|
+
: 'other';
|
|
636
637
|
},
|
|
637
638
|
|
|
638
|
-
pt_PT:
|
|
639
|
+
pt_PT: (n, ord) => {
|
|
640
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
641
|
+
if (ord) return 'other';
|
|
642
|
+
return n == 1 && v0 ? 'one'
|
|
643
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
644
|
+
: 'other';
|
|
645
|
+
},
|
|
639
646
|
|
|
640
647
|
rm: a,
|
|
641
648
|
|
|
@@ -649,8 +656,6 @@ ro: (n, ord) => {
|
|
|
649
656
|
|
|
650
657
|
rof: a,
|
|
651
658
|
|
|
652
|
-
root: e,
|
|
653
|
-
|
|
654
659
|
ru: (n, ord) => {
|
|
655
660
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
656
661
|
if (ord) return 'other';
|
|
@@ -808,6 +813,8 @@ tn: a,
|
|
|
808
813
|
|
|
809
814
|
to: e,
|
|
810
815
|
|
|
816
|
+
tpi: e,
|
|
817
|
+
|
|
811
818
|
tr: a,
|
|
812
819
|
|
|
813
820
|
ts: a,
|
|
@@ -829,6 +836,8 @@ uk: (n, ord) => {
|
|
|
829
836
|
: 'other';
|
|
830
837
|
},
|
|
831
838
|
|
|
839
|
+
und: e,
|
|
840
|
+
|
|
832
841
|
ur: d,
|
|
833
842
|
|
|
834
843
|
uz: a,
|
package/plurals.mjs
CHANGED
|
@@ -23,7 +23,6 @@ const f = (n, ord) => {
|
|
|
23
23
|
: 'other';
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
export const _in = e;
|
|
27
26
|
export const af = a;
|
|
28
27
|
export const ak = b;
|
|
29
28
|
export const am = c;
|
|
@@ -66,6 +65,7 @@ export const az = (n, ord) => {
|
|
|
66
65
|
: 'other';
|
|
67
66
|
return n == 1 ? 'one' : 'other';
|
|
68
67
|
};
|
|
68
|
+
export const bal = (n, ord) => n == 1 ? 'one' : 'other';
|
|
69
69
|
export const be = (n, ord) => {
|
|
70
70
|
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
|
|
71
71
|
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
|
|
@@ -172,7 +172,13 @@ export const en = (n, ord) => {
|
|
|
172
172
|
return n == 1 && v0 ? 'one' : 'other';
|
|
173
173
|
};
|
|
174
174
|
export const eo = a;
|
|
175
|
-
export const es =
|
|
175
|
+
export const es = (n, ord) => {
|
|
176
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
177
|
+
if (ord) return 'other';
|
|
178
|
+
return n == 1 ? 'one'
|
|
179
|
+
: i != 0 && i1000000 == 0 && v0 ? 'many'
|
|
180
|
+
: 'other';
|
|
181
|
+
};
|
|
176
182
|
export const et = d;
|
|
177
183
|
export const eu = a;
|
|
178
184
|
export const fa = c;
|
|
@@ -254,6 +260,7 @@ export const hi = (n, ord) => {
|
|
|
254
260
|
: 'other';
|
|
255
261
|
return n >= 0 && n <= 1 ? 'one' : 'other';
|
|
256
262
|
};
|
|
263
|
+
export const hnj = e;
|
|
257
264
|
export const hr = (n, ord) => {
|
|
258
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';
|
|
@@ -288,23 +295,16 @@ export const is = (n, ord) => {
|
|
|
288
295
|
return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';
|
|
289
296
|
};
|
|
290
297
|
export const it = (n, ord) => {
|
|
291
|
-
const s = String(n).split('.'), v0 = !s[1];
|
|
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 = 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
|
-
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
303
|
};
|
|
304
|
+
export const iu = f;
|
|
304
305
|
export const ja = e;
|
|
305
306
|
export const jbo = e;
|
|
306
307
|
export const jgo = a;
|
|
307
|
-
export const ji = d;
|
|
308
308
|
export const jmc = a;
|
|
309
309
|
export const jv = e;
|
|
310
310
|
export const jw = e;
|
|
@@ -480,11 +480,19 @@ export const prg = (n, ord) => {
|
|
|
480
480
|
};
|
|
481
481
|
export const ps = a;
|
|
482
482
|
export const pt = (n, ord) => {
|
|
483
|
-
const s = String(n).split('.'), i = s[0];
|
|
483
|
+
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
|
|
484
484
|
if (ord) return 'other';
|
|
485
|
-
return (i == 0 || i == 1) ? 'one'
|
|
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';
|
|
486
495
|
};
|
|
487
|
-
export const pt_PT = d;
|
|
488
496
|
export const rm = a;
|
|
489
497
|
export const ro = (n, ord) => {
|
|
490
498
|
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
|
|
@@ -494,7 +502,6 @@ export const ro = (n, ord) => {
|
|
|
494
502
|
: 'other';
|
|
495
503
|
};
|
|
496
504
|
export const rof = a;
|
|
497
|
-
export const root = e;
|
|
498
505
|
export const ru = (n, ord) => {
|
|
499
506
|
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
|
|
500
507
|
if (ord) return 'other';
|
|
@@ -608,6 +615,7 @@ export const tl = (n, ord) => {
|
|
|
608
615
|
};
|
|
609
616
|
export const tn = a;
|
|
610
617
|
export const to = e;
|
|
618
|
+
export const tpi = e;
|
|
611
619
|
export const tr = a;
|
|
612
620
|
export const ts = a;
|
|
613
621
|
export const tzm = (n, ord) => {
|
|
@@ -624,6 +632,7 @@ export const uk = (n, ord) => {
|
|
|
624
632
|
: v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
|
|
625
633
|
: 'other';
|
|
626
634
|
};
|
|
635
|
+
export const und = e;
|
|
627
636
|
export const ur = d;
|
|
628
637
|
export const uz = a;
|
|
629
638
|
export const ve = a;
|