Stemmer

Implements \Joomla\Language\StemmerInterface

Stemmer base class.

abstract deprecated
since

1.0

deprecated

2.0 Stemmer objects should directly implement the StemmerInterface

Methods

getInstance

Method to get a stemmer, creating it if necessary.

getInstance(string $adapter) : \Joomla\Language\Stemmer
static deprecated
since

1.0

deprecated

2.0 Use LanguageFactory::getStemmer() instead

throws

\RuntimeExceptionon invalid stemmer.

Arguments

$adapter

stringThe type of stemmer to load.

Response

\Joomla\Language\Stemmer

Properties

cache

An internal cache of stemmed tokens.

deprecated
since

1.0

deprecated

2.0 Subclasses should implement this property directly

Type(s)

array

instances

Stemmer instances.

static deprecated
since

1.0

deprecated

2.0

Type(s)

array<mixed,\Joomla\Language\Stemmer>