Undo stemming after tm::stemDocument()?

32 Views Asked by At

I have a list of stemmed words in R. Now, I want to undo my stemming in order to receive a list of all the "complete" words in R.

This is the code I used for stemming my wordlist:

library(tm)

Stemmed.words <- tm_map(Stemmed.words, stemDocument, language = "english") 

But is there a function to reverse the stemming?

1

There are 1 best solutions below

0
lili4491li On

I actually found a way to reverse the stemming using the tm package. It provides a fumction stemCompletion, which provides different options to find the original word based on the word-stem. This is very helpful for everyone doing a textual analysis.