0.3.0 • Published 7 years ago

lemmer v0.3.0

Weekly downloads
112
License
MIT
Repository
github
Last release
7 years ago

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

The MIT License (MIT)

Copyright © 2015 Rob Ellis