stemmer
Porter stemming algorithm.
Check out stmr.c
and stmr
for a faster version, in C.
API
Install:
npm install stemmer
Use:
var stemmer = require('stemmer');
stemmer('considerations');
stemmer('detestable');
stemmer('vileness');
CLI
Install:
npm install -g stemmer
Use:
Usage: stemmer [options] <words...>
Porter Stemmer algorithm
Options:
-h, --help output usage information
-v, --version output version number
Usage:
# output stems
$ stemmer considerations
# consider
# output stems from stdin
$ echo "detestable vileness" | stemmer
# detest vile
Related
License
MIT © Titus Wormer