JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22653
  • Score
    100M100P100Q173912F
  • License MIT

Porter Stemmer algorithm

Package Exports

  • stemmer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stemmer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stemmer Build Status Coverage Status

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'); //=> '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

License

MIT © Titus Wormer