Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

lemmer

0.3.0 • Public • Published

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

Keywords

none

install

npm i lemmer

Downloadsweekly downloads

63

version

0.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability