StemWord (open)

Stem a word in a given language

Syntax

LOADLIB "wh::util/langspecific.whlib";

STRING FUNCTION StemWord(STRING word, STRING langcode)

Parameters

STRING word

The word to stem

STRING langcode

The two-letter code of the language to use for stemming

Return value

STRING

The stemmed word, or an empty string in case of an unrecognized language code