wordnet-adjectivedatamap.nogloss.min
v0.1.4
Published
Get adjective data of WordNet as map (without gloss, browserified, minified).
Downloads
41
Maintainers
Readme
wordnet-adjectivedatamap.nogloss.min
Get adjective data of WordNet as map (without gloss, browserified, minified).
Use wordnet-adjectivedatamap.nogloss, if minification is not needed.
const adjectiveDataMap = require('wordnet-adjectivedatamap.nogloss.min');
// adjectiveDataMap [Map]
// {synset_offset => {lex_filenum(l), ss_type(s), w_cnt, words(w), p_cnt, pointers(p)}}
// {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 } ] }
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 } ] }
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 } ] }