cldr-grammatical-features 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! cldr-grammatical-features | MIT License | Includes data © Unicode, Inc., Unicode License v3 (https://www.unicode.org/license.txt) */
2
- const e=/* @__PURE__ */ new Map;function t(t){if(typeof t!=`string`)return new Intl.Locale(t).baseName;let n=e.get(t);return n===void 0&&(e.size>=1e3&&e.clear(),n=new Intl.Locale(t).baseName,e.set(t,n)),n}const n=/* @__PURE__ */ new Map([[`af`,[[],[],[]]],[`en`,[[],[],[]]],[`fil`,[[],[],[]]],[`ja`,[[],[],[]]],[`ko`,[[],[],[]]],[`lo`,[[],[],[]]],[`ms`,[[],[],[]]],[`my`,[[],[],[]]],[`ne`,[[],[],[]]],[`th`,[[],[],[]]],[`vi`,[[],[],[]]],[`zh`,[[],[],[]]],[`am`,[[0,1],[],[2,3]]],[`ar`,[[0,4,1],[5,6],[2,3,7]]],[`az`,[[0,4,8,1,9,10],[],[]]],[`ky`,[[0,4,8,1,9,10],[],[]]],[`uz`,[[0,4,8,1,9,10],[],[]]],[`bn`,[[0,1,4,10],[],[2,3]]],[`ca`,[[],[5,6],[]]],[`es`,[[],[5,6],[]]],[`fr`,[[],[5,6],[]]],[`it`,[[],[5,6],[]]],[`pt`,[[],[5,6],[]]],[`cs`,[[0,4,8,1,11,12,10],[13,14,6,15],[]]],[`sk`,[[0,4,8,1,11,12,10],[13,14,6,15],[]]],[`da`,[[0,4],[16,15],[2,3,17]]],[`de`,[[0,4,8,1],[5,6,15],[]]],[`el`,[[0,4,1,12],[5,6,15],[]]],[`fa`,[[],[],[2,3,7]]],[`fi`,[[0,18,9,19,20,21,22,23,4,24,25,11,26,27],[],[]]],[`gu`,[[0,4,1,8,10,11,12],[5,6,15],[]]],[`he`,[[],[5,6],[2,3,7]]],[`hi`,[[0,28],[5,6],[]]],[`pa`,[[0,28],[5,6],[]]],[`hr`,[[0,4,8,1,11,12,10],[13,14,6,15],[]]],[`sr`,[[0,4,8,1,11,12,10],[13,14,6,15],[]]],[`hu`,[[0,9,1,19,20,29,8,30,22,23,24,25,11,31,32,33,27],[],[]]],[`hy`,[[0,9,8,10,11],[],[]]],[`id`,[[],[],[2,3]]],[`is`,[[0,4,8,1],[5,6,15],[2,3]]],[`kk`,[[0,4,8,1,11,9,10],[],[]]],[`tr`,[[0,4,8,1,11,9,10],[],[]]],[`kn`,[[0,4,1,8,10,11,12],[5,6,15],[]]],[`lt`,[[0,4,8,1,11,12,10],[5,6],[]]],[`lv`,[[0,4,8,1,12,10],[5,6],[]]],[`ml`,[[0,4,8,1,11,10,21,34,35],[13,14,6,15],[]]],[`mr`,[[0,1,8,36,10,9,4],[5,6,15],[]]],[`nb`,[[0,4],[5,6,15],[2,3]]],[`nn`,[[0,4],[5,6,15],[2,3]]],[`no`,[[0,4],[5,6,15],[2,3]]],[`nl`,[[],[16,15],[]]],[`pl`,[[0,4,8,1,11,12,10],[13,14,37,6,15],[]]],[`ro`,[[0,4],[5,6,15],[2,3]]],[`ru`,[[0,4,8,1,11,38,12,10],[5,6,15],[]]],[`si`,[[0,4,9,1,8],[5,6,15],[2,3]]],[`sl`,[[0,4,1,8,11,10],[5,6,15],[]]],[`sv`,[[0,4],[16,15],[2,3]]],[`ta`,[[0,4,1,8,10,11,9,12],[],[]]],[`te`,[[0,28,1,8,10,11],[],[]]],[`uk`,[[0,4,8,1,11,12,10],[5,6,15],[]]],[`ur`,[[0,28],[5,6],[]]]]),r=/* @__PURE__ */ `nominative accusative definite indefinite genitive masculine feminine construct dative ablative locative instrumental vocative animate inanimate neuter common unspecified abessive adessive allative comitative elative essive illative inessive partitive translative oblique causal delative sublative superessive terminative locativecopulative sociative ergative personal prepositional`.split(` `),i=`49.0.0`;function a(e){let i=n.get(t(e).split(`-`)[0]);if(i===void 0)return;let[a,o,s]=i.map(e=>e.map(e=>r[e]));return{cases:a,genders:o,definiteness:s}}var o=/* @__PURE__ */ Object.assign(a,{getGrammaticalFeatures:a,VERSION:i});export{i as VERSION,o as default,a as getGrammaticalFeatures};
2
+ const e=/* @__PURE__ */ new Map;function t(t){if(typeof t!=`string`)return new Intl.Locale(t).baseName;let n=e.get(t);return n===void 0&&(e.size>=1e3&&e.clear(),n=new Intl.Locale(t).baseName,e.set(t,n)),n}const n=[[],[],[]],r=[2,3],i=[5,6],a=[[0,4,8,1,9,10],[],[]],o=[[],i,[]],s=[0,4,8,1,11,12,10],c=[13,14,6,15],l=[s,c,[]],u=[5,6,15],d=[[0,4,1,8,10,11,12],u,[]],f=[[0,28],i,[]],p=[[0,4,8,1,11,9,10],[],[]],m=[[0,4],u,r],h=/* @__PURE__ */ new Map([[`af`,n],[`en`,n],[`fil`,n],[`ja`,n],[`ko`,n],[`lo`,n],[`ms`,n],[`my`,n],[`ne`,n],[`th`,n],[`vi`,n],[`zh`,n],[`am`,[[0,1],[],r]],[`ar`,[[0,4,1],i,[2,3,7]]],[`az`,a],[`ky`,a],[`uz`,a],[`bn`,[[0,1,4,10],[],r]],[`ca`,o],[`es`,o],[`fr`,o],[`it`,o],[`pt`,o],[`cs`,l],[`sk`,l],[`da`,[[0,4],[16,15],[2,3,17]]],[`de`,[[0,4,8,1],u,[]]],[`el`,[[0,4,1,12],u,[]]],[`fa`,[[],[],[2,3,7]]],[`fi`,[[0,18,9,19,20,21,22,23,4,24,25,11,26,27],[],[]]],[`gu`,d],[`he`,[[],i,[2,3,7]]],[`hi`,f],[`pa`,f],[`hr`,l],[`sr`,l],[`hu`,[[0,9,1,19,20,29,8,30,22,23,24,25,11,31,32,33,27],[],[]]],[`hy`,[[0,9,8,10,11],[],[]]],[`id`,[[],[],r]],[`is`,[[0,4,8,1],u,r]],[`kk`,p],[`tr`,p],[`kn`,d],[`lt`,[s,i,[]]],[`lv`,[[0,4,8,1,12,10],i,[]]],[`ml`,[[0,4,8,1,11,10,21,34,35],c,[]]],[`mr`,[[0,1,8,36,10,9,4],u,[]]],[`nb`,m],[`nn`,m],[`no`,m],[`nl`,[[],[16,15],[]]],[`pl`,[s,[13,14,37,6,15],[]]],[`ro`,m],[`ru`,[[0,4,8,1,11,38,12,10],u,[]]],[`si`,[[0,4,9,1,8],u,r]],[`sl`,[[0,4,1,8,11,10],u,[]]],[`sv`,[[0,4],[16,15],r]],[`ta`,[[0,4,1,8,10,11,9,12],[],[]]],[`te`,[[0,28,1,8,10,11],[],[]]],[`uk`,[s,u,[]]],[`ur`,f]]),g=/* @__PURE__ */ `nominative accusative definite indefinite genitive masculine feminine construct dative ablative locative instrumental vocative animate inanimate neuter common unspecified abessive adessive allative comitative elative essive illative inessive partitive translative oblique causal delative sublative superessive terminative locativecopulative sociative ergative personal prepositional`.split(` `),_=`49.0.0`;function v(e){let n=h.get(t(e).split(`-`)[0]);if(n===void 0)return;let[r,i,a]=n.map(e=>e.map(e=>g[e]));return{cases:r,genders:i,definiteness:a}}var y=/* @__PURE__ */ Object.assign(v,{getGrammaticalFeatures:v,VERSION:_});export{_ as VERSION,y as default,v as getGrammaticalFeatures};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cldr-grammatical-features",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Find the grammatical cases, genders and definiteness forms that the nouns of a language have, for translation and message formatting tools, based on the Unicode CLDR",
5
5
  "keywords": [
6
6
  "unicode",