stemCompletion: Complete Stems
Heuristically complete stemmed words.
stemCompletion(x, dictionary, type = c("prevalent", "first", "longest", "none", "random", "shortest"))
A character vector of stems to be completed.
Corpus or character vector to be searched
for possible completions.
character naming the heuristics to be used:
- Default. Takes the most frequent match as
- Takes the first found completion.
- Takes the longest completion in terms of
- Is the identity.
- Takes some completion.
- Takes the shortest completion in terms of
A character vector with completed words.
Ingo Feinerer (2010).
Analysis and Algorithms for Stemming Inversion.
Information Retrieval Technology --- 6th Asia Information Retrieval Societies Conference, AIRS 2010, Taipei, Taiwan, December 1--3, 2010. Proceedings, volume 6458 of Lecture Notes in Computer Science, pages 290--299. Springer-Verlag, December 2010.
stemCompletion(c("compan", "entit", "suppl"), crude)