CWIS Developer Documentation
|
o------------------------------------------------------------------------——o | This package is licensed under the Phpguru license. More...
Static Public Member Functions | |
static | Stem ($word, $cache=false) |
Stems a word. | |
o------------------------------------------------------------------------——o | This package is licensed under the Phpguru license.
A quick summary is | | that for commercial use, there is a small one-time licensing fee to pay. For | | registered charities and educational institutes there is a reduced license | | fee available. You can read more at: | | | | http://www.phpguru.org/static/license.html | o------------------------------------------------------------------------——o PHP5 Implementation of the Porter Stemmer algorithm. Certain elements were borrowed from the (broken) implementation by Jon Abernathy.
Usage:
$stem = PorterStemmer::Stem($word);
How easy is that?
Definition at line 25 of file PorterStemmer.php.
|
static |
Stems a word.
Simple huh?
string | $word | Word to stem |
bool | $cache | Whether to use caching |
Remove: 've, n't, 'd
Definition at line 56 of file PorterStemmer.php.