Fast Porter Stemmer implementation
Clone or download
Latest commit c676bc1 Aug 29, 2018

readme.md

stemmer Build Status Coverage Status

Porter stemming algorithm.

API

Install:

npm install stemmer

Use:

var stemmer = require('stemmer')

stemmer('considerations') // => 'consider'
stemmer('detestable') // => 'detest'
stemmer('vileness') // => 'vile'

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