plurals.mjs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. const a = (n, ord) => {
  2. if (ord) return 'other';
  3. return n == 1 ? 'one' : 'other';
  4. };
  5. const b = (n, ord) => {
  6. if (ord) return 'other';
  7. return (n == 0 || n == 1) ? 'one' : 'other';
  8. };
  9. const c = (n, ord) => {
  10. if (ord) return 'other';
  11. return n >= 0 && n <= 1 ? 'one' : 'other';
  12. };
  13. const d = (n, ord) => {
  14. const s = String(n).split('.'), v0 = !s[1];
  15. if (ord) return 'other';
  16. return n == 1 && v0 ? 'one' : 'other';
  17. };
  18. const e = (n, ord) => 'other';
  19. const f = (n, ord) => {
  20. if (ord) return 'other';
  21. return n == 1 ? 'one'
  22. : n == 2 ? 'two'
  23. : 'other';
  24. };
  25. export const af = a;
  26. export const ak = b;
  27. export const am = c;
  28. export const an = a;
  29. export const ar = (n, ord) => {
  30. const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
  31. if (ord) return 'other';
  32. return n == 0 ? 'zero'
  33. : n == 1 ? 'one'
  34. : n == 2 ? 'two'
  35. : (n100 >= 3 && n100 <= 10) ? 'few'
  36. : (n100 >= 11 && n100 <= 99) ? 'many'
  37. : 'other';
  38. };
  39. export const ars = (n, ord) => {
  40. const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
  41. if (ord) return 'other';
  42. return n == 0 ? 'zero'
  43. : n == 1 ? 'one'
  44. : n == 2 ? 'two'
  45. : (n100 >= 3 && n100 <= 10) ? 'few'
  46. : (n100 >= 11 && n100 <= 99) ? 'many'
  47. : 'other';
  48. };
  49. export const as = (n, ord) => {
  50. if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
  51. : (n == 2 || n == 3) ? 'two'
  52. : n == 4 ? 'few'
  53. : n == 6 ? 'many'
  54. : 'other';
  55. return n >= 0 && n <= 1 ? 'one' : 'other';
  56. };
  57. export const asa = a;
  58. export const ast = d;
  59. export const az = (n, ord) => {
  60. const s = String(n).split('.'), i = s[0], i10 = i.slice(-1), i100 = i.slice(-2), i1000 = i.slice(-3);
  61. if (ord) return (i10 == 1 || i10 == 2 || i10 == 5 || i10 == 7 || i10 == 8) || (i100 == 20 || i100 == 50 || i100 == 70 || i100 == 80) ? 'one'
  62. : (i10 == 3 || i10 == 4) || (i1000 == 100 || i1000 == 200 || i1000 == 300 || i1000 == 400 || i1000 == 500 || i1000 == 600 || i1000 == 700 || i1000 == 800 || i1000 == 900) ? 'few'
  63. : i == 0 || i10 == 6 || (i100 == 40 || i100 == 60 || i100 == 90) ? 'many'
  64. : 'other';
  65. return n == 1 ? 'one' : 'other';
  66. };
  67. export const bal = (n, ord) => n == 1 ? 'one' : 'other';
  68. export const be = (n, ord) => {
  69. const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
  70. if (ord) return (n10 == 2 || n10 == 3) && n100 != 12 && n100 != 13 ? 'few' : 'other';
  71. return n10 == 1 && n100 != 11 ? 'one'
  72. : (n10 >= 2 && n10 <= 4) && (n100 < 12 || n100 > 14) ? 'few'
  73. : t0 && n10 == 0 || (n10 >= 5 && n10 <= 9) || (n100 >= 11 && n100 <= 14) ? 'many'
  74. : 'other';
  75. };
  76. export const bem = a;
  77. export const bez = a;
  78. export const bg = a;
  79. export const bho = b;
  80. export const bm = e;
  81. export const bn = (n, ord) => {
  82. if (ord) return (n == 1 || n == 5 || n == 7 || n == 8 || n == 9 || n == 10) ? 'one'
  83. : (n == 2 || n == 3) ? 'two'
  84. : n == 4 ? 'few'
  85. : n == 6 ? 'many'
  86. : 'other';
  87. return n >= 0 && n <= 1 ? 'one' : 'other';
  88. };
  89. export const bo = e;
  90. export const br = (n, ord) => {
  91. 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);
  92. if (ord) return 'other';
  93. return n10 == 1 && n100 != 11 && n100 != 71 && n100 != 91 ? 'one'
  94. : n10 == 2 && n100 != 12 && n100 != 72 && n100 != 92 ? 'two'
  95. : ((n10 == 3 || n10 == 4) || n10 == 9) && (n100 < 10 || n100 > 19) && (n100 < 70 || n100 > 79) && (n100 < 90 || n100 > 99) ? 'few'
  96. : n != 0 && t0 && n1000000 == 0 ? 'many'
  97. : 'other';
  98. };
  99. export const brx = a;
  100. export const bs = (n, ord) => {
  101. 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);
  102. if (ord) return 'other';
  103. return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
  104. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
  105. : 'other';
  106. };
  107. export const ca = (n, ord) => {
  108. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  109. if (ord) return (n == 1 || n == 3) ? 'one'
  110. : n == 2 ? 'two'
  111. : n == 4 ? 'few'
  112. : 'other';
  113. return n == 1 && v0 ? 'one'
  114. : i != 0 && i1000000 == 0 && v0 ? 'many'
  115. : 'other';
  116. };
  117. export const ce = a;
  118. export const ceb = (n, ord) => {
  119. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
  120. if (ord) return 'other';
  121. return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
  122. };
  123. export const cgg = a;
  124. export const chr = a;
  125. export const ckb = a;
  126. export const cs = (n, ord) => {
  127. const s = String(n).split('.'), i = s[0], v0 = !s[1];
  128. if (ord) return 'other';
  129. return n == 1 && v0 ? 'one'
  130. : (i >= 2 && i <= 4) && v0 ? 'few'
  131. : !v0 ? 'many'
  132. : 'other';
  133. };
  134. export const cy = (n, ord) => {
  135. if (ord) return (n == 0 || n == 7 || n == 8 || n == 9) ? 'zero'
  136. : n == 1 ? 'one'
  137. : n == 2 ? 'two'
  138. : (n == 3 || n == 4) ? 'few'
  139. : (n == 5 || n == 6) ? 'many'
  140. : 'other';
  141. return n == 0 ? 'zero'
  142. : n == 1 ? 'one'
  143. : n == 2 ? 'two'
  144. : n == 3 ? 'few'
  145. : n == 6 ? 'many'
  146. : 'other';
  147. };
  148. export const da = (n, ord) => {
  149. const s = String(n).split('.'), i = s[0], t0 = Number(s[0]) == n;
  150. if (ord) return 'other';
  151. return n == 1 || !t0 && (i == 0 || i == 1) ? 'one' : 'other';
  152. };
  153. export const de = d;
  154. export const doi = c;
  155. export const dsb = (n, ord) => {
  156. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
  157. if (ord) return 'other';
  158. return v0 && i100 == 1 || f100 == 1 ? 'one'
  159. : v0 && i100 == 2 || f100 == 2 ? 'two'
  160. : v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
  161. : 'other';
  162. };
  163. export const dv = a;
  164. export const dz = e;
  165. export const ee = a;
  166. export const el = a;
  167. export const en = (n, ord) => {
  168. 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);
  169. if (ord) return n10 == 1 && n100 != 11 ? 'one'
  170. : n10 == 2 && n100 != 12 ? 'two'
  171. : n10 == 3 && n100 != 13 ? 'few'
  172. : 'other';
  173. return n == 1 && v0 ? 'one' : 'other';
  174. };
  175. export const eo = a;
  176. export const es = (n, ord) => {
  177. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  178. if (ord) return 'other';
  179. return n == 1 ? 'one'
  180. : i != 0 && i1000000 == 0 && v0 ? 'many'
  181. : 'other';
  182. };
  183. export const et = d;
  184. export const eu = a;
  185. export const fa = c;
  186. export const ff = (n, ord) => {
  187. if (ord) return 'other';
  188. return n >= 0 && n < 2 ? 'one' : 'other';
  189. };
  190. export const fi = d;
  191. export const fil = (n, ord) => {
  192. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
  193. if (ord) return n == 1 ? 'one' : 'other';
  194. return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
  195. };
  196. export const fo = a;
  197. export const fr = (n, ord) => {
  198. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  199. if (ord) return n == 1 ? 'one' : 'other';
  200. return n >= 0 && n < 2 ? 'one'
  201. : i != 0 && i1000000 == 0 && v0 ? 'many'
  202. : 'other';
  203. };
  204. export const fur = a;
  205. export const fy = d;
  206. export const ga = (n, ord) => {
  207. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  208. if (ord) return n == 1 ? 'one' : 'other';
  209. return n == 1 ? 'one'
  210. : n == 2 ? 'two'
  211. : (t0 && n >= 3 && n <= 6) ? 'few'
  212. : (t0 && n >= 7 && n <= 10) ? 'many'
  213. : 'other';
  214. };
  215. export const gd = (n, ord) => {
  216. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  217. if (ord) return (n == 1 || n == 11) ? 'one'
  218. : (n == 2 || n == 12) ? 'two'
  219. : (n == 3 || n == 13) ? 'few'
  220. : 'other';
  221. return (n == 1 || n == 11) ? 'one'
  222. : (n == 2 || n == 12) ? 'two'
  223. : ((t0 && n >= 3 && n <= 10) || (t0 && n >= 13 && n <= 19)) ? 'few'
  224. : 'other';
  225. };
  226. export const gl = d;
  227. export const gsw = a;
  228. export const gu = (n, ord) => {
  229. if (ord) return n == 1 ? 'one'
  230. : (n == 2 || n == 3) ? 'two'
  231. : n == 4 ? 'few'
  232. : n == 6 ? 'many'
  233. : 'other';
  234. return n >= 0 && n <= 1 ? 'one' : 'other';
  235. };
  236. export const guw = b;
  237. export const gv = (n, ord) => {
  238. const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
  239. if (ord) return 'other';
  240. return v0 && i10 == 1 ? 'one'
  241. : v0 && i10 == 2 ? 'two'
  242. : v0 && (i100 == 0 || i100 == 20 || i100 == 40 || i100 == 60 || i100 == 80) ? 'few'
  243. : !v0 ? 'many'
  244. : 'other';
  245. };
  246. export const ha = a;
  247. export const haw = a;
  248. export const he = (n, ord) => {
  249. const s = String(n).split('.'), i = s[0], v0 = !s[1];
  250. if (ord) return 'other';
  251. return i == 1 && v0 || i == 0 && !v0 ? 'one'
  252. : i == 2 && v0 ? 'two'
  253. : 'other';
  254. };
  255. export const hi = (n, ord) => {
  256. if (ord) return n == 1 ? 'one'
  257. : (n == 2 || n == 3) ? 'two'
  258. : n == 4 ? 'few'
  259. : n == 6 ? 'many'
  260. : 'other';
  261. return n >= 0 && n <= 1 ? 'one' : 'other';
  262. };
  263. export const hnj = e;
  264. export const hr = (n, ord) => {
  265. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2), f10 = f.slice(-1), f100 = f.slice(-2);
  266. if (ord) return 'other';
  267. return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
  268. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
  269. : 'other';
  270. };
  271. export const hsb = (n, ord) => {
  272. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i100 = i.slice(-2), f100 = f.slice(-2);
  273. if (ord) return 'other';
  274. return v0 && i100 == 1 || f100 == 1 ? 'one'
  275. : v0 && i100 == 2 || f100 == 2 ? 'two'
  276. : v0 && (i100 == 3 || i100 == 4) || (f100 == 3 || f100 == 4) ? 'few'
  277. : 'other';
  278. };
  279. export const hu = (n, ord) => {
  280. if (ord) return (n == 1 || n == 5) ? 'one' : 'other';
  281. return n == 1 ? 'one' : 'other';
  282. };
  283. export const hy = (n, ord) => {
  284. if (ord) return n == 1 ? 'one' : 'other';
  285. return n >= 0 && n < 2 ? 'one' : 'other';
  286. };
  287. export const ia = d;
  288. export const id = e;
  289. export const ig = e;
  290. export const ii = e;
  291. export const io = d;
  292. export const is = (n, ord) => {
  293. const s = String(n).split('.'), i = s[0], t = (s[1] || '').replace(/0+$/, ''), t0 = Number(s[0]) == n, i10 = i.slice(-1), i100 = i.slice(-2);
  294. if (ord) return 'other';
  295. return t0 && i10 == 1 && i100 != 11 || t % 10 == 1 && t % 100 != 11 ? 'one' : 'other';
  296. };
  297. export const it = (n, ord) => {
  298. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  299. if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
  300. return n == 1 && v0 ? 'one'
  301. : i != 0 && i1000000 == 0 && v0 ? 'many'
  302. : 'other';
  303. };
  304. export const iu = f;
  305. export const ja = e;
  306. export const jbo = e;
  307. export const jgo = a;
  308. export const jmc = a;
  309. export const jv = e;
  310. export const jw = e;
  311. export const ka = (n, ord) => {
  312. const s = String(n).split('.'), i = s[0], i100 = i.slice(-2);
  313. if (ord) return i == 1 ? 'one'
  314. : i == 0 || ((i100 >= 2 && i100 <= 20) || i100 == 40 || i100 == 60 || i100 == 80) ? 'many'
  315. : 'other';
  316. return n == 1 ? 'one' : 'other';
  317. };
  318. export const kab = (n, ord) => {
  319. if (ord) return 'other';
  320. return n >= 0 && n < 2 ? 'one' : 'other';
  321. };
  322. export const kaj = a;
  323. export const kcg = a;
  324. export const kde = e;
  325. export const kea = e;
  326. export const kk = (n, ord) => {
  327. const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
  328. if (ord) return n10 == 6 || n10 == 9 || t0 && n10 == 0 && n != 0 ? 'many' : 'other';
  329. return n == 1 ? 'one' : 'other';
  330. };
  331. export const kkj = a;
  332. export const kl = a;
  333. export const km = e;
  334. export const kn = c;
  335. export const ko = e;
  336. export const ks = a;
  337. export const ksb = a;
  338. export const ksh = (n, ord) => {
  339. if (ord) return 'other';
  340. return n == 0 ? 'zero'
  341. : n == 1 ? 'one'
  342. : 'other';
  343. };
  344. export const ku = a;
  345. export const kw = (n, ord) => {
  346. 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);
  347. 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'
  348. : n == 5 || n100 == 5 ? 'many'
  349. : 'other';
  350. return n == 0 ? 'zero'
  351. : n == 1 ? 'one'
  352. : (n100 == 2 || n100 == 22 || n100 == 42 || n100 == 62 || n100 == 82) || t0 && n1000 == 0 && ((n100000 >= 1000 && n100000 <= 20000) || n100000 == 40000 || n100000 == 60000 || n100000 == 80000) || n != 0 && n1000000 == 100000 ? 'two'
  353. : (n100 == 3 || n100 == 23 || n100 == 43 || n100 == 63 || n100 == 83) ? 'few'
  354. : n != 1 && (n100 == 1 || n100 == 21 || n100 == 41 || n100 == 61 || n100 == 81) ? 'many'
  355. : 'other';
  356. };
  357. export const ky = a;
  358. export const lag = (n, ord) => {
  359. const s = String(n).split('.'), i = s[0];
  360. if (ord) return 'other';
  361. return n == 0 ? 'zero'
  362. : (i == 0 || i == 1) && n != 0 ? 'one'
  363. : 'other';
  364. };
  365. export const lb = a;
  366. export const lg = a;
  367. export const lij = (n, ord) => {
  368. const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n;
  369. if (ord) return (n == 11 || n == 8 || (t0 && n >= 80 && n <= 89) || (t0 && n >= 800 && n <= 899)) ? 'many' : 'other';
  370. return n == 1 && v0 ? 'one' : 'other';
  371. };
  372. export const lkt = e;
  373. export const ln = b;
  374. export const lo = (n, ord) => {
  375. if (ord) return n == 1 ? 'one' : 'other';
  376. return 'other';
  377. };
  378. export const lt = (n, ord) => {
  379. 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);
  380. if (ord) return 'other';
  381. return n10 == 1 && (n100 < 11 || n100 > 19) ? 'one'
  382. : (n10 >= 2 && n10 <= 9) && (n100 < 11 || n100 > 19) ? 'few'
  383. : f != 0 ? 'many'
  384. : 'other';
  385. };
  386. export const lv = (n, ord) => {
  387. 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);
  388. if (ord) return 'other';
  389. return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
  390. : n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
  391. : 'other';
  392. };
  393. export const mas = a;
  394. export const mg = b;
  395. export const mgo = a;
  396. export const mk = (n, ord) => {
  397. 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);
  398. if (ord) return i10 == 1 && i100 != 11 ? 'one'
  399. : i10 == 2 && i100 != 12 ? 'two'
  400. : (i10 == 7 || i10 == 8) && i100 != 17 && i100 != 18 ? 'many'
  401. : 'other';
  402. return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one' : 'other';
  403. };
  404. export const ml = a;
  405. export const mn = a;
  406. export const mo = (n, ord) => {
  407. const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
  408. if (ord) return n == 1 ? 'one' : 'other';
  409. return n == 1 && v0 ? 'one'
  410. : !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
  411. : 'other';
  412. };
  413. export const mr = (n, ord) => {
  414. if (ord) return n == 1 ? 'one'
  415. : (n == 2 || n == 3) ? 'two'
  416. : n == 4 ? 'few'
  417. : 'other';
  418. return n == 1 ? 'one' : 'other';
  419. };
  420. export const ms = (n, ord) => {
  421. if (ord) return n == 1 ? 'one' : 'other';
  422. return 'other';
  423. };
  424. export const mt = (n, ord) => {
  425. const s = String(n).split('.'), t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
  426. if (ord) return 'other';
  427. return n == 1 ? 'one'
  428. : n == 2 ? 'two'
  429. : n == 0 || (n100 >= 3 && n100 <= 10) ? 'few'
  430. : (n100 >= 11 && n100 <= 19) ? 'many'
  431. : 'other';
  432. };
  433. export const my = e;
  434. export const nah = a;
  435. export const naq = f;
  436. export const nb = a;
  437. export const nd = a;
  438. export const ne = (n, ord) => {
  439. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  440. if (ord) return (t0 && n >= 1 && n <= 4) ? 'one' : 'other';
  441. return n == 1 ? 'one' : 'other';
  442. };
  443. export const nl = d;
  444. export const nn = a;
  445. export const nnh = a;
  446. export const no = a;
  447. export const nqo = e;
  448. export const nr = a;
  449. export const nso = b;
  450. export const ny = a;
  451. export const nyn = a;
  452. export const om = a;
  453. export const or = (n, ord) => {
  454. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  455. if (ord) return (n == 1 || n == 5 || (t0 && n >= 7 && n <= 9)) ? 'one'
  456. : (n == 2 || n == 3) ? 'two'
  457. : n == 4 ? 'few'
  458. : n == 6 ? 'many'
  459. : 'other';
  460. return n == 1 ? 'one' : 'other';
  461. };
  462. export const os = a;
  463. export const osa = e;
  464. export const pa = b;
  465. export const pap = a;
  466. export const pcm = c;
  467. export const pl = (n, ord) => {
  468. const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
  469. if (ord) return 'other';
  470. return n == 1 && v0 ? 'one'
  471. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
  472. : v0 && i != 1 && (i10 == 0 || i10 == 1) || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 12 && i100 <= 14) ? 'many'
  473. : 'other';
  474. };
  475. export const prg = (n, ord) => {
  476. 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);
  477. if (ord) return 'other';
  478. return t0 && n10 == 0 || (n100 >= 11 && n100 <= 19) || v == 2 && (f100 >= 11 && f100 <= 19) ? 'zero'
  479. : n10 == 1 && n100 != 11 || v == 2 && f10 == 1 && f100 != 11 || v != 2 && f10 == 1 ? 'one'
  480. : 'other';
  481. };
  482. export const ps = a;
  483. export const pt = (n, ord) => {
  484. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  485. if (ord) return 'other';
  486. return (i == 0 || i == 1) ? 'one'
  487. : i != 0 && i1000000 == 0 && v0 ? 'many'
  488. : 'other';
  489. };
  490. export const pt_PT = (n, ord) => {
  491. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  492. if (ord) return 'other';
  493. return n == 1 && v0 ? 'one'
  494. : i != 0 && i1000000 == 0 && v0 ? 'many'
  495. : 'other';
  496. };
  497. export const rm = a;
  498. export const ro = (n, ord) => {
  499. const s = String(n).split('.'), v0 = !s[1], t0 = Number(s[0]) == n, n100 = t0 && s[0].slice(-2);
  500. if (ord) return n == 1 ? 'one' : 'other';
  501. return n == 1 && v0 ? 'one'
  502. : !v0 || n == 0 || n != 1 && (n100 >= 1 && n100 <= 19) ? 'few'
  503. : 'other';
  504. };
  505. export const rof = a;
  506. export const ru = (n, ord) => {
  507. const s = String(n).split('.'), i = s[0], v0 = !s[1], i10 = i.slice(-1), i100 = i.slice(-2);
  508. if (ord) return 'other';
  509. return v0 && i10 == 1 && i100 != 11 ? 'one'
  510. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
  511. : v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
  512. : 'other';
  513. };
  514. export const rwk = a;
  515. export const sah = e;
  516. export const saq = a;
  517. export const sat = f;
  518. export const sc = (n, ord) => {
  519. const s = String(n).split('.'), v0 = !s[1];
  520. if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
  521. return n == 1 && v0 ? 'one' : 'other';
  522. };
  523. export const scn = (n, ord) => {
  524. const s = String(n).split('.'), v0 = !s[1];
  525. if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
  526. return n == 1 && v0 ? 'one' : 'other';
  527. };
  528. export const sd = a;
  529. export const sdh = a;
  530. export const se = f;
  531. export const seh = a;
  532. export const ses = e;
  533. export const sg = e;
  534. export const sh = (n, ord) => {
  535. 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);
  536. if (ord) return 'other';
  537. return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
  538. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
  539. : 'other';
  540. };
  541. export const shi = (n, ord) => {
  542. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  543. if (ord) return 'other';
  544. return n >= 0 && n <= 1 ? 'one'
  545. : (t0 && n >= 2 && n <= 10) ? 'few'
  546. : 'other';
  547. };
  548. export const si = (n, ord) => {
  549. const s = String(n).split('.'), i = s[0], f = s[1] || '';
  550. if (ord) return 'other';
  551. return (n == 0 || n == 1) || i == 0 && f == 1 ? 'one' : 'other';
  552. };
  553. export const sk = (n, ord) => {
  554. const s = String(n).split('.'), i = s[0], v0 = !s[1];
  555. if (ord) return 'other';
  556. return n == 1 && v0 ? 'one'
  557. : (i >= 2 && i <= 4) && v0 ? 'few'
  558. : !v0 ? 'many'
  559. : 'other';
  560. };
  561. export const sl = (n, ord) => {
  562. const s = String(n).split('.'), i = s[0], v0 = !s[1], i100 = i.slice(-2);
  563. if (ord) return 'other';
  564. return v0 && i100 == 1 ? 'one'
  565. : v0 && i100 == 2 ? 'two'
  566. : v0 && (i100 == 3 || i100 == 4) || !v0 ? 'few'
  567. : 'other';
  568. };
  569. export const sma = f;
  570. export const smi = f;
  571. export const smj = f;
  572. export const smn = f;
  573. export const sms = f;
  574. export const sn = a;
  575. export const so = a;
  576. export const sq = (n, ord) => {
  577. const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1), n100 = t0 && s[0].slice(-2);
  578. if (ord) return n == 1 ? 'one'
  579. : n10 == 4 && n100 != 14 ? 'many'
  580. : 'other';
  581. return n == 1 ? 'one' : 'other';
  582. };
  583. export const sr = (n, ord) => {
  584. 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);
  585. if (ord) return 'other';
  586. return v0 && i10 == 1 && i100 != 11 || f10 == 1 && f100 != 11 ? 'one'
  587. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) || (f10 >= 2 && f10 <= 4) && (f100 < 12 || f100 > 14) ? 'few'
  588. : 'other';
  589. };
  590. export const ss = a;
  591. export const ssy = a;
  592. export const st = a;
  593. export const su = e;
  594. export const sv = (n, ord) => {
  595. 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);
  596. if (ord) return (n10 == 1 || n10 == 2) && n100 != 11 && n100 != 12 ? 'one' : 'other';
  597. return n == 1 && v0 ? 'one' : 'other';
  598. };
  599. export const sw = d;
  600. export const syr = a;
  601. export const ta = a;
  602. export const te = a;
  603. export const teo = a;
  604. export const th = e;
  605. export const ti = b;
  606. export const tig = a;
  607. export const tk = (n, ord) => {
  608. const s = String(n).split('.'), t0 = Number(s[0]) == n, n10 = t0 && s[0].slice(-1);
  609. if (ord) return (n10 == 6 || n10 == 9) || n == 10 ? 'few' : 'other';
  610. return n == 1 ? 'one' : 'other';
  611. };
  612. export const tl = (n, ord) => {
  613. const s = String(n).split('.'), i = s[0], f = s[1] || '', v0 = !s[1], i10 = i.slice(-1), f10 = f.slice(-1);
  614. if (ord) return n == 1 ? 'one' : 'other';
  615. return v0 && (i == 1 || i == 2 || i == 3) || v0 && i10 != 4 && i10 != 6 && i10 != 9 || !v0 && f10 != 4 && f10 != 6 && f10 != 9 ? 'one' : 'other';
  616. };
  617. export const tn = a;
  618. export const to = e;
  619. export const tpi = e;
  620. export const tr = a;
  621. export const ts = a;
  622. export const tzm = (n, ord) => {
  623. const s = String(n).split('.'), t0 = Number(s[0]) == n;
  624. if (ord) return 'other';
  625. return (n == 0 || n == 1) || (t0 && n >= 11 && n <= 99) ? 'one' : 'other';
  626. };
  627. export const ug = a;
  628. export const uk = (n, ord) => {
  629. 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);
  630. if (ord) return n10 == 3 && n100 != 13 ? 'few' : 'other';
  631. return v0 && i10 == 1 && i100 != 11 ? 'one'
  632. : v0 && (i10 >= 2 && i10 <= 4) && (i100 < 12 || i100 > 14) ? 'few'
  633. : v0 && i10 == 0 || v0 && (i10 >= 5 && i10 <= 9) || v0 && (i100 >= 11 && i100 <= 14) ? 'many'
  634. : 'other';
  635. };
  636. export const und = e;
  637. export const ur = d;
  638. export const uz = a;
  639. export const ve = a;
  640. export const vec = (n, ord) => {
  641. const s = String(n).split('.'), i = s[0], v0 = !s[1], i1000000 = i.slice(-6);
  642. if (ord) return (n == 11 || n == 8 || n == 80 || n == 800) ? 'many' : 'other';
  643. return n == 1 && v0 ? 'one'
  644. : i != 0 && i1000000 == 0 && v0 ? 'many'
  645. : 'other';
  646. };
  647. export const vi = (n, ord) => {
  648. if (ord) return n == 1 ? 'one' : 'other';
  649. return 'other';
  650. };
  651. export const vo = a;
  652. export const vun = a;
  653. export const wa = b;
  654. export const wae = a;
  655. export const wo = e;
  656. export const xh = a;
  657. export const xog = a;
  658. export const yi = d;
  659. export const yo = e;
  660. export const yue = e;
  661. export const zh = e;
  662. export const zu = c;