Nanotechnology Promises Much
Miss any of our Open RFC calls?Watch the recordings here! »

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

30

Version

0.3.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar