Skip to content


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."


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


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


use Rubix\ML\Tokenizers\WordStemmer;

$tokenizer = new WordStemmer('english');