\FinderIndexerStemmerFr
French stemmer class for Smart Search indexer.
First contributed by Eric Sanou (bobotche@hotmail.fr)
This class is inspired in Alexis Ulrich's French stemmer code (http://alx2002.free.fr)
Synopsis
class FinderIndexerStemmerFr
extends FinderIndexerStemmer
{
- // members
- private $_stemRules;
- // Inherited members from FinderIndexerStemmer
- public $cache;
- // methods
- public string stem()
- protected static array getStemRules()
- private static integer _getFirstRule()
- private static boolean _check()
- private static string _getStem()
- // Inherited methods from FinderIndexerStemmer
- public static FinderIndexerStemmer getInstance()
- public abstract string stem()
Hierarchy
Extends
Members
private
- $_stemRules
—
array
Stemming rules.
public
- $cache
—
array
An internal cache of stemmed tokens.
Methods
private
- _check() — Check the acceptability of a stem for French language
- _getFirstRule() — Returns the number of the first rule from the rule number that can be applied to the given reversed input.
- _getStem() — Paice/Husk stemmer which returns a stem for the given $input
protected
- getStemRules() — French stemmer rules variables.
public
- stem() — Method to stem a token and return the root.
Inherited from FinderIndexerStemmer
public
- getInstance() — Method to get a stemmer, creating it if necessary.
- stem() — Method to stem a token and return the root.