Skip to content

Commit

Permalink
added list of available stemmers inside README file
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed Feb 7, 2018
1 parent 338d663 commit 7e84f19
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,23 @@ console.log(natural.PorterStemmerRu.stem("падший"));
console.log(natural.PorterStemmerEs.stem("jugaría"));
```

The following stemmers are available:

* `PorterStemmer`
* `LancasterStemmer`
* `PorterStemmerFa`
* `PorterStemmerFr`
* `PorterStemmerRu`
* `PorterStemmerEs`
* `PorterStemmerIt`
* `PorterStemmerNo`
* `PorterStemmerSv`
* `PorterStemmerPt`
* `StemmerFr`
* `StemmerPl`
* `StemmerJa`
* `StemmerId`

`attach()` patches `stem()` and `tokenizeAndStem()` to String as a shortcut to
`PorterStemmer.stem(token)`. `tokenizeAndStem()` breaks text up into single words
and returns an array of stemmed tokens.
Expand Down

0 comments on commit 7e84f19

Please sign in to comment.