PorterStemmer Class Reference

PHP5 Implementation of the Porter Stemmer algorithm. More...

List of all members.


Static Public Member Functions

static Stem ($word, $cache=false)
 Stems a word.

Detailed Description

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.


Member Function Documentation

static PorterStemmer::Stem ( word,
cache = false 
) [static]

Stems a word.

Simple huh?

Parameters:
string $word Word to stem
bool $cache Whether to use caching
Returns:
string Stemmed word

Remove: 've, n't, 'd

Definition at line 56 of file PorterStemmer.php.


The documentation for this class was generated from the following file: