porter-stemmer

0.9.1 • Public • Published

porter.js

Martin Porter's stemmer wrapped in CommonJS for use in node.js.

Includes a nodeunit test case to verify that the sample input vocabulary Porter provides is stemmed to the expected output.

This is merely a wrapping of the javascript port done by "Andargor" with subsequent revisions by Christopher McKenzie. More information is available on Porter's site via the link given above.

Installation

npm install porter-stemmer

or git clone this repo.

Example

> var stemmer = require('./porter').stemmer
> stemmer('Smurftastic')
'Smurftast'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.1
    1,918
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.1
    1,918
  • 0.9.0
    1

Package Sidebar

Install

npm i porter-stemmer

Weekly Downloads

1,919

Version

0.9.1

License

none

Last publish

Collaborators

  • jedparsons