wordnet-adverbdatamap.min
v0.1.4
Published
Get adverb data of WordNet as map (browserified, minified).
Downloads
23
Readme
wordnet-adverbdatamap.min
Get adverb data of WordNet as map (browserified, minified).
Use wordnet-adverbdatamap, if minification is not needed.
const adverbDataMap = require('wordnet-adverbdatamap.min');
// adverbDataMap [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)}}
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 } ],
// g: 'without musical accompaniment; "they performed a cappella" ' }
adverbDataMap.get(1885);
// { l: 2,
// s: 'r',
// w:
// [ { w: 'AD', l: 0 },
// { w: 'A.D.', l: 0 },
// { w: 'anno_Domini', l: 0 } ],
// p: [],
// g: 'in the Christian era; used before dates after the supposed year Christ was born; "in AD 200" ' }
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 } ],
// g: 'in a voluminous manner ' }