Skip to content

[source]

Word Stemmer#

Word Stemmer reduces inflected and derived words to their root form using the Snowball method. For example, the sentence "Majority voting is likely foolish" stems to "Major vote is like foolish."

Note

For a complete list of supported languages you can visit the PHP Stemmer documentation.

Parameters#

# Name Default Type Description
1 language string The minimum number of contiguous words to a token.

Example#

use Rubix\ML\Tokenizers\WordStemmer;

$tokenizer = new WordStemmer('english');

Last update: 2021-04-26