powered by
Heuristically complete stemmed words.
stemCompletion(x, dictionary, type = c("prevalent", "first", "longest", "none", "random", "shortest"))
A character vector with completed words.
A character vector of stems to be completed.
A Corpus or character vector to be searched for possible completions.
Corpus
A character naming the heuristics to be used:
character
prevalent
Default. Takes the most frequent match as completion.
first
Takes the first found completion.
longest
Takes the longest completion in terms of characters.
none
Is the identity.
random
Takes some completion.
shortest
Takes the shortest completion in terms of characters.
Feinerer:2010
data("crude") stemCompletion(c("compan", "entit", "suppl"), crude)
Run the code above in your browser using DataLab