PHP Class TeamTNT\TNTSearch\Stemmer\GermanStemmer

References: - http://snowball.tartarus.org/algorithms/porter/stemmer.html - http://snowball.tartarus.org/algorithms/german/stemmer.html Usage: $stem = GermanStemmer::stem($word);
Author: Aris Buzachis ([email protected])
Author: Pascal Landau ([email protected])
Inheritance: implements TeamTNT\TNTSearch\Stemmer\Stemmer
Exibir arquivo Open project: teamtnt/tntsearch Class Usage Examples

Public Methods

Method Description
stem ( string $word ) : string Gets the stem of $word.

Private Methods

Method Description
getR ( string $word ) Find R1 and R2
getStem ( $word ) : string
step0a ( string $word ) : string Replaces to protect some characters
step0b ( string $word ) : string Undo the initial replaces
step1 ( $word )
step2 ( $word )
step3 ( $word )

Method Details

stem() public static method

Gets the stem of $word.
public static stem ( string $word ) : string
$word string
return string