JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22702
  • Score
    100M100P100Q170898F
  • 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 Coverage Downloads Size

Porter stemming algorithm.

Install

npm:

npm install stemmer

API

var stemmer = require('stemmer')

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

CLI

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