node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



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.


npm install porter-stemmer

or git clone this repo.


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