Abstract Class JLanguageStemmer

Description

Stemmer base class.

  • abstract:
  • since: 12.1

Located in /libraries/joomla/language/stemmer.php (line 19)


	
			
Direct descendents
Class Description
 class JLanguageStemmerPorteren Porter English stemmer class.
Variable Summary
 static array $instances
 array $cache
Method Summary
 static JLanguageStemmer getInstance (string $adapter)
 string stem (string $token, string $lang)
Variables
static array $instances = array() (line 33)
  • var: JLanguageStemmer instances.
  • since: 12.1
  • access: protected
array $cache = array() (line 27)

An internal cache of stemmed tokens.

  • since: 12.1
  • access: protected
Methods
static getInstance (line 45)

Method to get a stemmer, creating it if necessary.

  • return: A JLanguageStemmer instance.
  • throws: RuntimeException on invalid stemmer.
  • since: 12.1
  • access: public
static JLanguageStemmer getInstance (string $adapter)
  • string $adapter: The type of stemmer to load.
stem (line 78)

Method to stem a token and return the root.

  • return: The root token.
  • abstract:
  • since: 12.1
  • access: public
string stem (string $token, string $lang)
  • string $token: The token to stem.
  • string $lang: The language of the token.

Redefined in descendants as:

Documentation generated on Tue, 19 Nov 2013 15:14:21 +0100 by phpDocumentor 1.4.3