English Lexicon
Extensible English language lexicon for POS tagging with Emojis and around 110K words
Installation
npm install en-lexicon --save
Usage
const lexicon = require("en-lexicon");
console.log(lexicon.lexicon.faraway);
console.log(lexicon.lexicon.acquired);
Extending
One of the main reason that I had to write my own lexicon module is that I needed it to be extensible.
To extend the lexion with medical terms for example:
const lexicon = require("en-lexicon");
lexicon.extend({
lactate:"VB",
serum:"NN"
});
console.log(lexicon.lexicon.lactate);
console.log(lexicon.lexicon.lactated);
console.log(lexicon.lexicon.lactating);
Credits
I've used Eric Brill's lexicon as starting point for this project, manually corrected some cases, and expanded it using various corpora, this one and this one for example.
License
License: The MIT License (MIT) - Copyright (c) 2017 Alex Corvi