lemmer
Wordnet Lemmer
Last updated 3 years ago by benhjames .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lemmer 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.3.0                                ...           latest (3 years ago)

9 Versions

  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (2)
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 86
Dependencies (3)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |