Function stemWordToRoot

  • Stems a word using the Porter Stemmer for removing inflectional endings like "ing", "ist", "ize".

    Parameters

    • word: string

      The word to be stemmed

    Returns string

    • The stemmed word

    Porter, M. (1980)

    var rootWord = stemWordToRoot("running"); // returns "run"