README
wordnet.lextype
Get lex type of WordNet from lex number & lex id.
Use wordnet.lextype-tolexnumber, if lex number is needed.
Use wordnet.lextype-tolexid, if lex id is needed.
const lexType = require('wordnet.lextype');
// lexType(<lex_number>, [lex_id=0])
// lexType(<string>)
// (format: [8-bit lex_number][6-bit lex_id])
lexType(65, 7);
// 4167
lexType('noun.act.1');
// 65
lexType('noun.act');
// 64
lexType('noun.1');
// 1
lexType('n.1');
// 1
lexType('n');
// 0