wordnet.lexnumber
v0.1.6
Published
Get lex number of WordNet from part of speech number & lex file number.
Downloads
9
Readme
wordnet.lexnumber
Get lex number of WordNet from part of speech number & lex file number.
Use wordnet.lexnumber-tolexfilenumber, if lex file number is needed. Use wordnet.lexnumber-toposnumber, if part of speech number is needed.
const lexNumber = require('wordnet.lexnumber');
// lexNumber(<lex_filenum>, [pos_num=0])
// lexNumber(<string>)
lexNumber(4);
// 1 (4: noun.act)
lexNumber(0, 5);
// 144 (0: adj.all, 5: adjective satellite)
lexNumber('noun.act');
// 1
lexNumber('verb');
// 64
lexNumber('v');
// 64