make-plural 7.4.0 → 7.5.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/plurals.mjs CHANGED
@@ -142,6 +142,13 @@ export const cs = (n, ord) => {
142
142
  : !v0 ? 'many'
143
143
  : 'other';
144
144
  };
145
+ export const csw = b;
146
+ export const cv = (n, ord) => {
147
+ if (ord) return 'other';
148
+ return n == 0 ? 'zero'
149
+ : n == 1 ? 'one'
150
+ : 'other';
151
+ };
145
152
  export const cy = (n, ord) => {
146
153
  if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
147
154
  : n == 1 ? 'one'
@@ -297,6 +304,7 @@ export const hy = (n, ord) => {
297
304
  };
298
305
  export const ia = d;
299
306
  export const id = e;
307
+ export const ie = d;
300
308
  export const ig = e;
301
309
  export const ii = e;
302
310
  export const io = d;
@@ -344,6 +352,20 @@ export const kl = a;
344
352
  export const km = e;
345
353
  export const kn = c;
346
354
  export const ko = e;
355
+ export const kok = (n, ord) => {
356
+ if (ord) return n == 1 ? 'one'
357
+ : (n == 2 || n == 3) ? 'two'
358
+ : n == 4 ? 'few'
359
+ : 'other';
360
+ return n >= 0 && n <= 1 ? 'one' : 'other';
361
+ };
362
+ export const kok_Latn = (n, ord) => {
363
+ if (ord) return n == 1 ? 'one'
364
+ : (n == 2 || n == 3) ? 'two'
365
+ : n == 4 ? 'few'
366
+ : 'other';
367
+ return n >= 0 && n <= 1 ? 'one' : 'other';
368
+ };
347
369
  export const ks = a;
348
370
  export const ksb = a;
349
371
  export const ksh = (n, ord) => {
@@ -381,6 +403,13 @@ export const lij = (n, ord) => {
381
403
  return n == 1 && v0 ? 'one' : 'other';
382
404
  };
383
405
  export const lkt = e;
406
+ export const lld = (n, ord) => {
407
+ const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
408
+ if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
409
+ return n == 1 && v0 ? 'one'
410
+ : i != 0 && i1000000 == 0 && v0 ? 'many'
411
+ : 'other';
412
+ };
384
413
  export const ln = b;
385
414
  export const lo = (n, ord) => {
386
415
  if (ord) return n == 1 ? 'one' : 'other';
@@ -532,9 +561,11 @@ export const sc = (n, ord) => {
532
561
  return n == 1 && v0 ? 'one' : 'other';
533
562
  };
534
563
  export const scn = (n, ord) => {
535
- const s = String(n).split('.'), v0 = !s[1];
536
- if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
537
- return n == 1 && v0 ? 'one' : 'other';
564
+ const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, i1000000 = i.slice(-6);
565
+ if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
566
+ return n == 1 && v0 ? 'one'
567
+ : i != 0 && i1000000 == 0 && v0 ? 'many'
568
+ : 'other';
538
569
  };
539
570
  export const sd = a;
540
571
  export const sdh = a;
@@ -542,6 +573,15 @@ export const se = f;
542
573
  export const seh = a;
543
574
  export const ses = e;
544
575
  export const sg = e;
576
+ export const sgs = (n, ord) => {
577
+ const s = String(n).split('.'), f = s[1] || '', t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
578
+ if (ord) return 'other';
579
+ return n10 == 1 && n100 != 11 ? 'one'
580
+ : n == 2 ? 'two'
581
+ : n != 2 && (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
582
+ : f != 0 ? 'many'
583
+ : 'other';
584
+ };
545
585
  export const sh = (n, ord) => {
546
586
  const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
547
587
  if (ord) return 'other';