stemmer

Fast Porter stemmer implementation

Showing:

Popularity

Downloads/wk

6.9K

GitHub Stars

92

Maintenance

Last Commit

5mos ago

Contributors

1

Package

Dependencies

0

Size (min+gzip)

0.8KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

stemmer

Build Coverage Downloads Size

Porter stemming algorithm.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install stemmer

API

This package exports the following identifiers: stemmer. There is no default export.

import {stemmer} from '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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100