I would like to use the removeWords
(stopwords("english")
) function via: corpus <- tm_map(corpus,removeWords, stopwords("english"))
but some words like "not", and other negations I'd like to keep.
Is it possible to use the removeWords, stopwords("english")
function BUT exclude certain words in that list if specified?
How could I prevent the removal of "not" for example?
(Secondary) is it possible to set this type of control list to all "negations"?
I'd rather not resort to creating my own custom list with only the words from that stoplist that I'm interested in.