JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25217F
  • License MIT

Expand synset data of WordNet in minified form.

Package Exports

  • wordnet-expandsynset

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wordnet-expandsynset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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"' }