NlpTools API
Class

NlpTools\Stemmers\Stemmer

abstract class Stemmer implements TransformationInterface

http://en.wikipedia.org/wiki/Stemming

Methods

string stem($word)

Remove the suffix from $word

array stemAll(array $tokens)

Apply the stemmer to every single token.

mixed transform($word)

Return the value transformed.

Details

at line 18
abstract public string stem($word)

Remove the suffix from $word

Parameters

$word

Return Value

string

at line 25
public array stemAll(array $tokens)

Apply the stemmer to every single token.

Parameters

array $tokens

Return Value

array

at line 34
public mixed transform($word)

Return the value transformed.

Parameters

$word

Return Value

mixed