Stem words in a text document using Porter's stemming algorithm.
# S3 method for character
stemDocument(x, language = "english")
# S3 method for PlainTextDocument
stemDocument(x, language = meta(x, "language"))
A character vector or text document.
A string giving the language for stemming.
The argument language
is passed over to
wordStem
as the name of the Snowball stemmer.
# NOT RUN {
data("crude")
inspect(crude[[1]])
inspect(stemDocument(crude[[1]]))
# }
Run the code above in your browser using DataLab