0.1.4 • Published 6 years ago
wordnet-adjectivedatamap v0.1.4
wordnet-adjectivedatamap
Get adjective data of WordNet as map.
Use wordnet-adjectivedatamap.nogloss, if gloss is not needed. Use wordnet-adjectivedatamap.min, if minification is needed.
const adjectiveDataMap = require('adjectivedatamap');
// adjectiveDataMap [Map]
// {synset_offset => {lex_filenum, ss_type, w_cnt, words, p_cnt, pointers, gloss}}
// {words: {word, lex_id}}
// {pointers: {pointer_symbol, synset_offset, pos, source, target}}
adjectiveDataMap.get(1740);
// { lex_filenum: 0,
// ss_type: 'a',
// w_cnt: 1,
// words: [ { word: 'able', lex_id: 0 } ],
// p_cnt: 5,
// pointers:
// [ { pointer_symbol: '=',
// synset_offset: 5207437,
// pos: 'n',
// source: 0,
// target: 0 },
// { pointer_symbol: '=',
// synset_offset: 5624029,
// pos: 'n',
// source: 0,
// target: 0 },
// { pointer_symbol: '+',
// synset_offset: 5624029,
// pos: 'n',
// source: 1,
// target: 1 },
// { pointer_symbol: '+',
// synset_offset: 5207437,
// pos: 'n',
// source: 1,
// target: 1 },
// { pointer_symbol: '!',
// synset_offset: 2098,
// pos: 'a',
// source: 1,
// target: 1 } ],
// gloss: '(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);
// { lex_filenum: 0,
// ss_type: 'a',
// w_cnt: 1,
// words: [ { word: 'unable', lex_id: 0 } ],
// p_cnt: 2,
// pointers:
// [ { pointer_symbol: '=',
// synset_offset: 5207437,
// pos: 'n',
// source: 0,
// target: 0 },
// { pointer_symbol: '!',
// synset_offset: 1740,
// pos: 'a',
// source: 1,
// target: 1 } ],
// gloss: '(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);
// { lex_filenum: 44,
// ss_type: 'a',
// w_cnt: 1,
// words: [ { word: 'unsaponified', lex_id: 0 } ],
// p_cnt: 2,
// pointers:
// [ { pointer_symbol: '!',
// synset_offset: 3167204,
// pos: 'a',
// source: 1,
// target: 1 },
// { pointer_symbol: '<',
// synset_offset: 539651,
// pos: 'v',
// source: 1,
// target: 1 } ],
// gloss: 'not converted into soap; "unsaponified fat"' }
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago