wordnet-adjectivedatamap.min

0.1.4 • Public • Published

wordnet-adjectivedatamap.min

NPM

Get adjective data of WordNet as map (browserified, minified).

Use wordnet-adjectivedatamap, if minification is not needed.

const adjectiveDataMap = require('wordnet-adjectivedatamap.min');
// adjectiveDataMap [Map]
// {synset_offset => {lex_filenum(l), ss_type(s), w_cnt, words(w), p_cnt, pointers(p), gloss(g)}}
// {words(w): {word(w), lex_id(l)}}
// {pointers(p): {pointer_symbol(o), synset_offset(y), pos(p), source(s), target(t)}}

adjectiveDataMap.get(1740);
// { l: 0,
//   s: 'a',
//   w: [ { w: 'able', l: 0 } ],
//   p:
//    [ { o: '=', y: 5207437, p: 'n', s: 0, t: 0 },
//      { o: '=', y: 5624029, p: 'n', s: 0, t: 0 },
//      { o: '+', y: 5624029, p: 'n', s: 1, t: 1 },
//      { o: '+', y: 5207437, p: 'n', s: 1, t: 1 },
//      { o: '!', y: 2098, p: 'a', s: 1, t: 1 } ],
//   g: '(usually followed by `to\') having the necessary means or skill or know-how or authority to do something; "able to swim"; "she was able to program her computer"; "we were at last able to buy a car"; "able to get a grant for the project"' }
adjectiveDataMap.get(2098);
// { l: 0,
//   s: 'a',
//   w: [ { w: 'unable', l: 0 } ],
//   p:
//    [ { o: '=', y: 5207437, p: 'n', s: 0, t: 0 },
//      { o: '!', y: 1740, p: 'a', s: 1, t: 1 } ],
//   g: '(usually followed by `to\') not having the necessary means or skill or know-how; "unable to get to town without a car"; "unable to obtain funds"' }
adjectiveDataMap.get(3167317);
// { l: 44,
//   s: 'a',
//   w: [ { w: 'unsaponified', l: 0 } ],
//   p:
//    [ { o: '!', y: 3167204, p: 'a', s: 1, t: 1 },
//      { o: '<', y: 539651, p: 'v', s: 1, t: 1 } ],
//   g: 'not converted into soap; "unsaponified fat"' }

Package Sidebar

Install

npm i wordnet-adjectivedatamap.min

Weekly Downloads

19

Version

0.1.4

License

MIT

Last publish

Collaborators

  • wolfram77