lemmer
v0.3.0
Published
Wordnet Lemmer
Downloads
415
Readme
Lemmer
This is a simple English lemmer library for Node.js using WordNet. This Library is sugar for on top of validForms.
You can learn more about Lemmatizing words on WikiPedia;
npm install lemmer
Usage
var Lemmer = require('lemmer');
Lemmer.lemmatize('fought', function(err, word){
console.log(word); // ['fight']
});
Lemmer.lemmatize(['went','and','bought], function(err, words){
console.log(words); // ['go','and','buy']
});
Usage using Promises
var Lemmer = require('lemmer');
Lemmer.lemmatize('fought').then(word){
console.log(word); // ['fight']
});
Lemmer.lemmatize(['went','and','bought]).then(words){
console.log(words); // ['go','and','buy']
});
Related
Fore more Node.js NLP check out;
License
Copyright © 2015 Rob Ellis