Fast Porter Stemmer implementation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Refactor code-style Aug 29, 2018
.editorconfig Rewrite module (without API changes) Sep 19, 2016
.gitignore Add `yarn.lock` to `.gitignore` Aug 29, 2018
.npmrc Add `.npmrc` Aug 29, 2018
.prettierignore Refactor code-style Aug 29, 2018
.travis.yml Update Node in Travis Aug 29, 2018
cli.js Refactor code-style Aug 29, 2018
index.js Refactor code-style Aug 29, 2018
license Move `LICENSE` > `license` Aug 29, 2018
package.json 1.0.3 Aug 29, 2018
readme.md Refactor code-style 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