Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ $text = Porter2::stem('consistency');
echo $text; // consist
```

## Using with Composer package manager
To use this library with Composer, simply run the following command:
```
composer require markfullmer/porter2
```
Then in Your PHP application, simply use the `Porter2` static class with `stem` function:
```
use markfullmer\Porter2\Porter2;
var_dump(Porter2::stem('consistently'));
```

## Stemmer Resources
* [Step definition for the Porter 2 stemmer](http://snowball.tartarus.org/algorithms/english/stemmer.html)

Expand Down