What commands should I use when replacing a past word with a present word?
got, gotten, (getting) -> get
go, went (going)->go
thought -> think
bought -> buy
I want to replace it with the current word in this way.
I would appreciate your advice on my code.
library(tm)
library(XML)
crudeCorp<-VCorpus(VectorSource(readLines(file.choose())))
crudeCorp <- tm_map(crudeCorp, stripWhitespace)
I knew that the following command would change the past verb into the present form. However, after I entered this command, I looked at it. There is still a past word.
crudeCorp <- tm_map(crudeCorp, stemDocument)