Closed kengz closed 8 years ago
This would be a simple matter of mapping the 'lexFilenum' attribute to the lexnames.
An example of how you intend to use this would help in prioritizing this work.
Oh thanks. Though it'd be sweet if we can get the words directly than having to manually translate into the lexnames.
A use case would be for a module to know if it's supposed to perform a function. For example inputting "bot switch on the lights", after tokenizing and some string cleaning, if a token belongs to "noun.act" or "verb.change" in this case it will invoke the function if it is recognized (function = switch on, argument = lights in this case).
Would this be a reasonable addition, i.e. showing the lex name directly. Thanks
lexName
property is added in v1.1. See lookupAdjective example in readme.
Awesome, thanks!
as detailed here [https://github.com/Planeshifter/node-wordnet-magic#lexdomain],
For example 'dance' gives lexdomain 'noun.act'