word-to-root-stem
ai-research-agent / tokenize/word-to-root-stem
Topics
stemWordToRoot()
function stemWordToRoot(word): string
Stems a word using the Porter Stemmer for removing inflectional endings like "ing", "ist", "ize".
Parameters
Parameter | Type | Description |
---|---|---|
|
| The word to be stemmed |
Returns
string
- The stemmed word
Author
Example
var rootWord = stemWordToRoot("running"); // returns "run"