Stem document

stem_words(document)

# S3 method for document
stem_words(document)

Arguments

document

A document as returned by the *_document family of functions, i.e.: string_document.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc <- string_document("They write, it writes")

# replaces in place!
stem_words(doc)
get_text(doc)
# }