Home > PHP > Function > Swish > SwishResult->stem()

SwishResult->stem()

SwishResult->stem - Stems the given word

Syntax

array SwishResult->stem (string $word)

Arguments

  • word - The word to stem.

Description

Stems the word based on the fuzzy mode used during indexing. Each result object is linked with its index, so the results are based on this index.

Version

PHP PECL swish >= 0.1.0

Return value

Returns array containing the stemmed word variants (usually just one).