porter-stemmer-english

1.0.1 • Public • Published

English Stemmer - Porter's Algorithm

This code is based on Martin Porter's stemming algorithm.

Here you can find the original paper on http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.848.7219&rep=rep1&type=pdf

And also there is plain text version: https://tartarus.org/martin/PorterStemmer/def.txt

The main web page of the algorithm: https://tartarus.org/martin/PorterStemmer/

There are two changes in the main algorithm as described in the above page since 1980. They are also included in the code base too.

Code is tested with the official vocabulary and output txt files.

Sample vocabulary

Output

Example Usage

Install the library

npm i porter-stemmer-english

Call stemmer

const stemmer = require("porter-stemmer-english") 
stemmer("possibly") //returns possibli

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i porter-stemmer-english

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    13.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • chopinml