wink-porter2-stemmer
Implementation of Porter Stemmer Algorithm V2 by Dr Martin F Porter
wink-porter2-stemmer is a part of wink, which is a family of Machine Learning NPM packages. They consist of simple and/or higher order functions that can be combined with NodeJS stream
and child processes
to create recipes for analytics driven business solutions.
Stems an inflected word into its base form, for example learning to learn. It is also being used in wink-nlp-utils that prepares raw text for Natural Language Processing (NLP).
Installation
Use npm to install:
npm install wink-porter2-stemmer --save
Example
var stem = require( 'wink-porter2-stemmer' );
console.log( stem( 'properly' ) );
console.log( stem( 'borrowed' ) );
console.log( stem( 'stemming' ) );
API
stem
Stems an inflected word
using Porter2 stemming algorithm.
Parameters
word
string — word to be stemmed.
Examples
stem( 'consisting' );
Returns string — the stemmed word.
Need Help?
If you spot a bug and the same has not yet been reported, raise a new issue or consider fixing it and sending a pull request.
Copyright & License
wink-porter2-stemmer is copyright 2017 GRAYPE Systems Private Limited.
It is licensed under the under the terms of the GNU Affero General Public License as published by the Free
Software Foundation, version 3 of the License.