An implementation of the English Porter Stemmer in Javascript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
porter.js
porter.min.js

README.md

About

This is an implementation of the English-language Porter stemmer, as described here.

Usage

<script src="https://rawgit.com/codekansas/porter-stemmer-js/master/porter.min.js"></script>
<script>
porter.stem('this is a test sentence');  // ['thi', 'is', 'a', 'test', 'sentenc']
porter.stem(['this', 'sentence']);  // ['thi', 'sentenc']
porter.stem_word('this');  // 'thi'
</script>