wordnet-adverbdatamap.nogloss.min
v0.1.4
Published
Get adverb data of WordNet as map (without gloss, browserified, minified).
Downloads
8
Maintainers
Readme
wordnet-adverbdatamap.nogloss.min
Get adverb data of WordNet as map (without gloss, browserified, minified).
Use wordnet-adverbdatamap.nogloss, if minification is not needed.
const adverbDataMap = require('wordnet-adverbdatamap.nogloss.min');
// adverbDataMap [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)}}
adverbDataMap.get(1740);
// { l: 2,
// s: 'r',
// w: [ { w: 'a_cappella', l: 0 }, { w: 'a_capella', l: 0 } ],
// p:
// [ { o: '\\', y: 2260096, p: 'a', s: 2, t: 2 },
// { o: '\\', y: 2260096, p: 'a', s: 1, t: 1 } ] }
adverbDataMap.get(1885);
// { l: 2,
// s: 'r',
// w:
// [ { w: 'AD', l: 0 },
// { w: 'A.D.', l: 0 },
// { w: 'anno_Domini', l: 0 } ],
// p: [] }
adverbDataMap.get(520033);
// { l: 2,
// s: 'r',
// w: [ { w: 'voluminously', l: 0 } ],
// p:
// [ { o: '+', y: 14877, p: 'a', s: 1, t: 2 },
// { o: '+', y: 1393834, p: 'a', s: 1, t: 1 },
// { o: '\\', y: 14877, p: 'a', s: 1, t: 2 },
// { o: '\\', y: 1393834, p: 'a', s: 1, t: 1 } ] }