Socket
Socket
Sign inDemoInstall

make-plural

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-plural - npm Package Compare versions

Comparing version 7.1.0 to 7.2.0

7

cardinals.d.ts

@@ -25,3 +25,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";

export const bs: (n: number | string) => "one" | "few" | "other";
export const ca: (n: number | string) => "one" | "other";
export const ca: (n: number | string) => "one" | "many" | "other";
export const ce: (n: number | string) => "one" | "other";

@@ -64,3 +64,3 @@ export const ceb: (n: number | string) => "one" | "other";

export const haw: (n: number | string) => "one" | "other";
export const he: (n: number | string) => "one" | "two" | "many" | "other";
export const he: (n: number | string) => "one" | "two" | "other";
export const hi: (n: number | string) => "one" | "other";

@@ -122,3 +122,3 @@ export const hnj: (n: number | string) => "other";

export const ms: (n: number | string) => "other";
export const mt: (n: number | string) => "one" | "few" | "many" | "other";
export const mt: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const my: (n: number | string) => "other";

@@ -208,2 +208,3 @@ export const nah: (n: number | string) => "one" | "other";

export const ve: (n: number | string) => "one" | "other";
export const vec: (n: number | string) => "one" | "many" | "other";
export const vi: (n: number | string) => "other";

@@ -210,0 +211,0 @@ export const vo: (n: number | string) => "one" | "other";

@@ -97,3 +97,8 @@ const a = (n) => n == 1 ? 'one' : 'other';

ca: d,
ca: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
return n == 1 && v0 ? 'one'
: i != 0 && i1000000 == 0 && v0 ? 'many'
: 'other';
},

@@ -231,6 +236,5 @@ ce: a,

he: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
return n == 1 && v0 ? 'one'
const s = String(n).split('.'), i = s[0], v0 = !s[1];
return i == 1 && v0 || i == 0 && !v0 ? 'one'
: i == 2 && v0 ? 'two'
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
: 'other';

@@ -273,4 +277,4 @@ },

is: (n) => {
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';
const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
},

@@ -397,3 +401,3 @@

return n == 1 && v0 ? 'one'
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
: 'other';

@@ -409,3 +413,4 @@ },

return n == 1 ? 'one'
: n == 0 || (n100 >= 2 && n100 <= 10) ? 'few'
: n == 2 ? 'two'
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
: (n100 >= 11 && n100 <= 19) ? 'many'

@@ -495,3 +500,3 @@ : 'other';

return n == 1 && v0 ? 'one'
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
: 'other';

@@ -658,2 +663,9 @@ },

vec: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
return n == 1 && v0 ? 'one'
: i != 0 && i1000000 == 0 && v0 ? 'many'
: 'other';
},
vi: e,

@@ -660,0 +672,0 @@

@@ -9,3 +9,3 @@ export const af: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};

export const asa: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const ast: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const ast: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const az: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","2","5","7","8","11","12","15","17","18","20","22","25","101","1001"],"few":["3","4","13","14","23","24","33","34","43","44","53","54","63","64","73","74","100","1003"],"many":["0","6","16","26","36","40","46","56","106","1006"],"other":["9","10","19","29","30","39","49","59","69","79","109","1000","10000","100000","1000000"]}};

@@ -24,3 +24,3 @@ export const bal: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};

export const bs: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const ca: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","3"],"two":["2"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}};
export const ca: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","3"],"two":["2"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}};
export const ce: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};

@@ -63,3 +63,3 @@ export const ceb: {"cardinal":{"one":["0","3","5","7","8","10","13","15","17","18","20","21","100","1000","10000","100000","1000000","0.0","0.3","0.5","0.7","0.8","1.0","1.3","1.5","1.7","1.8","2.0","2.1","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["4","6","9","14","16","19","24","26","104","1004","0.4","0.6","0.9","1.4","1.6","1.9","2.4","2.6","10.4","100.4","1000.4"]},"ordinal":{}};

export const haw: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const he: {"cardinal":{"one":["1"],"two":["2"],"many":["20","30","40","50","60","70","80","90","100","1000","10000","100000","1000000"],"other":["0","3","17","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const he: {"cardinal":{"one":["1","0.0","0.9","0.00","0.05"],"two":["2"],"other":["0","3","17","100","1000","10000","100000","1000000","1.0","2.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const hi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","5","7","20","100","1000","10000","100000","1000000"]}};

@@ -76,3 +76,3 @@ export const hnj: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

export const io: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.6","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.2","0.9","1.2","1.8","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const it: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};

@@ -119,6 +119,6 @@ export const iu: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"other":["0","3","17","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

export const mn: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
export const mo: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
export const mo: {"cardinal":{"one":["1"],"few":["0","2","16","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
export const mr: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}};
export const ms: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
export const mt: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"few":["0","2","10","102","107","1002","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","102.0","1002.0"],"many":["11","19","111","117","1011","11.0","12.0","13.0","14.0","15.0","16.0","17.0","18.0","111.0","1011.0"],"other":["20","35","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const mt: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["0","3","10","103","109","1003","0.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","103.0","1003.0"],"many":["11","19","111","117","1011","11.0","12.0","13.0","14.0","15.0","16.0","17.0","18.0","111.0","1011.0"],"other":["20","35","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const my: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};

@@ -152,3 +152,3 @@ export const nah: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

export const rm: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const ro: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
export const ro: {"cardinal":{"one":["1"],"few":["0","2","16","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};
export const rof: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

@@ -209,2 +209,3 @@ export const ru: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};

export const ve: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
export const vec: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}};
export const vi: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}};

@@ -211,0 +212,0 @@ export const vo: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

const a = {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
const b = {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
const c = {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
const d = {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
const e = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
const d = {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};
const e = {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};
const f = {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}};

@@ -23,3 +23,3 @@ const g = {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"other":["0","3","17","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}};

asa: c,
ast: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
ast: d,
az: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","2","5","7","8","11","12","15","17","18","20","22","25","101","1001"],"few":["3","4","13","14","23","24","33","34","43","44","53","54","63","64","73","74","100","1003"],"many":["0","6","16","26","36","40","46","56","106","1006"],"other":["9","10","19","29","30","39","49","59","69","79","109","1000","10000","100000","1000000"]}},

@@ -32,9 +32,9 @@ bal: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},

bho: b,
bm: d,
bm: e,
bn: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","5","7","10"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","11","25","100","1000","10000","100000","1000000"]}},
bo: d,
bo: e,
br: {"cardinal":{"one":["1","21","31","41","51","61","81","101","1001","1.0","21.0","31.0","41.0","51.0","61.0","81.0","101.0","1001.0"],"two":["2","22","32","42","52","62","82","102","1002","2.0","22.0","32.0","42.0","52.0","62.0","82.0","102.0","1002.0"],"few":["3","4","9","23","24","29","33","34","39","43","44","49","103","1003","3.0","4.0","9.0","23.0","24.0","29.0","33.0","34.0","103.0","1003.0"],"many":["1000000","1000000.0","1000000.00","1000000.000","1000000.0000"],"other":["0","5","8","10","20","100","1000","10000","100000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0"]},"ordinal":{}},
brx: c,
bs: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
ca: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","3"],"two":["2"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
ca: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","3"],"two":["2"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
ce: a,

@@ -48,7 +48,7 @@ ceb: {"cardinal":{"one":["0","3","5","7","8","10","13","15","17","18","20","21","100","1000","10000","100000","1000000","0.0","0.3","0.5","0.7","0.8","1.0","1.3","1.5","1.7","1.8","2.0","2.1","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["4","6","9","14","16","19","24","26","104","1004","0.4","0.6","0.9","1.4","1.6","1.9","2.4","2.6","10.4","100.4","1000.4"]},"ordinal":{}},

da: {"cardinal":{"one":["1","0.1","1.0","1.6"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.4","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
de: e,
de: d,
doi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
dsb: {"cardinal":{"one":["1","101","201","301","401","501","601","701","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"two":["2","102","202","302","402","502","602","702","1002","0.2","1.2","2.2","3.2","4.2","5.2","6.2","7.2","10.2","100.2","1000.2"],"few":["3","4","103","104","203","204","303","304","403","404","503","504","603","604","703","704","1003","0.3","0.4","1.3","1.4","2.3","2.4","3.3","3.4","4.3","4.4","5.3","5.4","6.3","6.4","7.3","7.4","10.3","100.3","1000.3"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
dv: c,
dz: d,
dz: e,
ee: c,

@@ -59,7 +59,7 @@ el: a,

es: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
et: e,
et: d,
eu: a,
fa: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
ff: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
fi: e,
fi: d,
fil: {"cardinal":{"one":["0","3","5","7","8","10","13","15","17","18","20","21","100","1000","10000","100000","1000000","0.0","0.3","0.5","0.7","0.8","1.0","1.3","1.5","1.7","1.8","2.0","2.1","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["4","6","9","14","16","19","24","26","104","1004","0.4","0.6","0.9","1.4","1.6","1.9","2.4","2.6","10.4","100.4","1000.4"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},

@@ -69,6 +69,6 @@ fo: c,

fur: c,
fy: e,
fy: d,
ga: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["3","6","3.0","4.0","5.0","6.0","3.00","4.00","5.00","6.00","3.000","4.000","5.000","6.000","3.0000","4.0000","5.0000","6.0000"],"many":["7","10","7.0","8.0","9.0","10.0","7.00","8.00","9.00","10.00","7.000","8.000","9.000","10.000","7.0000","8.0000","9.0000","10.0000"],"other":["0","11","25","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
gd: {"cardinal":{"one":["1","11","1.0","11.0","1.00","11.00","1.000","11.000","1.0000"],"two":["2","12","2.0","12.0","2.00","12.00","2.000","12.000","2.0000"],"few":["3","10","13","19","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","13.0","14.0","15.0","16.0","17.0","18.0","19.0","3.00"],"other":["0","20","34","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","11"],"two":["2","12"],"few":["3","13"],"other":["0","4","10","14","21","100","1000","10000","100000","1000000"]}},
gl: e,
gl: d,
gsw: a,

@@ -80,5 +80,5 @@ gu: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","5","7","20","100","1000","10000","100000","1000000"]}},

haw: c,
he: {"cardinal":{"one":["1"],"two":["2"],"many":["20","30","40","50","60","70","80","90","100","1000","10000","100000","1000000"],"other":["0","3","17","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
he: {"cardinal":{"one":["1","0.0","0.9","0.00","0.05"],"two":["2"],"other":["0","3","17","100","1000","10000","100000","1000000","1.0","2.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
hi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"other":["2","17","100","1000","10000","100000","1000000","1.1","2.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"many":["6"],"other":["0","5","7","20","100","1000","10000","100000","1000000"]}},
hnj: d,
hnj: e,
hr: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},

@@ -88,16 +88,16 @@ hsb: {"cardinal":{"one":["1","101","201","301","401","501","601","701","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"two":["2","102","202","302","402","502","602","702","1002","0.2","1.2","2.2","3.2","4.2","5.2","6.2","7.2","10.2","100.2","1000.2"],"few":["3","4","103","104","203","204","303","304","403","404","503","504","603","604","703","704","1003","0.3","0.4","1.3","1.4","2.3","2.4","3.3","3.4","4.3","4.4","5.3","5.4","6.3","6.4","7.3","7.4","10.3","100.3","1000.3"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},

hy: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
ia: e,
ia: d,
id: f,
ig: d,
ii: d,
ig: e,
ii: e,
io: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.6","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
is: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.0","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.2","0.9","1.2","1.8","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
it: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
iu: g,
ja: f,
jbo: d,
jbo: e,
jgo: c,
jmc: c,
jv: d,
jw: d,
jv: e,
jw: e,
ka: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"many":["0","2","16","102","1002"],"other":["21","36","100","1000","10000","100000","1000000"]}},

@@ -107,4 +107,4 @@ kab: {"cardinal":{"one":["0","1","0.0","1.0","1.5"],"other":["2","17","100","1000","10000","100000","1000000","2.0","3.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},

kcg: c,
kde: d,
kea: d,
kde: e,
kea: e,
kk: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["6","9","10","16","19","20","26","29","30","36","39","40","100","1000","10000","100000","1000000"],"other":["0","5","7","8","11","15","17","18","21","101","1001"]}},

@@ -126,3 +126,3 @@ kkj: c,

lij: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","89","800","803"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
lkt: d,
lkt: e,
ln: b,

@@ -138,6 +138,6 @@ lo: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},

mn: a,
mo: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
mo: {"cardinal":{"one":["1"],"few":["0","2","16","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
mr: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"two":["2","3"],"few":["4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
ms: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
mt: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"few":["0","2","10","102","107","1002","0.0","2.0","3.0","4.0","5.0","6.0","7.0","8.0","10.0","102.0","1002.0"],"many":["11","19","111","117","1011","11.0","12.0","13.0","14.0","15.0","16.0","17.0","18.0","111.0","1011.0"],"other":["20","35","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
mt: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"two":["2","2.0","2.00","2.000","2.0000"],"few":["0","3","10","103","109","1003","0.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","103.0","1003.0"],"many":["11","19","111","117","1011","11.0","12.0","13.0","14.0","15.0","16.0","17.0","18.0","111.0","1011.0"],"other":["20","35","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
my: f,

@@ -149,7 +149,7 @@ nah: c,

ne: {"cardinal":{"one":["1","1.0","1.00","1.000","1.0000"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","0.9","1.1","1.6","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","4"],"other":["0","5","19","100","1000","10000","100000","1000000"]}},
nl: e,
nl: d,
nn: c,
nnh: c,
no: a,
nqo: d,
nqo: e,
nr: c,

@@ -162,3 +162,3 @@ nso: b,

os: c,
osa: d,
osa: e,
pa: {"cardinal":{"one":["0","1","0.0","1.0","0.00","1.00","0.000","1.000","0.0000","1.0000"],"other":["2","17","100","1000","10000","100000","1000000","0.1","0.9","1.1","1.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},

@@ -173,7 +173,7 @@ pap: c,

rm: c,
ro: {"cardinal":{"one":["1"],"few":["0","2","16","102","1002","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
ro: {"cardinal":{"one":["1"],"few":["0","2","16","101","1001","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"],"other":["20","35","100","1000","10000","100000","1000000"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},
rof: c,
ru: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002"],"many":["0","5","19","100","1000","10000","100000","1000000"],"other":["0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},
rwk: c,
sah: d,
sah: e,
saq: c,

@@ -187,4 +187,4 @@ sat: g,

seh: c,
ses: d,
sg: d,
ses: e,
sg: e,
sh: {"cardinal":{"one":["1","21","31","41","51","61","71","81","101","1001","0.1","1.1","2.1","3.1","4.1","5.1","6.1","7.1","10.1","100.1","1000.1"],"few":["2","4","22","24","32","34","42","44","52","54","62","102","1002","0.2","0.4","1.2","1.4","2.2","2.4","3.2","3.4","4.2","4.4","5.2","10.2","100.2","1000.2"],"other":["0","5","19","100","1000","10000","100000","1000000","0.0","0.5","1.0","1.5","2.0","2.5","2.7","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"other":["0","15","100","1000","10000","100000","1000000"]}},

@@ -207,5 +207,5 @@ shi: {"cardinal":{"one":["0","1","0.0","1.0","0.00","0.04"],"few":["2","10","2.0","3.0","4.0","5.0","6.0","7.0","8.0","9.0","10.0","2.00","3.00","4.00","5.00","6.00","7.00","8.00"],"other":["11","26","100","1000","10000","100000","1000000","1.1","1.9","2.1","2.7","10.1","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},

st: c,
su: d,
su: e,
sv: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1","2","21","22","31","32","41","42","51","52","61","62","71","72","81","82","101","1001"],"other":["0","3","17","100","1000","10000","100000","1000000"]}},
sw: e,
sw: d,
syr: c,

@@ -221,3 +221,3 @@ ta: a,

tn: c,
to: d,
to: e,
tpi: f,

@@ -230,5 +230,6 @@ tr: a,

und: f,
ur: e,
ur: d,
uz: a,
ve: c,
vec: {"cardinal":{"one":["1"],"many":["1000000"],"other":["0","2","16","100","1000","10000","100000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"many":["8","11","80","800"],"other":["0","7","9","10","12","17","100","1000","10000","100000","1000000"]}},
vi: {"cardinal":{"other":["0","15","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000"]}},

@@ -239,7 +240,7 @@ vo: c,

wae: c,
wo: d,
wo: e,
xh: c,
xog: c,
yi: {"cardinal":{"one":["1"],"other":["0","2","16","100","1000","10000","100000","1000000","0.0","1.0","1.5","10.0","100.0","1000.0","10000.0","100000.0","1000000.0"]},"ordinal":{}},
yo: d,
yo: e,
yue: f,

@@ -246,0 +247,0 @@ zh: f,

@@ -8,2 +8,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";

export const as: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const ast: (n: number | string) => "other";
export const az: (n: number | string) => "one" | "few" | "many" | "other";

@@ -100,2 +101,3 @@ export const bal: (n: number | string) => "one" | "other";

export const uz: (n: number | string) => "other";
export const vec: (n: number | string) => "many" | "other";
export const vi: (n: number | string) => "one" | "other";

@@ -102,0 +104,0 @@ export const yue: (n: number | string) => "other";

@@ -24,2 +24,4 @@ const a = (n) => 'other';

ast: a,
az: (n) => {

@@ -294,2 +296,4 @@ const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);

vec: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
vi: b,

@@ -296,0 +300,0 @@

{
"name": "make-plural",
"version": "7.1.0",
"version": "7.2.0",
"description": "Unicode CLDR pluralization rules as JavaScript functions",

@@ -5,0 +5,0 @@ "keywords": [

@@ -25,3 +25,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";

export const bs: {cardinal:["one","few","other"],ordinal:["other"]};
export const ca: {cardinal:["one","other"],ordinal:["one","two","few","other"]};
export const ca: {cardinal:["one","many","other"],ordinal:["one","two","few","other"]};
export const ce: {cardinal:["one","other"],ordinal:["other"]};

@@ -64,3 +64,3 @@ export const ceb: {cardinal:["one","other"],ordinal:["other"]};

export const haw: {cardinal:["one","other"],ordinal:["other"]};
export const he: {cardinal:["one","two","many","other"],ordinal:["other"]};
export const he: {cardinal:["one","two","other"],ordinal:["other"]};
export const hi: {cardinal:["one","other"],ordinal:["one","two","few","many","other"]};

@@ -122,3 +122,3 @@ export const hnj: {cardinal:["other"],ordinal:["other"]};

export const ms: {cardinal:["other"],ordinal:["one","other"]};
export const mt: {cardinal:["one","few","many","other"],ordinal:["other"]};
export const mt: {cardinal:["one","two","few","many","other"],ordinal:["other"]};
export const my: {cardinal:["other"],ordinal:["other"]};

@@ -208,2 +208,3 @@ export const nah: {cardinal:["one","other"],ordinal:["other"]};

export const ve: {cardinal:["one","other"],ordinal:["other"]};
export const vec: {cardinal:["one","many","other"],ordinal:["many","other"]};
export const vi: {cardinal:["other"],ordinal:["one","other"]};

@@ -210,0 +211,0 @@ export const vo: {cardinal:["one","other"],ordinal:["other"]};

@@ -5,4 +5,3 @@ var z = "zero", o = "one", t = "two", f = "few", m = "many", x = "other";

var c = {cardinal:[x],ordinal:[x]};
var d = {cardinal:[o,f,m,x],ordinal:[x]};
var e = {cardinal:[o,t,x],ordinal:[x]};
var d = {cardinal:[o,t,x],ordinal:[x]};

@@ -37,3 +36,3 @@ (function (root, pluralCategories) {

bs: {cardinal:[o,f,x],ordinal:[x]},
ca: {cardinal:[o,x],ordinal:[o,t,f,x]},
ca: {cardinal:[o,m,x],ordinal:[o,t,f,x]},
ce: a,

@@ -44,3 +43,3 @@ ceb: a,

ckb: a,
cs: d,
cs: {cardinal:[o,f,m,x],ordinal:[x]},
cy: {cardinal:[z,o,t,f,m,x],ordinal:[z,o,t,f,m,x]},

@@ -77,3 +76,3 @@ da: a,

haw: a,
he: {cardinal:[o,t,m,x],ordinal:[x]},
he: d,
hi: {cardinal:[o,x],ordinal:[o,t,f,m,x]},

@@ -92,3 +91,3 @@ hnj: c,

it: {cardinal:[o,m,x],ordinal:[m,x]},
iu: e,
iu: d,
ja: c,

@@ -125,3 +124,3 @@ jbo: c,

lo: {cardinal:[x],ordinal:[o,x]},
lt: d,
lt: {cardinal:[o,f,m,x],ordinal:[x]},
lv: {cardinal:[z,o,x],ordinal:[x]},

@@ -137,6 +136,6 @@ mas: a,

ms: {cardinal:[x],ordinal:[o,x]},
mt: d,
mt: {cardinal:[o,t,f,m,x],ordinal:[x]},
my: c,
nah: a,
naq: e,
naq: d,
nb: a,

@@ -161,3 +160,3 @@ nd: a,

pcm: a,
pl: d,
pl: {cardinal:[o,f,m,x],ordinal:[x]},
prg: {cardinal:[z,o,x],ordinal:[x]},

@@ -170,7 +169,7 @@ ps: a,

rof: a,
ru: d,
ru: {cardinal:[o,f,m,x],ordinal:[x]},
rwk: a,
sah: c,
saq: a,
sat: e,
sat: d,
sc: {cardinal:[o,x],ordinal:[m,x]},

@@ -180,3 +179,3 @@ scn: {cardinal:[o,x],ordinal:[m,x]},

sdh: a,
se: e,
se: d,
seh: a,

@@ -188,9 +187,9 @@ ses: c,

si: a,
sk: d,
sk: {cardinal:[o,f,m,x],ordinal:[x]},
sl: {cardinal:[o,t,f,x],ordinal:[x]},
sma: e,
smi: e,
smj: e,
smn: e,
sms: e,
sma: d,
smi: d,
smj: d,
smn: d,
sms: d,
sn: a,

@@ -227,2 +226,3 @@ so: a,

ve: a,
vec: {cardinal:[o,m,x],ordinal:[m,x]},
vi: {cardinal:[x],ordinal:[o,x]},

@@ -229,0 +229,0 @@ vo: a,

@@ -25,3 +25,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";

export const bs: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const ca: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const ca: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const ce: (n: number | string, ord?: boolean) => "one" | "other";

@@ -64,3 +64,3 @@ export const ceb: (n: number | string, ord?: boolean) => "one" | "other";

export const haw: (n: number | string, ord?: boolean) => "one" | "other";
export const he: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other";
export const he: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const hi: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";

@@ -122,3 +122,3 @@ export const hnj: (n: number | string, ord?: boolean) => "other";

export const ms: (n: number | string, ord?: boolean) => "one" | "other";
export const mt: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const mt: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const my: (n: number | string, ord?: boolean) => "other";

@@ -208,2 +208,3 @@ export const nah: (n: number | string, ord?: boolean) => "one" | "other";

export const ve: (n: number | string, ord?: boolean) => "one" | "other";
export const vec: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const vi: (n: number | string, ord?: boolean) => "one" | "other";

@@ -210,0 +211,0 @@ export const vo: (n: number | string, ord?: boolean) => "one" | "other";

@@ -137,3 +137,3 @@ const a = (n, ord) => {

ca: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
if (ord) return (n == 1 || n == 3) ? 'one'

@@ -143,3 +143,5 @@ : n == 2 ? 'two'

: 'other';
return n == 1 && v0 ? 'one' : 'other';
return n == 1 && v0 ? 'one'
: i != 0 && i1000000 == 0 && v0 ? 'many'
: 'other';
},

@@ -316,7 +318,6 @@

he: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
const s = String(n).split('.'), i = s[0], v0 = !s[1];
if (ord) return 'other';
return n == 1 && v0 ? 'one'
return i == 1 && v0 || i == 0 && !v0 ? 'one'
: i == 2 && v0 ? 'two'
: v0 && (n < 0 || n > 10) && t0 && n10 == 0 ? 'many'
: 'other';

@@ -374,5 +375,5 @@ },

is: (n, ord) => {
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return 'other';
return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';
return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
},

@@ -534,3 +535,3 @@

return n == 1 && v0 ? 'one'
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
: 'other';

@@ -556,3 +557,4 @@ },

return n == 1 ? 'one'
: n == 0 || (n100 >= 2 && n100 <= 10) ? 'few'
: n == 2 ? 'two'
: n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
: (n100 >= 11 && n100 <= 19) ? 'many'

@@ -659,3 +661,3 @@ : 'other';

return n == 1 && v0 ? 'one'
: !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'
: !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
: 'other';

@@ -854,2 +856,10 @@ },

vec: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
return n == 1 && v0 ? 'one'
: i != 0 && i1000000 == 0 && v0 ? 'many'
: 'other';
},
vi: (n, ord) => {

@@ -856,0 +866,0 @@ if (ord) return n == 1 ? 'one' : 'other';

@@ -32,3 +32,3 @@ export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";

export const gu: (start: PluralCategory, end: PluralCategory) => "one" | "other";
export const he: (start: PluralCategory, end: PluralCategory) => "many" | "other";
export const he: (start: PluralCategory, end: PluralCategory) => "other";
export const hi: (start: PluralCategory, end: PluralCategory) => "one" | "other";

@@ -35,0 +35,0 @@ export const hr: (start: PluralCategory, end: PluralCategory) => "one" | "few" | "other";

@@ -75,9 +75,3 @@ const a = (start, end) => "other";

he: (start, end) => (
(start === "many" && end === "many") ? "many"
: (start === "many" && end === "other") ? "many"
: (start === "one" && end === "many") ? "many"
: (start === "other" && end === "many") ? "many"
: "other"
),
he: a,

@@ -84,0 +78,0 @@ hi: c,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc