Search:

# CWIS Developers Documentation

Static Public Member Functions

# PorterStemmer Class Reference

o------------------------------------------------------------------------------o | This package is licensed under the Phpguru license. More...

## Static Public Member Functions
static | Stem ($word, $cache=false)
| Stems a word.

List of all members.

## Detailed Description

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.

## 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:

- PorterStemmer.php