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 6.2.2 to 7.0.0

examples.d.ts

426

cardinals.d.ts
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export function af(n: number | string): "one" | "other";
export function ak(n: number | string): "one" | "other";
export function am(n: number | string): "one" | "other";
export function an(n: number | string): "one" | "other";
export function ar(n: number | string): "zero" | "one" | "two" | "few" | "many" | "other";
export function ars(n: number | string): "zero" | "one" | "two" | "few" | "many" | "other";
export function as(n: number | string): "one" | "other";
export function asa(n: number | string): "one" | "other";
export function ast(n: number | string): "one" | "other";
export function az(n: number | string): "one" | "other";
export function be(n: number | string): "one" | "few" | "many" | "other";
export function bem(n: number | string): "one" | "other";
export function bez(n: number | string): "one" | "other";
export function bg(n: number | string): "one" | "other";
export function bho(n: number | string): "one" | "other";
export function bm(n: number | string): "other";
export function bn(n: number | string): "one" | "other";
export function bo(n: number | string): "other";
export function br(n: number | string): "one" | "two" | "few" | "many" | "other";
export function brx(n: number | string): "one" | "other";
export function bs(n: number | string): "one" | "few" | "other";
export function ca(n: number | string): "one" | "other";
export function ce(n: number | string): "one" | "other";
export function ceb(n: number | string): "one" | "other";
export function cgg(n: number | string): "one" | "other";
export function chr(n: number | string): "one" | "other";
export function ckb(n: number | string): "one" | "other";
export function cs(n: number | string): "one" | "few" | "many" | "other";
export function cy(n: number | string): "zero" | "one" | "two" | "few" | "many" | "other";
export function da(n: number | string): "one" | "other";
export function de(n: number | string): "one" | "other";
export function dsb(n: number | string): "one" | "two" | "few" | "other";
export function dv(n: number | string): "one" | "other";
export function dz(n: number | string): "other";
export function ee(n: number | string): "one" | "other";
export function el(n: number | string): "one" | "other";
export function en(n: number | string): "one" | "other";
export function eo(n: number | string): "one" | "other";
export function es(n: number | string): "one" | "other";
export function et(n: number | string): "one" | "other";
export function eu(n: number | string): "one" | "other";
export function fa(n: number | string): "one" | "other";
export function ff(n: number | string): "one" | "other";
export function fi(n: number | string): "one" | "other";
export function fil(n: number | string): "one" | "other";
export function fo(n: number | string): "one" | "other";
export function fr(n: number | string): "one" | "other";
export function fur(n: number | string): "one" | "other";
export function fy(n: number | string): "one" | "other";
export function ga(n: number | string): "one" | "two" | "few" | "many" | "other";
export function gd(n: number | string): "one" | "two" | "few" | "other";
export function gl(n: number | string): "one" | "other";
export function gsw(n: number | string): "one" | "other";
export function gu(n: number | string): "one" | "other";
export function guw(n: number | string): "one" | "other";
export function gv(n: number | string): "one" | "two" | "few" | "many" | "other";
export function ha(n: number | string): "one" | "other";
export function haw(n: number | string): "one" | "other";
export function he(n: number | string): "one" | "two" | "many" | "other";
export function hi(n: number | string): "one" | "other";
export function hr(n: number | string): "one" | "few" | "other";
export function hsb(n: number | string): "one" | "two" | "few" | "other";
export function hu(n: number | string): "one" | "other";
export function hy(n: number | string): "one" | "other";
export function ia(n: number | string): "one" | "other";
export function id(n: number | string): "other";
export function ig(n: number | string): "other";
export function ii(n: number | string): "other";
export function _in(n: number | string): "other";
export function io(n: number | string): "one" | "other";
export function is(n: number | string): "one" | "other";
export function it(n: number | string): "one" | "other";
export function iu(n: number | string): "one" | "two" | "other";
export function iw(n: number | string): "one" | "two" | "many" | "other";
export function ja(n: number | string): "other";
export function jbo(n: number | string): "other";
export function jgo(n: number | string): "one" | "other";
export function ji(n: number | string): "one" | "other";
export function jmc(n: number | string): "one" | "other";
export function jv(n: number | string): "other";
export function jw(n: number | string): "other";
export function ka(n: number | string): "one" | "other";
export function kab(n: number | string): "one" | "other";
export function kaj(n: number | string): "one" | "other";
export function kcg(n: number | string): "one" | "other";
export function kde(n: number | string): "other";
export function kea(n: number | string): "other";
export function kk(n: number | string): "one" | "other";
export function kkj(n: number | string): "one" | "other";
export function kl(n: number | string): "one" | "other";
export function km(n: number | string): "other";
export function kn(n: number | string): "one" | "other";
export function ko(n: number | string): "other";
export function ks(n: number | string): "one" | "other";
export function ksb(n: number | string): "one" | "other";
export function ksh(n: number | string): "zero" | "one" | "other";
export function ku(n: number | string): "one" | "other";
export function kw(n: number | string): "zero" | "one" | "two" | "few" | "many" | "other";
export function ky(n: number | string): "one" | "other";
export function lag(n: number | string): "zero" | "one" | "other";
export function lb(n: number | string): "one" | "other";
export function lg(n: number | string): "one" | "other";
export function lkt(n: number | string): "other";
export function ln(n: number | string): "one" | "other";
export function lo(n: number | string): "other";
export function lt(n: number | string): "one" | "few" | "many" | "other";
export function lv(n: number | string): "zero" | "one" | "other";
export function mas(n: number | string): "one" | "other";
export function mg(n: number | string): "one" | "other";
export function mgo(n: number | string): "one" | "other";
export function mk(n: number | string): "one" | "other";
export function ml(n: number | string): "one" | "other";
export function mn(n: number | string): "one" | "other";
export function mo(n: number | string): "one" | "few" | "other";
export function mr(n: number | string): "one" | "other";
export function ms(n: number | string): "other";
export function mt(n: number | string): "one" | "few" | "many" | "other";
export function my(n: number | string): "other";
export function nah(n: number | string): "one" | "other";
export function naq(n: number | string): "one" | "two" | "other";
export function nb(n: number | string): "one" | "other";
export function nd(n: number | string): "one" | "other";
export function ne(n: number | string): "one" | "other";
export function nl(n: number | string): "one" | "other";
export function nn(n: number | string): "one" | "other";
export function nnh(n: number | string): "one" | "other";
export function no(n: number | string): "one" | "other";
export function nqo(n: number | string): "other";
export function nr(n: number | string): "one" | "other";
export function nso(n: number | string): "one" | "other";
export function ny(n: number | string): "one" | "other";
export function nyn(n: number | string): "one" | "other";
export function om(n: number | string): "one" | "other";
export function or(n: number | string): "one" | "other";
export function os(n: number | string): "one" | "other";
export function osa(n: number | string): "other";
export function pa(n: number | string): "one" | "other";
export function pap(n: number | string): "one" | "other";
export function pl(n: number | string): "one" | "few" | "many" | "other";
export function prg(n: number | string): "zero" | "one" | "other";
export function ps(n: number | string): "one" | "other";
export function pt(n: number | string): "one" | "other";
export function pt_PT(n: number | string): "one" | "other";
export function rm(n: number | string): "one" | "other";
export function ro(n: number | string): "one" | "few" | "other";
export function rof(n: number | string): "one" | "other";
export function root(n: number | string): "other";
export function ru(n: number | string): "one" | "few" | "many" | "other";
export function rwk(n: number | string): "one" | "other";
export function sah(n: number | string): "other";
export function saq(n: number | string): "one" | "other";
export function sc(n: number | string): "one" | "other";
export function scn(n: number | string): "one" | "other";
export function sd(n: number | string): "one" | "other";
export function sdh(n: number | string): "one" | "other";
export function se(n: number | string): "one" | "two" | "other";
export function seh(n: number | string): "one" | "other";
export function ses(n: number | string): "other";
export function sg(n: number | string): "other";
export function sh(n: number | string): "one" | "few" | "other";
export function shi(n: number | string): "one" | "few" | "other";
export function si(n: number | string): "one" | "other";
export function sk(n: number | string): "one" | "few" | "many" | "other";
export function sl(n: number | string): "one" | "two" | "few" | "other";
export function sma(n: number | string): "one" | "two" | "other";
export function smi(n: number | string): "one" | "two" | "other";
export function smj(n: number | string): "one" | "two" | "other";
export function smn(n: number | string): "one" | "two" | "other";
export function sms(n: number | string): "one" | "two" | "other";
export function sn(n: number | string): "one" | "other";
export function so(n: number | string): "one" | "other";
export function sq(n: number | string): "one" | "other";
export function sr(n: number | string): "one" | "few" | "other";
export function ss(n: number | string): "one" | "other";
export function ssy(n: number | string): "one" | "other";
export function st(n: number | string): "one" | "other";
export function su(n: number | string): "other";
export function sv(n: number | string): "one" | "other";
export function sw(n: number | string): "one" | "other";
export function syr(n: number | string): "one" | "other";
export function ta(n: number | string): "one" | "other";
export function te(n: number | string): "one" | "other";
export function teo(n: number | string): "one" | "other";
export function th(n: number | string): "other";
export function ti(n: number | string): "one" | "other";
export function tig(n: number | string): "one" | "other";
export function tk(n: number | string): "one" | "other";
export function tl(n: number | string): "one" | "other";
export function tn(n: number | string): "one" | "other";
export function to(n: number | string): "other";
export function tr(n: number | string): "one" | "other";
export function ts(n: number | string): "one" | "other";
export function tzm(n: number | string): "one" | "other";
export function ug(n: number | string): "one" | "other";
export function uk(n: number | string): "one" | "few" | "many" | "other";
export function ur(n: number | string): "one" | "other";
export function uz(n: number | string): "one" | "other";
export function ve(n: number | string): "one" | "other";
export function vi(n: number | string): "other";
export function vo(n: number | string): "one" | "other";
export function vun(n: number | string): "one" | "other";
export function wa(n: number | string): "one" | "other";
export function wae(n: number | string): "one" | "other";
export function wo(n: number | string): "other";
export function xh(n: number | string): "one" | "other";
export function xog(n: number | string): "one" | "other";
export function yi(n: number | string): "one" | "other";
export function yo(n: number | string): "other";
export function yue(n: number | string): "other";
export function zh(n: number | string): "other";
export function zu(n: number | string): "one" | "other";
export const af: (n: number | string) => "one" | "other";
export const ak: (n: number | string) => "one" | "other";
export const am: (n: number | string) => "one" | "other";
export const an: (n: number | string) => "one" | "other";
export const ar: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ars: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const as: (n: number | string) => "one" | "other";
export const asa: (n: number | string) => "one" | "other";
export const ast: (n: number | string) => "one" | "other";
export const az: (n: number | string) => "one" | "other";
export const be: (n: number | string) => "one" | "few" | "many" | "other";
export const bem: (n: number | string) => "one" | "other";
export const bez: (n: number | string) => "one" | "other";
export const bg: (n: number | string) => "one" | "other";
export const bho: (n: number | string) => "one" | "other";
export const bm: (n: number | string) => "other";
export const bn: (n: number | string) => "one" | "other";
export const bo: (n: number | string) => "other";
export const br: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const brx: (n: number | string) => "one" | "other";
export const bs: (n: number | string) => "one" | "few" | "other";
export const ca: (n: number | string) => "one" | "other";
export const ce: (n: number | string) => "one" | "other";
export const ceb: (n: number | string) => "one" | "other";
export const cgg: (n: number | string) => "one" | "other";
export const chr: (n: number | string) => "one" | "other";
export const ckb: (n: number | string) => "one" | "other";
export const cs: (n: number | string) => "one" | "few" | "many" | "other";
export const cy: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const da: (n: number | string) => "one" | "other";
export const de: (n: number | string) => "one" | "other";
export const doi: (n: number | string) => "one" | "other";
export const dsb: (n: number | string) => "one" | "two" | "few" | "other";
export const dv: (n: number | string) => "one" | "other";
export const dz: (n: number | string) => "other";
export const ee: (n: number | string) => "one" | "other";
export const el: (n: number | string) => "one" | "other";
export const en: (n: number | string) => "one" | "other";
export const eo: (n: number | string) => "one" | "other";
export const es: (n: number | string) => "one" | "other";
export const et: (n: number | string) => "one" | "other";
export const eu: (n: number | string) => "one" | "other";
export const fa: (n: number | string) => "one" | "other";
export const ff: (n: number | string) => "one" | "other";
export const fi: (n: number | string) => "one" | "other";
export const fil: (n: number | string) => "one" | "other";
export const fo: (n: number | string) => "one" | "other";
export const fr: (n: number | string) => "one" | "many" | "other";
export const fur: (n: number | string) => "one" | "other";
export const fy: (n: number | string) => "one" | "other";
export const ga: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const gd: (n: number | string) => "one" | "two" | "few" | "other";
export const gl: (n: number | string) => "one" | "other";
export const gsw: (n: number | string) => "one" | "other";
export const gu: (n: number | string) => "one" | "other";
export const guw: (n: number | string) => "one" | "other";
export const gv: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const ha: (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 hi: (n: number | string) => "one" | "other";
export const hr: (n: number | string) => "one" | "few" | "other";
export const hsb: (n: number | string) => "one" | "two" | "few" | "other";
export const hu: (n: number | string) => "one" | "other";
export const hy: (n: number | string) => "one" | "other";
export const ia: (n: number | string) => "one" | "other";
export const id: (n: number | string) => "other";
export const ig: (n: number | string) => "other";
export const ii: (n: number | string) => "other";
export const _in: (n: number | string) => "other";
export const io: (n: number | string) => "one" | "other";
export const is: (n: number | string) => "one" | "other";
export const it: (n: number | string) => "one" | "other";
export const iu: (n: number | string) => "one" | "two" | "other";
export const iw: (n: number | string) => "one" | "two" | "many" | "other";
export const ja: (n: number | string) => "other";
export const jbo: (n: number | string) => "other";
export const jgo: (n: number | string) => "one" | "other";
export const ji: (n: number | string) => "one" | "other";
export const jmc: (n: number | string) => "one" | "other";
export const jv: (n: number | string) => "other";
export const jw: (n: number | string) => "other";
export const ka: (n: number | string) => "one" | "other";
export const kab: (n: number | string) => "one" | "other";
export const kaj: (n: number | string) => "one" | "other";
export const kcg: (n: number | string) => "one" | "other";
export const kde: (n: number | string) => "other";
export const kea: (n: number | string) => "other";
export const kk: (n: number | string) => "one" | "other";
export const kkj: (n: number | string) => "one" | "other";
export const kl: (n: number | string) => "one" | "other";
export const km: (n: number | string) => "other";
export const kn: (n: number | string) => "one" | "other";
export const ko: (n: number | string) => "other";
export const ks: (n: number | string) => "one" | "other";
export const ksb: (n: number | string) => "one" | "other";
export const ksh: (n: number | string) => "zero" | "one" | "other";
export const ku: (n: number | string) => "one" | "other";
export const kw: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ky: (n: number | string) => "one" | "other";
export const lag: (n: number | string) => "zero" | "one" | "other";
export const lb: (n: number | string) => "one" | "other";
export const lg: (n: number | string) => "one" | "other";
export const lij: (n: number | string) => "one" | "other";
export const lkt: (n: number | string) => "other";
export const ln: (n: number | string) => "one" | "other";
export const lo: (n: number | string) => "other";
export const lt: (n: number | string) => "one" | "few" | "many" | "other";
export const lv: (n: number | string) => "zero" | "one" | "other";
export const mas: (n: number | string) => "one" | "other";
export const mg: (n: number | string) => "one" | "other";
export const mgo: (n: number | string) => "one" | "other";
export const mk: (n: number | string) => "one" | "other";
export const ml: (n: number | string) => "one" | "other";
export const mn: (n: number | string) => "one" | "other";
export const mo: (n: number | string) => "one" | "few" | "other";
export const mr: (n: number | string) => "one" | "other";
export const ms: (n: number | string) => "other";
export const mt: (n: number | string) => "one" | "few" | "many" | "other";
export const my: (n: number | string) => "other";
export const nah: (n: number | string) => "one" | "other";
export const naq: (n: number | string) => "one" | "two" | "other";
export const nb: (n: number | string) => "one" | "other";
export const nd: (n: number | string) => "one" | "other";
export const ne: (n: number | string) => "one" | "other";
export const nl: (n: number | string) => "one" | "other";
export const nn: (n: number | string) => "one" | "other";
export const nnh: (n: number | string) => "one" | "other";
export const no: (n: number | string) => "one" | "other";
export const nqo: (n: number | string) => "other";
export const nr: (n: number | string) => "one" | "other";
export const nso: (n: number | string) => "one" | "other";
export const ny: (n: number | string) => "one" | "other";
export const nyn: (n: number | string) => "one" | "other";
export const om: (n: number | string) => "one" | "other";
export const or: (n: number | string) => "one" | "other";
export const os: (n: number | string) => "one" | "other";
export const osa: (n: number | string) => "other";
export const pa: (n: number | string) => "one" | "other";
export const pap: (n: number | string) => "one" | "other";
export const pcm: (n: number | string) => "one" | "other";
export const pl: (n: number | string) => "one" | "few" | "many" | "other";
export const prg: (n: number | string) => "zero" | "one" | "other";
export const ps: (n: number | string) => "one" | "other";
export const pt: (n: number | string) => "one" | "other";
export const pt_PT: (n: number | string) => "one" | "other";
export const rm: (n: number | string) => "one" | "other";
export const ro: (n: number | string) => "one" | "few" | "other";
export const rof: (n: number | string) => "one" | "other";
export const root: (n: number | string) => "other";
export const ru: (n: number | string) => "one" | "few" | "many" | "other";
export const rwk: (n: number | string) => "one" | "other";
export const sah: (n: number | string) => "other";
export const saq: (n: number | string) => "one" | "other";
export const sat: (n: number | string) => "one" | "two" | "other";
export const sc: (n: number | string) => "one" | "other";
export const scn: (n: number | string) => "one" | "other";
export const sd: (n: number | string) => "one" | "other";
export const sdh: (n: number | string) => "one" | "other";
export const se: (n: number | string) => "one" | "two" | "other";
export const seh: (n: number | string) => "one" | "other";
export const ses: (n: number | string) => "other";
export const sg: (n: number | string) => "other";
export const sh: (n: number | string) => "one" | "few" | "other";
export const shi: (n: number | string) => "one" | "few" | "other";
export const si: (n: number | string) => "one" | "other";
export const sk: (n: number | string) => "one" | "few" | "many" | "other";
export const sl: (n: number | string) => "one" | "two" | "few" | "other";
export const sma: (n: number | string) => "one" | "two" | "other";
export const smi: (n: number | string) => "one" | "two" | "other";
export const smj: (n: number | string) => "one" | "two" | "other";
export const smn: (n: number | string) => "one" | "two" | "other";
export const sms: (n: number | string) => "one" | "two" | "other";
export const sn: (n: number | string) => "one" | "other";
export const so: (n: number | string) => "one" | "other";
export const sq: (n: number | string) => "one" | "other";
export const sr: (n: number | string) => "one" | "few" | "other";
export const ss: (n: number | string) => "one" | "other";
export const ssy: (n: number | string) => "one" | "other";
export const st: (n: number | string) => "one" | "other";
export const su: (n: number | string) => "other";
export const sv: (n: number | string) => "one" | "other";
export const sw: (n: number | string) => "one" | "other";
export const syr: (n: number | string) => "one" | "other";
export const ta: (n: number | string) => "one" | "other";
export const te: (n: number | string) => "one" | "other";
export const teo: (n: number | string) => "one" | "other";
export const th: (n: number | string) => "other";
export const ti: (n: number | string) => "one" | "other";
export const tig: (n: number | string) => "one" | "other";
export const tk: (n: number | string) => "one" | "other";
export const tl: (n: number | string) => "one" | "other";
export const tn: (n: number | string) => "one" | "other";
export const to: (n: number | string) => "other";
export const tr: (n: number | string) => "one" | "other";
export const ts: (n: number | string) => "one" | "other";
export const tzm: (n: number | string) => "one" | "other";
export const ug: (n: number | string) => "one" | "other";
export const uk: (n: number | string) => "one" | "few" | "many" | "other";
export const ur: (n: number | string) => "one" | "other";
export const uz: (n: number | string) => "one" | "other";
export const ve: (n: number | string) => "one" | "other";
export const vi: (n: number | string) => "other";
export const vo: (n: number | string) => "one" | "other";
export const vun: (n: number | string) => "one" | "other";
export const wa: (n: number | string) => "one" | "other";
export const wae: (n: number | string) => "one" | "other";
export const wo: (n: number | string) => "other";
export const xh: (n: number | string) => "one" | "other";
export const xog: (n: number | string) => "one" | "other";
export const yi: (n: number | string) => "one" | "other";
export const yo: (n: number | string) => "other";
export const yue: (n: number | string) => "other";
export const zh: (n: number | string) => "other";
export const zu: (n: number | string) => "one" | "other";

@@ -1,32 +0,18 @@

function a(n) {
return n == 1 ? 'one' : 'other';
}
function b(n) {
return (n == 0 || n == 1) ? 'one' : 'other';
}
function c(n) {
return n >= 0 && n <= 1 ? 'one' : 'other';
}
function d(n) {
var s = String(n).split('.'), v0 = !s[1];
const a = (n) => n == 1 ? 'one' : 'other';
const b = (n) => (n == 0 || n == 1) ? 'one' : 'other';
const c = (n) => n >= 0 && n <= 1 ? 'one' : 'other';
const d = (n) => {
const s = String(n).split('.'), v0 = !s[1];
return n == 1 && v0 ? 'one' : 'other';
}
function e(n) {
return 'other';
}
function f(n) {
return n == 1 ? 'one'
};
const e = (n) => 'other';
const f = (n) => n == 1 ? 'one'
: n == 2 ? 'two'
: 'other';
}
(function (root, plurals) {
Object.defineProperty(plurals, '__esModule', { value: true });
if (typeof define === 'function' && define.amd) {
define(plurals);
} else if (typeof exports === 'object') {
module.exports = plurals;
} else {
root.plurals = plurals;
}
if (typeof define === 'function' && define.amd) define(plurals);
else if (typeof exports === 'object') module.exports = plurals;
else root.plurals = plurals;
}(this, {

@@ -43,4 +29,4 @@ _in: e,

ar: function ar(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ar: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return n == 0 ? 'zero'

@@ -54,4 +40,4 @@ : n == 1 ? 'one'

ars: function ars(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ars: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return n == 0 ? 'zero'

@@ -73,4 +59,4 @@ : n == 1 ? 'one'

be: function be(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
be: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return n10 == 1 && n100 != 11 ? 'one'

@@ -96,4 +82,4 @@ : (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'

br: function br(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
br: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'

@@ -108,4 +94,4 @@ : n10 == 2 && n100 != 12 && n100 != 72 && n100 != 92 ? 'two'

bs: function bs(n) {
var 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);
bs: (n) => {
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);
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

@@ -120,4 +106,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'

ceb: function ceb(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
ceb: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

@@ -132,4 +118,4 @@ },

cs: function cs(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1];
cs: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1];
return n == 1 && v0 ? 'one'

@@ -141,4 +127,3 @@ : (i >= 2 && i <= 4) && v0 ? 'few'

cy: function cy(n) {
return n == 0 ? 'zero'
cy: (n) => n == 0 ? 'zero'
: n == 1 ? 'one'

@@ -148,7 +133,6 @@ : n == 2 ? 'two'

: n == 6 ? 'many'
: 'other';
},
: 'other',
da: function da(n) {
var s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
da: (n) => {
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';

@@ -159,4 +143,6 @@ },

dsb: function dsb(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
doi: c,
dsb: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
return v0 && i100 == 1 || f100 == 1 ? 'one'

@@ -188,10 +174,8 @@ : v0 && i100 == 2 || f100 == 2 ? 'two'

ff: function ff(n) {
return n >= 0 && n < 2 ? 'one' : 'other';
},
ff: (n) => n >= 0 && n < 2 ? 'one' : 'other',
fi: d,
fil: function fil(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
fil: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

@@ -202,4 +186,7 @@ },

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

@@ -211,4 +198,4 @@

ga: function ga(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
ga: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return n == 1 ? 'one'

@@ -221,4 +208,4 @@ : n == 2 ? 'two'

gd: function gd(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
gd: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return (n == 1 || n == 11) ? 'one'

@@ -238,4 +225,4 @@ : (n == 2 || n == 12) ? 'two'

gv: function gv(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
gv: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
return v0 && i10 == 1 ? 'one'

@@ -252,4 +239,4 @@ : v0 && i10 == 2 ? 'two'

he: function he(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
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'

@@ -263,4 +250,4 @@ : i == 2 && v0 ? 'two'

hr: function hr(n) {
var 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);
hr: (n) => {
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);
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

@@ -271,4 +258,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'

hsb: function hsb(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
hsb: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
return v0 && i100 == 1 || f100 == 1 ? 'one'

@@ -282,5 +269,3 @@ : v0 && i100 == 2 || f100 == 2 ? 'two'

hy: function hy(n) {
return n >= 0 && n < 2 ? 'one' : 'other';
},
hy: (n) => n >= 0 && n < 2 ? 'one' : 'other',

@@ -297,4 +282,4 @@ ia: d,

is: function is(n) {
var s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
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';

@@ -307,4 +292,4 @@ },

iw: function iw(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
iw: (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'

@@ -332,5 +317,3 @@ : i == 2 && v0 ? 'two'

kab: function kab(n) {
return n >= 0 && n < 2 ? 'one' : 'other';
},
kab: (n) => n >= 0 && n < 2 ? 'one' : 'other',

@@ -361,12 +344,10 @@ kaj: a,

ksh: function ksh(n) {
return n == 0 ? 'zero'
ksh: (n) => n == 0 ? 'zero'
: n == 1 ? 'one'
: 'other';
},
: 'other',
ku: a,
kw: function kw(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3), n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
kw: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3), n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
return n == 0 ? 'zero'

@@ -382,4 +363,4 @@ : n == 1 ? 'one'

lag: function lag(n) {
var s = String(n).split('.'), i = s[0];
lag: (n) => {
const s = String(n).split('.'), i = s[0];
return n == 0 ? 'zero'

@@ -394,2 +375,4 @@ : (i == 0 || i == 1) && n != 0 ? 'one'

lij: d,
lkt: e,

@@ -401,4 +384,4 @@

lt: function lt(n) {
var s = String(n).split('.'), f = s[1] || '', t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
lt: (n) => {
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);
return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'

@@ -410,4 +393,4 @@ : (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'

lv: function lv(n) {
var s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
lv: (n) => {
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'

@@ -424,4 +407,4 @@ : n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'

mk: function mk(n) {
var 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);
mk: (n) => {
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);
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one' : 'other';

@@ -434,4 +417,4 @@ },

mo: function mo(n) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
mo: (n) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return n == 1 && v0 ? 'one'

@@ -446,4 +429,4 @@ : !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'

mt: function mt(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
mt: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return n == 1 ? 'one'

@@ -497,4 +480,6 @@ : n == 0 || (n100 >= 2 && n100 <= 10) ? 'few'

pl: function pl(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
pcm: c,
pl: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
return n == 1 && v0 ? 'one'

@@ -506,4 +491,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'

prg: function prg(n) {
var s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
prg: (n) => {
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'

@@ -516,4 +501,4 @@ : n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'

pt: function pt(n) {
var s = String(n).split('.'), i = s[0];
pt: (n) => {
const s = String(n).split('.'), i = s[0];
return (i == 0 || i == 1) ? 'one' : 'other';

@@ -526,4 +511,4 @@ },

ro: function ro(n) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ro: (n) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
return n == 1 && v0 ? 'one'

@@ -538,4 +523,4 @@ : !v0 || n == 0 || (n100 >= 2 && n100 <= 19) ? 'few'

ru: function ru(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
ru: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
return v0 && i10 == 1 && i100 != 11 ? 'one'

@@ -553,2 +538,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'

sat: f,
sc: d,

@@ -570,4 +557,4 @@

sh: function sh(n) {
var 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);
sh: (n) => {
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);
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

@@ -578,4 +565,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'

shi: function shi(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
shi: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return n >= 0 && n <= 1 ? 'one'

@@ -586,9 +573,9 @@ : (t0 && n >= 2 && n <= 10) ? 'few'

si: function si(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '';
si: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '';
return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
},
sk: function sk(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1];
sk: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1];
return n == 1 && v0 ? 'one'

@@ -600,4 +587,4 @@ : (i >= 2 && i <= 4) && v0 ? 'few'

sl: function sl(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
sl: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
return v0 && i100 == 1 ? 'one'

@@ -625,4 +612,4 @@ : v0 && i100 == 2 ? 'two'

sr: function sr(n) {
var 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);
sr: (n) => {
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);
return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

@@ -661,4 +648,4 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'

tl: function tl(n) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
tl: (n) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

@@ -675,4 +662,4 @@ },

tzm: function tzm(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
tzm: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';

@@ -683,4 +670,4 @@ },

uk: function uk(n) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
uk: (n) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
return v0 && i10 == 1 && i100 != 11 ? 'one'

@@ -687,0 +674,0 @@ : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'

export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export function af(n: number | string): "other";
export function am(n: number | string): "other";
export function an(n: number | string): "other";
export function ar(n: number | string): "other";
export function as(n: number | string): "one" | "two" | "few" | "many" | "other";
export function az(n: number | string): "one" | "few" | "many" | "other";
export function be(n: number | string): "few" | "other";
export function bg(n: number | string): "other";
export function bn(n: number | string): "one" | "two" | "few" | "many" | "other";
export function bs(n: number | string): "other";
export function ca(n: number | string): "one" | "two" | "few" | "other";
export function ce(n: number | string): "other";
export function cs(n: number | string): "other";
export function cy(n: number | string): "zero" | "one" | "two" | "few" | "many" | "other";
export function da(n: number | string): "other";
export function de(n: number | string): "other";
export function dsb(n: number | string): "other";
export function el(n: number | string): "other";
export function en(n: number | string): "one" | "two" | "few" | "other";
export function es(n: number | string): "other";
export function et(n: number | string): "other";
export function eu(n: number | string): "other";
export function fa(n: number | string): "other";
export function fi(n: number | string): "other";
export function fil(n: number | string): "one" | "other";
export function fr(n: number | string): "one" | "other";
export function fy(n: number | string): "other";
export function ga(n: number | string): "one" | "other";
export function gd(n: number | string): "one" | "two" | "few" | "other";
export function gl(n: number | string): "other";
export function gsw(n: number | string): "other";
export function gu(n: number | string): "one" | "two" | "few" | "many" | "other";
export function he(n: number | string): "other";
export function hi(n: number | string): "one" | "two" | "few" | "many" | "other";
export function hr(n: number | string): "other";
export function hsb(n: number | string): "other";
export function hu(n: number | string): "one" | "other";
export function hy(n: number | string): "one" | "other";
export function ia(n: number | string): "other";
export function id(n: number | string): "other";
export function _in(n: number | string): "other";
export function is(n: number | string): "other";
export function it(n: number | string): "many" | "other";
export function iw(n: number | string): "other";
export function ja(n: number | string): "other";
export function ka(n: number | string): "one" | "many" | "other";
export function kk(n: number | string): "many" | "other";
export function km(n: number | string): "other";
export function kn(n: number | string): "other";
export function ko(n: number | string): "other";
export function kw(n: number | string): "one" | "many" | "other";
export function ky(n: number | string): "other";
export function lo(n: number | string): "one" | "other";
export function lt(n: number | string): "other";
export function lv(n: number | string): "other";
export function mk(n: number | string): "one" | "two" | "many" | "other";
export function ml(n: number | string): "other";
export function mn(n: number | string): "other";
export function mo(n: number | string): "one" | "other";
export function mr(n: number | string): "one" | "two" | "few" | "other";
export function ms(n: number | string): "one" | "other";
export function my(n: number | string): "other";
export function nb(n: number | string): "other";
export function ne(n: number | string): "one" | "other";
export function nl(n: number | string): "other";
export function or(n: number | string): "one" | "two" | "few" | "many" | "other";
export function pa(n: number | string): "other";
export function pl(n: number | string): "other";
export function prg(n: number | string): "other";
export function ps(n: number | string): "other";
export function pt(n: number | string): "other";
export function ro(n: number | string): "one" | "other";
export function root(n: number | string): "other";
export function ru(n: number | string): "other";
export function sc(n: number | string): "many" | "other";
export function scn(n: number | string): "many" | "other";
export function sd(n: number | string): "other";
export function sh(n: number | string): "other";
export function si(n: number | string): "other";
export function sk(n: number | string): "other";
export function sl(n: number | string): "other";
export function sq(n: number | string): "one" | "many" | "other";
export function sr(n: number | string): "other";
export function sv(n: number | string): "one" | "other";
export function sw(n: number | string): "other";
export function ta(n: number | string): "other";
export function te(n: number | string): "other";
export function th(n: number | string): "other";
export function tk(n: number | string): "few" | "other";
export function tl(n: number | string): "one" | "other";
export function tr(n: number | string): "other";
export function uk(n: number | string): "few" | "other";
export function ur(n: number | string): "other";
export function uz(n: number | string): "other";
export function vi(n: number | string): "one" | "other";
export function yue(n: number | string): "other";
export function zh(n: number | string): "other";
export function zu(n: number | string): "other";
export const af: (n: number | string) => "other";
export const am: (n: number | string) => "other";
export const an: (n: number | string) => "other";
export const ar: (n: number | string) => "other";
export const as: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const az: (n: number | string) => "one" | "few" | "many" | "other";
export const be: (n: number | string) => "few" | "other";
export const bg: (n: number | string) => "other";
export const bn: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const bs: (n: number | string) => "other";
export const ca: (n: number | string) => "one" | "two" | "few" | "other";
export const ce: (n: number | string) => "other";
export const cs: (n: number | string) => "other";
export const cy: (n: number | string) => "zero" | "one" | "two" | "few" | "many" | "other";
export const da: (n: number | string) => "other";
export const de: (n: number | string) => "other";
export const dsb: (n: number | string) => "other";
export const el: (n: number | string) => "other";
export const en: (n: number | string) => "one" | "two" | "few" | "other";
export const es: (n: number | string) => "other";
export const et: (n: number | string) => "other";
export const eu: (n: number | string) => "other";
export const fa: (n: number | string) => "other";
export const fi: (n: number | string) => "other";
export const fil: (n: number | string) => "one" | "other";
export const fr: (n: number | string) => "one" | "other";
export const fy: (n: number | string) => "other";
export const ga: (n: number | string) => "one" | "other";
export const gd: (n: number | string) => "one" | "two" | "few" | "other";
export const gl: (n: number | string) => "other";
export const gsw: (n: number | string) => "other";
export const gu: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const he: (n: number | string) => "other";
export const hi: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const hr: (n: number | string) => "other";
export const hsb: (n: number | string) => "other";
export const hu: (n: number | string) => "one" | "other";
export const hy: (n: number | string) => "one" | "other";
export const ia: (n: number | string) => "other";
export const id: (n: number | string) => "other";
export const _in: (n: number | string) => "other";
export const is: (n: number | string) => "other";
export const it: (n: number | string) => "many" | "other";
export const iw: (n: number | string) => "other";
export const ja: (n: number | string) => "other";
export const ka: (n: number | string) => "one" | "many" | "other";
export const kk: (n: number | string) => "many" | "other";
export const km: (n: number | string) => "other";
export const kn: (n: number | string) => "other";
export const ko: (n: number | string) => "other";
export const kw: (n: number | string) => "one" | "many" | "other";
export const ky: (n: number | string) => "other";
export const lij: (n: number | string) => "many" | "other";
export const lo: (n: number | string) => "one" | "other";
export const lt: (n: number | string) => "other";
export const lv: (n: number | string) => "other";
export const mk: (n: number | string) => "one" | "two" | "many" | "other";
export const ml: (n: number | string) => "other";
export const mn: (n: number | string) => "other";
export const mo: (n: number | string) => "one" | "other";
export const mr: (n: number | string) => "one" | "two" | "few" | "other";
export const ms: (n: number | string) => "one" | "other";
export const my: (n: number | string) => "other";
export const nb: (n: number | string) => "other";
export const ne: (n: number | string) => "one" | "other";
export const nl: (n: number | string) => "other";
export const no: (n: number | string) => "other";
export const or: (n: number | string) => "one" | "two" | "few" | "many" | "other";
export const pa: (n: number | string) => "other";
export const pl: (n: number | string) => "other";
export const prg: (n: number | string) => "other";
export const ps: (n: number | string) => "other";
export const pt: (n: number | string) => "other";
export const ro: (n: number | string) => "one" | "other";
export const root: (n: number | string) => "other";
export const ru: (n: number | string) => "other";
export const sc: (n: number | string) => "many" | "other";
export const scn: (n: number | string) => "many" | "other";
export const sd: (n: number | string) => "other";
export const sh: (n: number | string) => "other";
export const si: (n: number | string) => "other";
export const sk: (n: number | string) => "other";
export const sl: (n: number | string) => "other";
export const sq: (n: number | string) => "one" | "many" | "other";
export const sr: (n: number | string) => "other";
export const sv: (n: number | string) => "one" | "other";
export const sw: (n: number | string) => "other";
export const ta: (n: number | string) => "other";
export const te: (n: number | string) => "other";
export const th: (n: number | string) => "other";
export const tk: (n: number | string) => "few" | "other";
export const tl: (n: number | string) => "one" | "other";
export const tr: (n: number | string) => "other";
export const uk: (n: number | string) => "few" | "other";
export const ur: (n: number | string) => "other";
export const uz: (n: number | string) => "other";
export const vi: (n: number | string) => "one" | "other";
export const yue: (n: number | string) => "other";
export const zh: (n: number | string) => "other";
export const zu: (n: number | string) => "other";

@@ -1,17 +0,9 @@

function a(n) {
return 'other';
}
function b(n) {
return n == 1 ? 'one' : 'other';
}
const a = (n) => 'other';
const b = (n) => n == 1 ? 'one' : 'other';
(function (root, plurals) {
Object.defineProperty(plurals, '__esModule', { value: true });
if (typeof define === 'function' && define.amd) {
define(plurals);
} else if (typeof exports === 'object') {
module.exports = plurals;
} else {
root.plurals = plurals;
}
if (typeof define === 'function' && define.amd) define(plurals);
else if (typeof exports === 'object') module.exports = plurals;
else root.plurals = plurals;
}(this, {

@@ -28,12 +20,10 @@ _in: a,

as: function as(n) {
return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
as: (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
: (n == 2 || n == 3) ? 'two'
: n == 4 ? 'few'
: n == 6 ? 'many'
: 'other';
},
: 'other',
az: function az(n) {
var s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
az: (n) => {
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'

@@ -45,4 +35,4 @@ : (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'

be: function be(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
be: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';

@@ -53,18 +43,14 @@ },

bn: function bn(n) {
return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
bn: (n) => (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
: (n == 2 || n == 3) ? 'two'
: n == 4 ? 'few'
: n == 6 ? 'many'
: 'other';
},
: 'other',
bs: a,
ca: function ca(n) {
return (n == 1 || n == 3) ? 'one'
ca: (n) => (n == 1 || n == 3) ? 'one'
: n == 2 ? 'two'
: n == 4 ? 'few'
: 'other';
},
: 'other',

@@ -75,4 +61,3 @@ ce: a,

cy: function cy(n) {
return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
cy: (n) => (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
: n == 1 ? 'one'

@@ -82,4 +67,3 @@ : n == 2 ? 'two'

: (n == 5 || n == 6) ? 'many'
: 'other';
},
: 'other',

@@ -94,4 +78,4 @@ da: a,

en: function en(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
en: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return n10 == 1 && n100 != 11 ? 'one'

@@ -121,8 +105,6 @@ : n10 == 2 && n100 != 12 ? 'two'

gd: function gd(n) {
return (n == 1 || n == 11) ? 'one'
gd: (n) => (n == 1 || n == 11) ? 'one'
: (n == 2 || n == 12) ? 'two'
: (n == 3 || n == 13) ? 'few'
: 'other';
},
: 'other',

@@ -133,19 +115,15 @@ gl: a,

gu: function gu(n) {
return n == 1 ? 'one'
gu: (n) => n == 1 ? 'one'
: (n == 2 || n == 3) ? 'two'
: n == 4 ? 'few'
: n == 6 ? 'many'
: 'other';
},
: 'other',
he: a,
hi: function hi(n) {
return n == 1 ? 'one'
hi: (n) => n == 1 ? 'one'
: (n == 2 || n == 3) ? 'two'
: n == 4 ? 'few'
: n == 6 ? 'many'
: 'other';
},
: 'other',

@@ -156,5 +134,3 @@ hr: a,

hu: function hu(n) {
return (n == 1 || n == 5) ? 'one' : 'other';
},
hu: (n) => (n == 1 || n == 5) ? 'one' : 'other',

@@ -169,5 +145,3 @@ hy: b,

it: function it(n) {
return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
},
it: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',

@@ -178,4 +152,4 @@ iw: a,

ka: function ka(n) {
var s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
ka: (n) => {
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
return i == 1 ? 'one'

@@ -186,4 +160,4 @@ : i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'

kk: function kk(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
kk: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';

@@ -198,4 +172,4 @@ },

kw: function kw(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
kw: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
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'

@@ -208,2 +182,7 @@ : n == 5 || n100 == 5 ? 'many'

lij: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
},
lo: b,

@@ -215,4 +194,4 @@

mk: function mk(n) {
var s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2);
mk: (n) => {
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2);
return i10 == 1 && i100 != 11 ? 'one'

@@ -230,8 +209,6 @@ : i10 == 2 && i100 != 12 ? 'two'

mr: function mr(n) {
return n == 1 ? 'one'
mr: (n) => n == 1 ? 'one'
: (n == 2 || n == 3) ? 'two'
: n == 4 ? 'few'
: 'other';
},
: 'other',

@@ -244,4 +221,4 @@ ms: b,

ne: function ne(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
ne: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';

@@ -252,4 +229,6 @@ },

or: function or(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
no: a,
or: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'

@@ -278,9 +257,5 @@ : (n == 2 || n == 3) ? 'two'

sc: function sc(n) {
return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
},
sc: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',
scn: function scn(n) {
return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
},
scn: (n) => (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other',

@@ -297,4 +272,4 @@ sd: a,

sq: function sq(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
sq: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return n == 1 ? 'one'

@@ -307,4 +282,4 @@ : n10 == 4 && n100 != 14 ? 'many'

sv: function sv(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
sv: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';

@@ -321,4 +296,4 @@ },

tk: function tk(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
tk: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';

@@ -331,4 +306,4 @@ },

uk: function uk(n) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
uk: (n) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
return n10 == 3 && n100 != 13 ? 'few' : 'other';

@@ -335,0 +310,0 @@ },

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

@@ -13,3 +13,3 @@ "keywords": [

"author": "Eemeli Aro <eemeli@gmail.com>",
"license": "ISC",
"license": "Unicode-DFS-2016",
"homepage": "https://github.com/eemeli/make-plural#readme",

@@ -26,5 +26,7 @@ "repository": {

"cardinals.*",
"examples.*",
"ordinals.*",
"plurals.*",
"pluralCategories.*"
"pluralCategories.*",
"ranges.*"
],

@@ -50,2 +52,9 @@ "type": "commonjs",

],
"./examples": [
{
"import": "./examples.mjs",
"require": "./examples.js"
},
"./examples.js"
],
"./ordinals": [

@@ -72,2 +81,9 @@ {

],
"./ranges": [
{
"import": "./ranges.mjs",
"require": "./ranges.js"
},
"./ranges.js"
],
"./package.json": "./package.json"

@@ -77,25 +93,8 @@ },

"./cardinals.js": "./cardinals.mjs",
"./examples.js": "./examples.mjs",
"./ordinals.js": "./ordinals.mjs",
"./pluralCategories.js": "./pluralCategories.mjs",
"./plurals.js": "./plurals.mjs"
},
"scripts": {
"build": "npm run build:mjs && npm run build:umd && npm run build:dts",
"build:dts": "npm run cardinals:dts && npm run ordinals:dts && npm run plurals:dts && npm run plural-categories:dts",
"build:mjs": "npm run cardinals:mjs && npm run ordinals:mjs && npm run plurals:mjs && npm run plural-categories:mjs",
"build:umd": "npm run cardinals:umd && npm run ordinals:umd && npm run plurals:umd && npm run plural-categories:umd",
"cardinals:dts": "../cli/make-plural plurals --no-ordinals --dts > cardinals.d.ts",
"cardinals:mjs": "../cli/make-plural plurals --no-ordinals -w118 > cardinals.mjs",
"cardinals:umd": "../cli/make-plural plurals --no-ordinals --umd -w118 > cardinals.js",
"ordinals:dts": "../cli/make-plural plurals --no-cardinals --dts > ordinals.d.ts",
"ordinals:mjs": "../cli/make-plural plurals --no-cardinals -w118 > ordinals.mjs",
"ordinals:umd": "../cli/make-plural plurals --no-cardinals --umd -w118 > ordinals.js",
"plurals:dts": "../cli/make-plural plurals --dts > plurals.d.ts",
"plurals:mjs": "../cli/make-plural plurals -w118 > plurals.mjs",
"plurals:umd": "../cli/make-plural plurals --umd -w118 > plurals.js",
"plural-categories:dts": "../cli/make-plural categories --dts > pluralCategories.d.ts",
"plural-categories:mjs": "../cli/make-plural categories > pluralCategories.mjs",
"plural-categories:umd": "../cli/make-plural categories --umd > pluralCategories.js"
},
"gitHead": "8556a8b639847d8b06424d96bc3e7b4b3936f7b4"
"./plurals.js": "./plurals.mjs",
"./ranges.js": "./ranges.mjs"
}
}

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

export const de: {cardinal:["one","other"],ordinal:["other"]};
export const doi: {cardinal:["one","other"],ordinal:["other"]};
export const dsb: {cardinal:["one","two","few","other"],ordinal:["other"]};

@@ -51,3 +52,3 @@ export const dv: {cardinal:["one","other"],ordinal:["other"]};

export const fo: {cardinal:["one","other"],ordinal:["other"]};
export const fr: {cardinal:["one","other"],ordinal:["one","other"]};
export const fr: {cardinal:["one","many","other"],ordinal:["one","other"]};
export const fur: {cardinal:["one","other"],ordinal:["other"]};

@@ -107,2 +108,3 @@ export const fy: {cardinal:["one","other"],ordinal:["other"]};

export const lg: {cardinal:["one","other"],ordinal:["other"]};
export const lij: {cardinal:["one","other"],ordinal:["many","other"]};
export const lkt: {cardinal:["other"],ordinal:["other"]};

@@ -144,2 +146,3 @@ export const ln: {cardinal:["one","other"],ordinal:["other"]};

export const pap: {cardinal:["one","other"],ordinal:["other"]};
export const pcm: {cardinal:["one","other"],ordinal:["other"]};
export const pl: {cardinal:["one","few","many","other"],ordinal:["other"]};

@@ -158,2 +161,3 @@ export const prg: {cardinal:["zero","one","other"],ordinal:["other"]};

export const saq: {cardinal:["one","other"],ordinal:["other"]};
export const sat: {cardinal:["one","two","other"],ordinal:["other"]};
export const sc: {cardinal:["one","other"],ordinal:["many","other"]};

@@ -160,0 +164,0 @@ export const scn: {cardinal:["one","other"],ordinal:["many","other"]};

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

Object.defineProperty(pluralCategories, '__esModule', { value: true });
if (typeof define === 'function' && define.amd) {
define(pluralCategories);
} else if (typeof exports === 'object') {
module.exports = pluralCategories;
} else {
root.pluralCategories = pluralCategories;
}
if (typeof define === 'function' && define.amd) define(pluralCategories);
else if (typeof exports === 'object') module.exports = pluralCategories;
else root.pluralCategories = pluralCategories;
}(this, {

@@ -51,2 +47,3 @@ _in: b,

de: a,
doi: a,
dsb: {cardinal:[o,t,f,x],ordinal:[x]},

@@ -67,3 +64,3 @@ dv: a,

fo: a,
fr: d,
fr: {cardinal:[o,m,x],ordinal:[o,x]},
fur: a,

@@ -123,2 +120,3 @@ fy: a,

lg: a,
lij: {cardinal:[o,x],ordinal:[m,x]},
lkt: b,

@@ -160,2 +158,3 @@ ln: a,

pap: a,
pcm: a,
pl: c,

@@ -174,2 +173,3 @@ prg: {cardinal:[z,o,x],ordinal:[x]},

saq: a,
sat: e,
sc: {cardinal:[o,x],ordinal:[m,x]},

@@ -176,0 +176,0 @@ scn: {cardinal:[o,x],ordinal:[m,x]},

export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
export function af(n: number | string, ord?: boolean): "one" | "other";
export function ak(n: number | string, ord?: boolean): "one" | "other";
export function am(n: number | string, ord?: boolean): "one" | "other";
export function an(n: number | string, ord?: boolean): "one" | "other";
export function ar(n: number | string, ord?: boolean): "zero" | "one" | "two" | "few" | "many" | "other";
export function ars(n: number | string, ord?: boolean): "zero" | "one" | "two" | "few" | "many" | "other";
export function as(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function asa(n: number | string, ord?: boolean): "one" | "other";
export function ast(n: number | string, ord?: boolean): "one" | "other";
export function az(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function be(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function bem(n: number | string, ord?: boolean): "one" | "other";
export function bez(n: number | string, ord?: boolean): "one" | "other";
export function bg(n: number | string, ord?: boolean): "one" | "other";
export function bho(n: number | string, ord?: boolean): "one" | "other";
export function bm(n: number | string, ord?: boolean): "other";
export function bn(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function bo(n: number | string, ord?: boolean): "other";
export function br(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function brx(n: number | string, ord?: boolean): "one" | "other";
export function bs(n: number | string, ord?: boolean): "one" | "few" | "other";
export function ca(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function ce(n: number | string, ord?: boolean): "one" | "other";
export function ceb(n: number | string, ord?: boolean): "one" | "other";
export function cgg(n: number | string, ord?: boolean): "one" | "other";
export function chr(n: number | string, ord?: boolean): "one" | "other";
export function ckb(n: number | string, ord?: boolean): "one" | "other";
export function cs(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function cy(n: number | string, ord?: boolean): "zero" | "one" | "two" | "few" | "many" | "other";
export function da(n: number | string, ord?: boolean): "one" | "other";
export function de(n: number | string, ord?: boolean): "one" | "other";
export function dsb(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function dv(n: number | string, ord?: boolean): "one" | "other";
export function dz(n: number | string, ord?: boolean): "other";
export function ee(n: number | string, ord?: boolean): "one" | "other";
export function el(n: number | string, ord?: boolean): "one" | "other";
export function en(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function eo(n: number | string, ord?: boolean): "one" | "other";
export function es(n: number | string, ord?: boolean): "one" | "other";
export function et(n: number | string, ord?: boolean): "one" | "other";
export function eu(n: number | string, ord?: boolean): "one" | "other";
export function fa(n: number | string, ord?: boolean): "one" | "other";
export function ff(n: number | string, ord?: boolean): "one" | "other";
export function fi(n: number | string, ord?: boolean): "one" | "other";
export function fil(n: number | string, ord?: boolean): "one" | "other";
export function fo(n: number | string, ord?: boolean): "one" | "other";
export function fr(n: number | string, ord?: boolean): "one" | "other";
export function fur(n: number | string, ord?: boolean): "one" | "other";
export function fy(n: number | string, ord?: boolean): "one" | "other";
export function ga(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function gd(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function gl(n: number | string, ord?: boolean): "one" | "other";
export function gsw(n: number | string, ord?: boolean): "one" | "other";
export function gu(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function guw(n: number | string, ord?: boolean): "one" | "other";
export function gv(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function ha(n: number | string, ord?: boolean): "one" | "other";
export function haw(n: number | string, ord?: boolean): "one" | "other";
export function he(n: number | string, ord?: boolean): "one" | "two" | "many" | "other";
export function hi(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function hr(n: number | string, ord?: boolean): "one" | "few" | "other";
export function hsb(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function hu(n: number | string, ord?: boolean): "one" | "other";
export function hy(n: number | string, ord?: boolean): "one" | "other";
export function ia(n: number | string, ord?: boolean): "one" | "other";
export function id(n: number | string, ord?: boolean): "other";
export function ig(n: number | string, ord?: boolean): "other";
export function ii(n: number | string, ord?: boolean): "other";
export function _in(n: number | string, ord?: boolean): "other";
export function io(n: number | string, ord?: boolean): "one" | "other";
export function is(n: number | string, ord?: boolean): "one" | "other";
export function it(n: number | string, ord?: boolean): "one" | "many" | "other";
export function iu(n: number | string, ord?: boolean): "one" | "two" | "other";
export function iw(n: number | string, ord?: boolean): "one" | "two" | "many" | "other";
export function ja(n: number | string, ord?: boolean): "other";
export function jbo(n: number | string, ord?: boolean): "other";
export function jgo(n: number | string, ord?: boolean): "one" | "other";
export function ji(n: number | string, ord?: boolean): "one" | "other";
export function jmc(n: number | string, ord?: boolean): "one" | "other";
export function jv(n: number | string, ord?: boolean): "other";
export function jw(n: number | string, ord?: boolean): "other";
export function ka(n: number | string, ord?: boolean): "one" | "many" | "other";
export function kab(n: number | string, ord?: boolean): "one" | "other";
export function kaj(n: number | string, ord?: boolean): "one" | "other";
export function kcg(n: number | string, ord?: boolean): "one" | "other";
export function kde(n: number | string, ord?: boolean): "other";
export function kea(n: number | string, ord?: boolean): "other";
export function kk(n: number | string, ord?: boolean): "one" | "many" | "other";
export function kkj(n: number | string, ord?: boolean): "one" | "other";
export function kl(n: number | string, ord?: boolean): "one" | "other";
export function km(n: number | string, ord?: boolean): "other";
export function kn(n: number | string, ord?: boolean): "one" | "other";
export function ko(n: number | string, ord?: boolean): "other";
export function ks(n: number | string, ord?: boolean): "one" | "other";
export function ksb(n: number | string, ord?: boolean): "one" | "other";
export function ksh(n: number | string, ord?: boolean): "zero" | "one" | "other";
export function ku(n: number | string, ord?: boolean): "one" | "other";
export function kw(n: number | string, ord?: boolean): "zero" | "one" | "two" | "few" | "many" | "other";
export function ky(n: number | string, ord?: boolean): "one" | "other";
export function lag(n: number | string, ord?: boolean): "zero" | "one" | "other";
export function lb(n: number | string, ord?: boolean): "one" | "other";
export function lg(n: number | string, ord?: boolean): "one" | "other";
export function lkt(n: number | string, ord?: boolean): "other";
export function ln(n: number | string, ord?: boolean): "one" | "other";
export function lo(n: number | string, ord?: boolean): "one" | "other";
export function lt(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function lv(n: number | string, ord?: boolean): "zero" | "one" | "other";
export function mas(n: number | string, ord?: boolean): "one" | "other";
export function mg(n: number | string, ord?: boolean): "one" | "other";
export function mgo(n: number | string, ord?: boolean): "one" | "other";
export function mk(n: number | string, ord?: boolean): "one" | "two" | "many" | "other";
export function ml(n: number | string, ord?: boolean): "one" | "other";
export function mn(n: number | string, ord?: boolean): "one" | "other";
export function mo(n: number | string, ord?: boolean): "one" | "few" | "other";
export function mr(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function ms(n: number | string, ord?: boolean): "one" | "other";
export function mt(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function my(n: number | string, ord?: boolean): "other";
export function nah(n: number | string, ord?: boolean): "one" | "other";
export function naq(n: number | string, ord?: boolean): "one" | "two" | "other";
export function nb(n: number | string, ord?: boolean): "one" | "other";
export function nd(n: number | string, ord?: boolean): "one" | "other";
export function ne(n: number | string, ord?: boolean): "one" | "other";
export function nl(n: number | string, ord?: boolean): "one" | "other";
export function nn(n: number | string, ord?: boolean): "one" | "other";
export function nnh(n: number | string, ord?: boolean): "one" | "other";
export function no(n: number | string, ord?: boolean): "one" | "other";
export function nqo(n: number | string, ord?: boolean): "other";
export function nr(n: number | string, ord?: boolean): "one" | "other";
export function nso(n: number | string, ord?: boolean): "one" | "other";
export function ny(n: number | string, ord?: boolean): "one" | "other";
export function nyn(n: number | string, ord?: boolean): "one" | "other";
export function om(n: number | string, ord?: boolean): "one" | "other";
export function or(n: number | string, ord?: boolean): "one" | "two" | "few" | "many" | "other";
export function os(n: number | string, ord?: boolean): "one" | "other";
export function osa(n: number | string, ord?: boolean): "other";
export function pa(n: number | string, ord?: boolean): "one" | "other";
export function pap(n: number | string, ord?: boolean): "one" | "other";
export function pl(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function prg(n: number | string, ord?: boolean): "zero" | "one" | "other";
export function ps(n: number | string, ord?: boolean): "one" | "other";
export function pt(n: number | string, ord?: boolean): "one" | "other";
export function pt_PT(n: number | string, ord?: boolean): "one" | "other";
export function rm(n: number | string, ord?: boolean): "one" | "other";
export function ro(n: number | string, ord?: boolean): "one" | "few" | "other";
export function rof(n: number | string, ord?: boolean): "one" | "other";
export function root(n: number | string, ord?: boolean): "other";
export function ru(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function rwk(n: number | string, ord?: boolean): "one" | "other";
export function sah(n: number | string, ord?: boolean): "other";
export function saq(n: number | string, ord?: boolean): "one" | "other";
export function sc(n: number | string, ord?: boolean): "one" | "many" | "other";
export function scn(n: number | string, ord?: boolean): "one" | "many" | "other";
export function sd(n: number | string, ord?: boolean): "one" | "other";
export function sdh(n: number | string, ord?: boolean): "one" | "other";
export function se(n: number | string, ord?: boolean): "one" | "two" | "other";
export function seh(n: number | string, ord?: boolean): "one" | "other";
export function ses(n: number | string, ord?: boolean): "other";
export function sg(n: number | string, ord?: boolean): "other";
export function sh(n: number | string, ord?: boolean): "one" | "few" | "other";
export function shi(n: number | string, ord?: boolean): "one" | "few" | "other";
export function si(n: number | string, ord?: boolean): "one" | "other";
export function sk(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function sl(n: number | string, ord?: boolean): "one" | "two" | "few" | "other";
export function sma(n: number | string, ord?: boolean): "one" | "two" | "other";
export function smi(n: number | string, ord?: boolean): "one" | "two" | "other";
export function smj(n: number | string, ord?: boolean): "one" | "two" | "other";
export function smn(n: number | string, ord?: boolean): "one" | "two" | "other";
export function sms(n: number | string, ord?: boolean): "one" | "two" | "other";
export function sn(n: number | string, ord?: boolean): "one" | "other";
export function so(n: number | string, ord?: boolean): "one" | "other";
export function sq(n: number | string, ord?: boolean): "one" | "many" | "other";
export function sr(n: number | string, ord?: boolean): "one" | "few" | "other";
export function ss(n: number | string, ord?: boolean): "one" | "other";
export function ssy(n: number | string, ord?: boolean): "one" | "other";
export function st(n: number | string, ord?: boolean): "one" | "other";
export function su(n: number | string, ord?: boolean): "other";
export function sv(n: number | string, ord?: boolean): "one" | "other";
export function sw(n: number | string, ord?: boolean): "one" | "other";
export function syr(n: number | string, ord?: boolean): "one" | "other";
export function ta(n: number | string, ord?: boolean): "one" | "other";
export function te(n: number | string, ord?: boolean): "one" | "other";
export function teo(n: number | string, ord?: boolean): "one" | "other";
export function th(n: number | string, ord?: boolean): "other";
export function ti(n: number | string, ord?: boolean): "one" | "other";
export function tig(n: number | string, ord?: boolean): "one" | "other";
export function tk(n: number | string, ord?: boolean): "one" | "few" | "other";
export function tl(n: number | string, ord?: boolean): "one" | "other";
export function tn(n: number | string, ord?: boolean): "one" | "other";
export function to(n: number | string, ord?: boolean): "other";
export function tr(n: number | string, ord?: boolean): "one" | "other";
export function ts(n: number | string, ord?: boolean): "one" | "other";
export function tzm(n: number | string, ord?: boolean): "one" | "other";
export function ug(n: number | string, ord?: boolean): "one" | "other";
export function uk(n: number | string, ord?: boolean): "one" | "few" | "many" | "other";
export function ur(n: number | string, ord?: boolean): "one" | "other";
export function uz(n: number | string, ord?: boolean): "one" | "other";
export function ve(n: number | string, ord?: boolean): "one" | "other";
export function vi(n: number | string, ord?: boolean): "one" | "other";
export function vo(n: number | string, ord?: boolean): "one" | "other";
export function vun(n: number | string, ord?: boolean): "one" | "other";
export function wa(n: number | string, ord?: boolean): "one" | "other";
export function wae(n: number | string, ord?: boolean): "one" | "other";
export function wo(n: number | string, ord?: boolean): "other";
export function xh(n: number | string, ord?: boolean): "one" | "other";
export function xog(n: number | string, ord?: boolean): "one" | "other";
export function yi(n: number | string, ord?: boolean): "one" | "other";
export function yo(n: number | string, ord?: boolean): "other";
export function yue(n: number | string, ord?: boolean): "other";
export function zh(n: number | string, ord?: boolean): "other";
export function zu(n: number | string, ord?: boolean): "one" | "other";
export const af: (n: number | string, ord?: boolean) => "one" | "other";
export const ak: (n: number | string, ord?: boolean) => "one" | "other";
export const am: (n: number | string, ord?: boolean) => "one" | "other";
export const an: (n: number | string, ord?: boolean) => "one" | "other";
export const ar: (n: number | string, ord?: boolean) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ars: (n: number | string, ord?: boolean) => "zero" | "one" | "two" | "few" | "many" | "other";
export const as: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const asa: (n: number | string, ord?: boolean) => "one" | "other";
export const ast: (n: number | string, ord?: boolean) => "one" | "other";
export const az: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const be: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const bem: (n: number | string, ord?: boolean) => "one" | "other";
export const bez: (n: number | string, ord?: boolean) => "one" | "other";
export const bg: (n: number | string, ord?: boolean) => "one" | "other";
export const bho: (n: number | string, ord?: boolean) => "one" | "other";
export const bm: (n: number | string, ord?: boolean) => "other";
export const bn: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const bo: (n: number | string, ord?: boolean) => "other";
export const br: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const brx: (n: number | string, ord?: boolean) => "one" | "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 ce: (n: number | string, ord?: boolean) => "one" | "other";
export const ceb: (n: number | string, ord?: boolean) => "one" | "other";
export const cgg: (n: number | string, ord?: boolean) => "one" | "other";
export const chr: (n: number | string, ord?: boolean) => "one" | "other";
export const ckb: (n: number | string, ord?: boolean) => "one" | "other";
export const cs: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const cy: (n: number | string, ord?: boolean) => "zero" | "one" | "two" | "few" | "many" | "other";
export const da: (n: number | string, ord?: boolean) => "one" | "other";
export const de: (n: number | string, ord?: boolean) => "one" | "other";
export const doi: (n: number | string, ord?: boolean) => "one" | "other";
export const dsb: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const dv: (n: number | string, ord?: boolean) => "one" | "other";
export const dz: (n: number | string, ord?: boolean) => "other";
export const ee: (n: number | string, ord?: boolean) => "one" | "other";
export const el: (n: number | string, ord?: boolean) => "one" | "other";
export const en: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const eo: (n: number | string, ord?: boolean) => "one" | "other";
export const es: (n: number | string, ord?: boolean) => "one" | "other";
export const et: (n: number | string, ord?: boolean) => "one" | "other";
export const eu: (n: number | string, ord?: boolean) => "one" | "other";
export const fa: (n: number | string, ord?: boolean) => "one" | "other";
export const ff: (n: number | string, ord?: boolean) => "one" | "other";
export const fi: (n: number | string, ord?: boolean) => "one" | "other";
export const fil: (n: number | string, ord?: boolean) => "one" | "other";
export const fo: (n: number | string, ord?: boolean) => "one" | "other";
export const fr: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const fur: (n: number | string, ord?: boolean) => "one" | "other";
export const fy: (n: number | string, ord?: boolean) => "one" | "other";
export const ga: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const gd: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const gl: (n: number | string, ord?: boolean) => "one" | "other";
export const gsw: (n: number | string, ord?: boolean) => "one" | "other";
export const gu: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const guw: (n: number | string, ord?: boolean) => "one" | "other";
export const gv: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const ha: (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 hi: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const hr: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const hsb: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const hu: (n: number | string, ord?: boolean) => "one" | "other";
export const hy: (n: number | string, ord?: boolean) => "one" | "other";
export const ia: (n: number | string, ord?: boolean) => "one" | "other";
export const id: (n: number | string, ord?: boolean) => "other";
export const ig: (n: number | string, ord?: boolean) => "other";
export const ii: (n: number | string, ord?: boolean) => "other";
export const _in: (n: number | string, ord?: boolean) => "other";
export const io: (n: number | string, ord?: boolean) => "one" | "other";
export const is: (n: number | string, ord?: boolean) => "one" | "other";
export const it: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const iu: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const iw: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other";
export const ja: (n: number | string, ord?: boolean) => "other";
export const jbo: (n: number | string, ord?: boolean) => "other";
export const jgo: (n: number | string, ord?: boolean) => "one" | "other";
export const ji: (n: number | string, ord?: boolean) => "one" | "other";
export const jmc: (n: number | string, ord?: boolean) => "one" | "other";
export const jv: (n: number | string, ord?: boolean) => "other";
export const jw: (n: number | string, ord?: boolean) => "other";
export const ka: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const kab: (n: number | string, ord?: boolean) => "one" | "other";
export const kaj: (n: number | string, ord?: boolean) => "one" | "other";
export const kcg: (n: number | string, ord?: boolean) => "one" | "other";
export const kde: (n: number | string, ord?: boolean) => "other";
export const kea: (n: number | string, ord?: boolean) => "other";
export const kk: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const kkj: (n: number | string, ord?: boolean) => "one" | "other";
export const kl: (n: number | string, ord?: boolean) => "one" | "other";
export const km: (n: number | string, ord?: boolean) => "other";
export const kn: (n: number | string, ord?: boolean) => "one" | "other";
export const ko: (n: number | string, ord?: boolean) => "other";
export const ks: (n: number | string, ord?: boolean) => "one" | "other";
export const ksb: (n: number | string, ord?: boolean) => "one" | "other";
export const ksh: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
export const ku: (n: number | string, ord?: boolean) => "one" | "other";
export const kw: (n: number | string, ord?: boolean) => "zero" | "one" | "two" | "few" | "many" | "other";
export const ky: (n: number | string, ord?: boolean) => "one" | "other";
export const lag: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
export const lb: (n: number | string, ord?: boolean) => "one" | "other";
export const lg: (n: number | string, ord?: boolean) => "one" | "other";
export const lij: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const lkt: (n: number | string, ord?: boolean) => "other";
export const ln: (n: number | string, ord?: boolean) => "one" | "other";
export const lo: (n: number | string, ord?: boolean) => "one" | "other";
export const lt: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const lv: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
export const mas: (n: number | string, ord?: boolean) => "one" | "other";
export const mg: (n: number | string, ord?: boolean) => "one" | "other";
export const mgo: (n: number | string, ord?: boolean) => "one" | "other";
export const mk: (n: number | string, ord?: boolean) => "one" | "two" | "many" | "other";
export const ml: (n: number | string, ord?: boolean) => "one" | "other";
export const mn: (n: number | string, ord?: boolean) => "one" | "other";
export const mo: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const mr: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "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 my: (n: number | string, ord?: boolean) => "other";
export const nah: (n: number | string, ord?: boolean) => "one" | "other";
export const naq: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const nb: (n: number | string, ord?: boolean) => "one" | "other";
export const nd: (n: number | string, ord?: boolean) => "one" | "other";
export const ne: (n: number | string, ord?: boolean) => "one" | "other";
export const nl: (n: number | string, ord?: boolean) => "one" | "other";
export const nn: (n: number | string, ord?: boolean) => "one" | "other";
export const nnh: (n: number | string, ord?: boolean) => "one" | "other";
export const no: (n: number | string, ord?: boolean) => "one" | "other";
export const nqo: (n: number | string, ord?: boolean) => "other";
export const nr: (n: number | string, ord?: boolean) => "one" | "other";
export const nso: (n: number | string, ord?: boolean) => "one" | "other";
export const ny: (n: number | string, ord?: boolean) => "one" | "other";
export const nyn: (n: number | string, ord?: boolean) => "one" | "other";
export const om: (n: number | string, ord?: boolean) => "one" | "other";
export const or: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "many" | "other";
export const os: (n: number | string, ord?: boolean) => "one" | "other";
export const osa: (n: number | string, ord?: boolean) => "other";
export const pa: (n: number | string, ord?: boolean) => "one" | "other";
export const pap: (n: number | string, ord?: boolean) => "one" | "other";
export const pcm: (n: number | string, ord?: boolean) => "one" | "other";
export const pl: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const prg: (n: number | string, ord?: boolean) => "zero" | "one" | "other";
export const ps: (n: number | string, ord?: boolean) => "one" | "other";
export const pt: (n: number | string, ord?: boolean) => "one" | "other";
export const pt_PT: (n: number | string, ord?: boolean) => "one" | "other";
export const rm: (n: number | string, ord?: boolean) => "one" | "other";
export const ro: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const rof: (n: number | string, ord?: boolean) => "one" | "other";
export const root: (n: number | string, ord?: boolean) => "other";
export const ru: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const rwk: (n: number | string, ord?: boolean) => "one" | "other";
export const sah: (n: number | string, ord?: boolean) => "other";
export const saq: (n: number | string, ord?: boolean) => "one" | "other";
export const sat: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const sc: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const scn: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const sd: (n: number | string, ord?: boolean) => "one" | "other";
export const sdh: (n: number | string, ord?: boolean) => "one" | "other";
export const se: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const seh: (n: number | string, ord?: boolean) => "one" | "other";
export const ses: (n: number | string, ord?: boolean) => "other";
export const sg: (n: number | string, ord?: boolean) => "other";
export const sh: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const shi: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const si: (n: number | string, ord?: boolean) => "one" | "other";
export const sk: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const sl: (n: number | string, ord?: boolean) => "one" | "two" | "few" | "other";
export const sma: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const smi: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const smj: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const smn: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const sms: (n: number | string, ord?: boolean) => "one" | "two" | "other";
export const sn: (n: number | string, ord?: boolean) => "one" | "other";
export const so: (n: number | string, ord?: boolean) => "one" | "other";
export const sq: (n: number | string, ord?: boolean) => "one" | "many" | "other";
export const sr: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const ss: (n: number | string, ord?: boolean) => "one" | "other";
export const ssy: (n: number | string, ord?: boolean) => "one" | "other";
export const st: (n: number | string, ord?: boolean) => "one" | "other";
export const su: (n: number | string, ord?: boolean) => "other";
export const sv: (n: number | string, ord?: boolean) => "one" | "other";
export const sw: (n: number | string, ord?: boolean) => "one" | "other";
export const syr: (n: number | string, ord?: boolean) => "one" | "other";
export const ta: (n: number | string, ord?: boolean) => "one" | "other";
export const te: (n: number | string, ord?: boolean) => "one" | "other";
export const teo: (n: number | string, ord?: boolean) => "one" | "other";
export const th: (n: number | string, ord?: boolean) => "other";
export const ti: (n: number | string, ord?: boolean) => "one" | "other";
export const tig: (n: number | string, ord?: boolean) => "one" | "other";
export const tk: (n: number | string, ord?: boolean) => "one" | "few" | "other";
export const tl: (n: number | string, ord?: boolean) => "one" | "other";
export const tn: (n: number | string, ord?: boolean) => "one" | "other";
export const to: (n: number | string, ord?: boolean) => "other";
export const tr: (n: number | string, ord?: boolean) => "one" | "other";
export const ts: (n: number | string, ord?: boolean) => "one" | "other";
export const tzm: (n: number | string, ord?: boolean) => "one" | "other";
export const ug: (n: number | string, ord?: boolean) => "one" | "other";
export const uk: (n: number | string, ord?: boolean) => "one" | "few" | "many" | "other";
export const ur: (n: number | string, ord?: boolean) => "one" | "other";
export const uz: (n: number | string, ord?: boolean) => "one" | "other";
export const ve: (n: number | string, ord?: boolean) => "one" | "other";
export const vi: (n: number | string, ord?: boolean) => "one" | "other";
export const vo: (n: number | string, ord?: boolean) => "one" | "other";
export const vun: (n: number | string, ord?: boolean) => "one" | "other";
export const wa: (n: number | string, ord?: boolean) => "one" | "other";
export const wae: (n: number | string, ord?: boolean) => "one" | "other";
export const wo: (n: number | string, ord?: boolean) => "other";
export const xh: (n: number | string, ord?: boolean) => "one" | "other";
export const xog: (n: number | string, ord?: boolean) => "one" | "other";
export const yi: (n: number | string, ord?: boolean) => "one" | "other";
export const yo: (n: number | string, ord?: boolean) => "other";
export const yue: (n: number | string, ord?: boolean) => "other";
export const zh: (n: number | string, ord?: boolean) => "other";
export const zu: (n: number | string, ord?: boolean) => "one" | "other";

@@ -1,18 +0,20 @@

function a(n, ord) {
const a = (n, ord) => {
if (ord) return 'other';
return n == 1 ? 'one' : 'other';
}
function b(n, ord) {
};
const b = (n, ord) => {
if (ord) return 'other';
return (n == 0 || n == 1) ? 'one' : 'other';
}
function c(n, ord) {
var s = String(n).split('.'), v0 = !s[1];
};
const c = (n, ord) => {
if (ord) return 'other';
return n >= 0 && n <= 1 ? 'one' : 'other';
};
const d = (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
if (ord) return 'other';
return n == 1 && v0 ? 'one' : 'other';
}
function d(n, ord) {
return 'other';
}
function e(n, ord) {
};
const e = (n, ord) => 'other';
const f = (n, ord) => {
if (ord) return 'other';

@@ -22,15 +24,11 @@ return n == 1 ? 'one'

: 'other';
}
};
(function (root, plurals) {
Object.defineProperty(plurals, '__esModule', { value: true });
if (typeof define === 'function' && define.amd) {
define(plurals);
} else if (typeof exports === 'object') {
module.exports = plurals;
} else {
root.plurals = plurals;
}
if (typeof define === 'function' && define.amd) define(plurals);
else if (typeof exports === 'object') module.exports = plurals;
else root.plurals = plurals;
}(this, {
_in: d,
_in: e,

@@ -41,11 +39,8 @@ af: a,

am: function am(n, ord) {
if (ord) return 'other';
return n >= 0 && n <= 1 ? 'one' : 'other';
},
am: c,
an: a,
ar: function ar(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ar: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
if (ord) return 'other';

@@ -60,4 +55,4 @@ return n == 0 ? 'zero'

ars: function ars(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ars: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
if (ord) return 'other';

@@ -72,3 +67,3 @@ return n == 0 ? 'zero'

as: function as(n, ord) {
as: (n, ord) => {
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'

@@ -84,6 +79,6 @@ : (n == 2 || n == 3) ? 'two'

ast: c,
ast: d,
az: function az(n, ord) {
var s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
az: (n, ord) => {
const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'

@@ -96,4 +91,4 @@ : (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'

be: function be(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
be: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';

@@ -114,5 +109,5 @@ return n10 == 1 && n100 != 11 ? 'one'

bm: d,
bm: e,
bn: function bn(n, ord) {
bn: (n, ord) => {
if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'

@@ -126,6 +121,6 @@ : (n == 2 || n == 3) ? 'two'

bo: d,
bo: e,
br: function br(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
br: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), n1000000 = t0 && s[0].slice(-6);
if (ord) return 'other';

@@ -141,4 +136,4 @@ return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'

bs: function bs(n, ord) {
var 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);
bs: (n, ord) => {
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);
if (ord) return 'other';

@@ -150,4 +145,4 @@ return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

ca: function ca(n, ord) {
var s = String(n).split('.'), v0 = !s[1];
ca: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
if (ord) return (n == 1 || n == 3) ? 'one'

@@ -162,4 +157,4 @@ : n == 2 ? 'two'

ceb: function ceb(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
ceb: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
if (ord) return 'other';

@@ -175,4 +170,4 @@ return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

cs: function cs(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1];
cs: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1];
if (ord) return 'other';

@@ -185,3 +180,3 @@ return n == 1 && v0 ? 'one'

cy: function cy(n, ord) {
cy: (n, ord) => {
if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'

@@ -201,4 +196,4 @@ : n == 1 ? 'one'

da: function da(n, ord) {
var s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
da: (n, ord) => {
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
if (ord) return 'other';

@@ -208,6 +203,8 @@ return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';

de: c,
de: d,
dsb: function dsb(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
doi: c,
dsb: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
if (ord) return 'other';

@@ -222,3 +219,3 @@ return v0 && i100 == 1 || f100 == 1 ? 'one'

dz: d,
dz: e,

@@ -229,4 +226,4 @@ ee: a,

en: function en(n, ord) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
en: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
if (ord) return n10 == 1 && n100 != 11 ? 'one'

@@ -243,12 +240,9 @@ : n10 == 2 && n100 != 12 ? 'two'

et: c,
et: d,
eu: a,
fa: function fa(n, ord) {
if (ord) return 'other';
return n >= 0 && n <= 1 ? 'one' : 'other';
},
fa: c,
ff: function ff(n, ord) {
ff: (n, ord) => {
if (ord) return 'other';

@@ -258,6 +252,6 @@ return n >= 0 && n < 2 ? 'one' : 'other';

fi: c,
fi: d,
fil: function fil(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
fil: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
if (ord) return n == 1 ? 'one' : 'other';

@@ -269,5 +263,8 @@ return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

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

@@ -277,6 +274,6 @@

fy: c,
fy: d,
ga: function ga(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
ga: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return n == 1 ? 'one' : 'other';

@@ -290,4 +287,4 @@ return n == 1 ? 'one'

gd: function gd(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
gd: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return (n == 1 || n == 11) ? 'one'

@@ -303,7 +300,7 @@ : (n == 2 || n == 12) ? 'two'

gl: c,
gl: d,
gsw: a,
gu: function gu(n, ord) {
gu: (n, ord) => {
if (ord) return n == 1 ? 'one'

@@ -319,4 +316,4 @@ : (n == 2 || n == 3) ? 'two'

gv: function gv(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
gv: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return 'other';

@@ -334,4 +331,4 @@ return v0 && i10 == 1 ? 'one'

he: function he(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
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);
if (ord) return 'other';

@@ -344,3 +341,3 @@ return n == 1 && v0 ? 'one'

hi: function hi(n, ord) {
hi: (n, ord) => {
if (ord) return n == 1 ? 'one'

@@ -354,4 +351,4 @@ : (n == 2 || n == 3) ? 'two'

hr: function hr(n, ord) {
var 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);
hr: (n, ord) => {
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);
if (ord) return 'other';

@@ -363,4 +360,4 @@ return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

hsb: function hsb(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
hsb: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
if (ord) return 'other';

@@ -373,3 +370,3 @@ return v0 && i100 == 1 || f100 == 1 ? 'one'

hu: function hu(n, ord) {
hu: (n, ord) => {
if (ord) return (n == 1 || n == 5) ? 'one' : 'other';

@@ -379,3 +376,3 @@ return n == 1 ? 'one' : 'other';

hy: function hy(n, ord) {
hy: (n, ord) => {
if (ord) return n == 1 ? 'one' : 'other';

@@ -385,14 +382,14 @@ return n >= 0 && n < 2 ? 'one' : 'other';

ia: c,
ia: d,
id: d,
id: e,
ig: d,
ig: e,
ii: d,
ii: e,
io: c,
io: d,
is: function is(n, ord) {
var s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
is: (n, ord) => {
const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return 'other';

@@ -402,4 +399,4 @@ return t0 && i10 == 1 && i100 != 11 || !t0 ? 'one' : 'other';

it: function it(n, ord) {
var s = String(n).split('.'), v0 = !s[1];
it: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';

@@ -409,6 +406,6 @@ return n == 1 && v0 ? 'one' : 'other';

iu: e,
iu: f,
iw: function iw(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
iw: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
if (ord) return 'other';

@@ -421,18 +418,18 @@ return n == 1 && v0 ? 'one'

ja: d,
ja: e,
jbo: d,
jbo: e,
jgo: a,
ji: c,
ji: d,
jmc: a,
jv: d,
jv: e,
jw: d,
jw: e,
ka: function ka(n, ord) {
var s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
ka: (n, ord) => {
const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
if (ord) return i == 1 ? 'one'

@@ -444,3 +441,3 @@ : i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'

kab: function kab(n, ord) {
kab: (n, ord) => {
if (ord) return 'other';

@@ -454,8 +451,8 @@ return n >= 0 && n < 2 ? 'one' : 'other';

kde: d,
kde: e,
kea: d,
kea: e,
kk: function kk(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
kk: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
if (ord) return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';

@@ -469,10 +466,7 @@ return n == 1 ? 'one' : 'other';

km: d,
km: e,
kn: function kn(n, ord) {
if (ord) return 'other';
return n >= 0 && n <= 1 ? 'one' : 'other';
},
kn: c,
ko: d,
ko: e,

@@ -483,3 +477,3 @@ ks: a,

ksh: function ksh(n, ord) {
ksh: (n, ord) => {
if (ord) return 'other';

@@ -493,4 +487,4 @@ return n == 0 ? 'zero'

kw: function kw(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3), n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
kw: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2), n1000 = t0 && s[0].slice(-3), n100000 = t0 && s[0].slice(-5), n1000000 = t0 && s[0].slice(-6);
if (ord) return (t0 && n >= 1 && n <= 4) || ((n100 >= 1 && n100 <= 4) || (n100 >= 21 && n100 <= 24) || (n100 >= 41 && n100 <= 44) || (n100 >= 61 && n100 <= 64) || (n100 >= 81 && n100 <= 84)) ? 'one'

@@ -509,4 +503,4 @@ : n == 5 || n100 == 5 ? 'many'

lag: function lag(n, ord) {
var s = String(n).split('.'), i = s[0];
lag: (n, ord) => {
const s = String(n).split('.'), i = s[0];
if (ord) return 'other';

@@ -522,7 +516,13 @@ return n == 0 ? 'zero'

lkt: d,
lij: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n;
if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
return n == 1 && v0 ? 'one' : 'other';
},
lkt: e,
ln: b,
lo: function lo(n, ord) {
lo: (n, ord) => {
if (ord) return n == 1 ? 'one' : 'other';

@@ -532,4 +532,4 @@ return 'other';

lt: function lt(n, ord) {
var s = String(n).split('.'), f = s[1] || '', t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
lt: (n, ord) => {
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);
if (ord) return 'other';

@@ -542,4 +542,4 @@ return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'

lv: function lv(n, ord) {
var s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
lv: (n, ord) => {
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
if (ord) return 'other';

@@ -557,4 +557,4 @@ return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'

mk: function mk(n, ord) {
var 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);
mk: (n, ord) => {
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);
if (ord) return i10 == 1 && i100 != 11 ? 'one'

@@ -571,4 +571,4 @@ : i10 == 2 && i100 != 12 ? 'two'

mo: function mo(n, ord) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
mo: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
if (ord) return n == 1 ? 'one' : 'other';

@@ -580,3 +580,3 @@ return n == 1 && v0 ? 'one'

mr: function mr(n, ord) {
mr: (n, ord) => {
if (ord) return n == 1 ? 'one'

@@ -589,3 +589,3 @@ : (n == 2 || n == 3) ? 'two'

ms: function ms(n, ord) {
ms: (n, ord) => {
if (ord) return n == 1 ? 'one' : 'other';

@@ -595,4 +595,4 @@ return 'other';

mt: function mt(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
mt: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
if (ord) return 'other';

@@ -605,7 +605,7 @@ return n == 1 ? 'one'

my: d,
my: e,
nah: a,
naq: e,
naq: f,

@@ -616,4 +616,4 @@ nb: a,

ne: function ne(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
ne: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';

@@ -623,3 +623,3 @@ return n == 1 ? 'one' : 'other';

nl: c,
nl: d,

@@ -632,3 +632,3 @@ nn: a,

nqo: d,
nqo: e,

@@ -645,4 +645,4 @@ nr: a,

or: function or(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
or: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'

@@ -658,3 +658,3 @@ : (n == 2 || n == 3) ? 'two'

osa: d,
osa: e,

@@ -665,4 +665,6 @@ pa: b,

pl: function pl(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
pcm: c,
pl: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return 'other';

@@ -675,4 +677,4 @@ return n == 1 && v0 ? 'one'

prg: function prg(n, ord) {
var s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
prg: (n, ord) => {
const s = String(n).split('.'), f = s[1] || '', v = f.length, t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), f100 = f.slice(-2), f10 = f.slice(-1);
if (ord) return 'other';

@@ -686,4 +688,4 @@ return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'

pt: function pt(n, ord) {
var s = String(n).split('.'), i = s[0];
pt: (n, ord) => {
const s = String(n).split('.'), i = s[0];
if (ord) return 'other';

@@ -693,8 +695,8 @@ return (i == 0 || i == 1) ? 'one' : 'other';

pt_PT: c,
pt_PT: d,
rm: a,
ro: function ro(n, ord) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
ro: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
if (ord) return n == 1 ? 'one' : 'other';

@@ -708,6 +710,6 @@ return n == 1 && v0 ? 'one'

root: d,
root: e,
ru: function ru(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
ru: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return 'other';

@@ -722,8 +724,10 @@ return v0 && i10 == 1 && i100 != 11 ? 'one'

sah: d,
sah: e,
saq: a,
sc: function sc(n, ord) {
var s = String(n).split('.'), v0 = !s[1];
sat: f,
sc: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';

@@ -733,4 +737,4 @@ return n == 1 && v0 ? 'one' : 'other';

scn: function scn(n, ord) {
var s = String(n).split('.'), v0 = !s[1];
scn: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1];
if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';

@@ -744,12 +748,12 @@ return n == 1 && v0 ? 'one' : 'other';

se: e,
se: f,
seh: a,
ses: d,
ses: e,
sg: d,
sg: e,
sh: function sh(n, ord) {
var 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);
sh: (n, ord) => {
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);
if (ord) return 'other';

@@ -761,4 +765,4 @@ return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

shi: function shi(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
shi: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return 'other';

@@ -770,4 +774,4 @@ return n >= 0 && n <= 1 ? 'one'

si: function si(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '';
si: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '';
if (ord) return 'other';

@@ -777,4 +781,4 @@ return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';

sk: function sk(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1];
sk: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1];
if (ord) return 'other';

@@ -787,4 +791,4 @@ return n == 1 && v0 ? 'one'

sl: function sl(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
sl: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
if (ord) return 'other';

@@ -797,11 +801,11 @@ return v0 && i100 == 1 ? 'one'

sma: e,
sma: f,
smi: e,
smi: f,
smj: e,
smj: f,
smn: e,
smn: f,
sms: e,
sms: f,

@@ -812,4 +816,4 @@ sn: a,

sq: function sq(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
sq: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
if (ord) return n == 1 ? 'one'

@@ -821,4 +825,4 @@ : n10 == 4 && n100 != 14 ? 'many'

sr: function sr(n, ord) {
var 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);
sr: (n, ord) => {
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);
if (ord) return 'other';

@@ -836,6 +840,6 @@ return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'

su: d,
su: e,
sv: function sv(n, ord) {
var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
sv: (n, ord) => {
const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';

@@ -845,3 +849,3 @@ return n == 1 && v0 ? 'one' : 'other';

sw: c,
sw: d,

@@ -856,3 +860,3 @@ syr: a,

th: d,
th: e,

@@ -863,4 +867,4 @@ ti: b,

tk: function tk(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
tk: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';

@@ -870,4 +874,4 @@ return n == 1 ? 'one' : 'other';

tl: function tl(n, ord) {
var s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
tl: (n, ord) => {
const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
if (ord) return n == 1 ? 'one' : 'other';

@@ -879,3 +883,3 @@ return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';

to: d,
to: e,

@@ -886,4 +890,4 @@ tr: a,

tzm: function tzm(n, ord) {
var s = String(n).split('.'), t0 = Number(s[0]) == n;
tzm: (n, ord) => {
const s = String(n).split('.'), t0 = Number(s[0]) == n;
if (ord) return 'other';

@@ -895,4 +899,4 @@ return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';

uk: function uk(n, ord) {
var s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), i10 = i.slice(-1), i100 = i.slice(-2);
uk: (n, ord) => {
const s = String(n).split('.'), i = s[0], v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2), i10 = i.slice(-1), i100 = i.slice(-2);
if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';

@@ -905,3 +909,3 @@ return v0 && i10 == 1 && i100 != 11 ? 'one'

ur: c,
ur: d,

@@ -912,3 +916,3 @@ uz: a,

vi: function vi(n, ord) {
vi: (n, ord) => {
if (ord) return n == 1 ? 'one' : 'other';

@@ -926,3 +930,3 @@ return 'other';

wo: d,
wo: e,

@@ -933,14 +937,11 @@ xh: a,

yi: c,
yi: d,
yo: d,
yo: e,
yue: d,
yue: e,
zh: d,
zh: e,
zu: function zu(n, ord) {
if (ord) return 'other';
return n >= 0 && n <= 1 ? 'one' : 'other';
}
zu: c
}));
# make-plural
`make-plural` provides JavaScript functions determining the pluralization categories of the approximately 200 languages included in the [Unicode CLDR]. In addition to the more commonly considered cardinal plurals (e.g. one book, two books), it also support ordinal plurals (e.g. 1st book, 2nd book, etc). It's used internally by the [intl-pluralrules] polyfill.
`make-plural` provides JavaScript functions determining the pluralization categories of the approximately 200 languages included in the [Unicode CLDR].
In addition to the more commonly considered cardinal plurals (e.g. one book, two books), it also support ordinal plurals (e.g. 1st book, 2nd book, etc).
It's used internally by the [intl-pluralrules] polyfill.
The categorization functions are pre-compiled, require no runtime dependencies, and should compress to about 2.5kB. The ES module exports in particular are designed to work well with tree-shaking, allowing for further size savings. In order to generate an even smaller file from a subset of all possible language (or to drop ordinal plural support), use [make-plural-cli] or [make-plural-compiler].
The categorization functions are pre-compiled, require no runtime dependencies, and should compress to about 2.5kB.
The ES module exports in particular are designed to work well with tree-shaking, allowing for further size savings.
In order to generate an even smaller file from a subset of all possible language or to otherwise customise the modules, use [make-plural-cli] or [make-plural-compiler].

@@ -21,12 +25,28 @@ [intl-pluralrules]: https://www.npmjs.com/package/intl-pluralrules

import * as Cardinals from 'make-plural/cardinals'
import * as Examples from 'make-plural/examples'
import * as Ordinals from 'make-plural/ordinals'
import * as Categories from 'make-plural/pluralCategories'
import * as PluralRanges from 'make-plural/ranges'
```
Each of the endpoints is available with both UMD (.js) and ES (.mjs) packaging. `Cardinals`, `Ordinals` and `Plurals` each export a set of functions keyed by locale code, returning the pluralization category for the input (either a number or a string representation of a number). `Plurals` functions also accept a second boolean parameter to return the ordinal (`true`) rather than cardinal (`false`, default) plural category. Note that `Ordinals` includes a slightly smaller subset of locales than `Cardinals` and `Plurals`, due to a lack of data in the CLDR.
Each of the endpoints is available with both UMD (.js) and ES (.mjs) packaging.
- `Cardinals`, `Ordinals` and `Plurals` each export a set of functions keyed by locale code,
returning the pluralization category for the input (either a number or a string representation of a number).
`Plurals` functions also accept a second boolean parameter to return
the ordinal (`true`) rather than cardinal (`false`, default) plural category.
Note that `Ordinals` includes a slightly smaller subset of locales than `Cardinals` and `Plurals`,
due to a lack of data in the CLDR.
- `PluralRanges` provides a set of functions similarly keyed by locale code,
but returning the pliralization category of a numerical range,
given the corresponding categories of its start and end values as arguments.
- `Categories` has a similar structure,
but contains for each language an array of the pluralization categories
the cardinal and ordinal rules that that language's pluralization function may output.
- `Examples` provide sample numeric values for each language's categories.
`Categories` has a similar structure, but contains for each language an array of the pluralization categories the cardinal and ordinal rules that that language's pluralization function may output.
The object keys are named using the corresponding 2-3 character [language code].
Due to JavaScript identifier restrictions, there are two exceptions:
Portugese as spoken in Portugal (`pt-PT`; `pt` is Brazilian Portuguese) is available as `pt_PT`, and the now-deprecated `in` subtag for Indonesian (preferred: `id`) is available as `_in`.
The transformation used for these names is available as [safe-identifier] on npm.
The object keys are named using the corresponding 2-3 character [language code]. Due to JavaScript identifier restrictions, there are two exceptions: Portugese as spoken in Portugal (`pt-PT`; `pt` is Brazilian Portuguese) is available as `pt_PT`, and the now-deprecated `in` subtag for Indonesian (preferred: `id`) is available as `_in`. The transformation used for these names is available as [safe-identifier] on npm.
[language]: http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html

@@ -36,3 +56,4 @@ [language code]: https://www.unicode.org/cldr/charts/latest/supplemental/languages_and_scripts.html

The package file paths and exports are structured in a manner that should allow transparent usage in any module system. In particular, when importing as an ES6 module, tree shaking should be able drop all but the explicitly used functions from the output, provided that **named rather than wildcard imports** are used.
The package file paths and exports are structured in a manner that should allow transparent usage in any module system.
In particular, when importing as an ES6 module, tree shaking should be able drop all but the explicitly used functions from the output, provided that **named rather than wildcard imports** are used.

@@ -48,10 +69,9 @@ ```js

String(en)
// function en(n, ord) {
// var s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n,
// n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
// if (ord) return (n10 == 1 && n100 != 11) ? 'one'
// : (n10 == 2 && n100 != 12) ? 'two'
// : (n10 == 3 && n100 != 13) ? 'few'
// : 'other';
// return (n == 1 && v0) ? 'one' : 'other';
// (n, ord) => {
// const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
// if (ord) return n10 == 1 && n100 != 11 ? 'one'
// : n10 == 2 && n100 != 12 ? 'two'
// : n10 == 3 && n100 != 13 ? 'few'
// : 'other';
// return n == 1 && v0 ? 'one' : 'other';
// }

@@ -79,2 +99,10 @@

// zu: { cardinal: [ 'one', 'other' ], ordinal: [ 'other' ] } }
import { en as rangeEn, ro as rangeRo } from 'make-plural/ranges'
String(rangeEn)
// (start, end) => "other"
String(rangeRo)
// (start, end) => end === "few" ? "few" : end === "one" ? "few" : "other"
```

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