wordnet-expandsynset

0.1.2 • Public • Published

wordnet-expandsynset

NPM

Expand synset data of WordNet in minified form.

Use wordnet-minifysynset, if minification is needed.

const expandSynset = require('wordnet-expandsynset');
// expandSynset(<synset(minified-form)>)
 
expandSynset({l: 43,
  s: 'v',
  w: [ { w: 'deflagrate', l: 0 } ],
  p:
   [ { o: '@', y: 2768426, p: 'v', s: 0, t: 0 },
     { o: '+', y: 13471590, p: 'n', s: 1, t: 1 } ],
  f: [ { f: 8, w: 0 }, { f: 11, w: 0 } ],
  g: 'cause to burn rapidly and with great intensity; "care must be exercised when this substance is to be deflagrated"'});
// { lex_filenum: 43,
//   ss_type: 'v',
//   w_cnt: 1,
//   words: [ { word: 'deflagrate', lex_id: 0 } ],
//   p_cnt: 2,
//   pointers:
//    [ { pointer_symbol: '@',
//        synset_offset: 2768426,
//        pos: 'v',
//        source: 0,
//        target: 0 },
//      { pointer_symbol: '+',
//        synset_offset: 13471590,
//        pos: 'n',
//        source: 1,
//        target: 1 } ],
//   f_cnt: 2,
//   frames: [ { f_num: 8, w_num: 0 }, { f_num: 11, w_num: 0 } ],
//   gloss: 'cause to burn rapidly and with great intensity; "care must be exercised when this substance is to be deflagrated"' }

Readme

Keywords

Package Sidebar

Install

npm i wordnet-expandsynset

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • wolfram77