wordnetdictionary.nogloss
v0.1.1
Published
In memory WordNet dictionary (without gloss).
Downloads
2
Readme
wordnetdictionary.nogloss
In memory WordNet dictionary (without gloss).
Use wordnetdictionary, if gloss is needed. For list of methods, see wordnet.book.
const wn = require('wordnetdictionary.nogloss');
// -> Book {fromJson, fromDataMap, ...}
var bind = wn.find('bind');
wn.description(bind);
// '(n: noun.cognition) bind.0'
wn.hypernyms(bind).description();
// Set {
// '(n: noun.cognition) hindrance.0, hinderance.0, deterrent.0, impediment.0, balk.0, baulk.0, check.2, handicap.0' }
var binds = wn.findAll('bind');
// (find all "bind")
binds.description(false, false, false, true);
// Set {
// '(n: noun.cognition) bind.0',
// '(v: verb.body) bind.0',
// '(v: verb.change) bind.9',
// '(v: verb.communication) bind.0',
// '(v: verb.contact) bind.0',
// '(v: verb.contact) bind.1',
// '(v: verb.contact) bind.2',
// '(v: verb.contact) bind.6',
// '(v: verb.contact) bind.7',
// '(v: verb.contact) bind.8',
// '(v: verb.social) bind.1' }
binds = wn.findAll('bind', 'noun', 'verb');
// (find all "bind" including from "noun", but excluding from "verb")
binds.description(false, false, false, true);
// Set {
// '(n: noun.cognition) bind.0' }
binds = wn.findAll('bind', 'noun', 'verb.contact');
// (find all "bind" including from "noun", but excluding from "verb.contact")
binds.description(false, false, false, true);
// Set {
// '(n: noun.cognition) bind.0',
// '(v: verb.body) bind.0',
// '(v: verb.change) bind.9',
// '(v: verb.communication) bind.0' }
binds.hypernyms().description(false, false, false, true);
// Set {
// '(n: noun.cognition) hindrance.0, hinderance.0, deterrent.0, impediment.0, balk.0, baulk.0, check.2, handicap.0',
// '(v: verb.body) indispose.0',
// '(v: verb.contact) adhere.0, hold_fast.0, bond.0, bind.6, stick.0, stick_to.3',
// '(v: verb.social) relate.0' }