stem_words: Stem

Description Usage Arguments Examples

View source: R/prepare.R

Description

Stem document

Usage

1
2
3
4
stem_words(document)

## S3 method for class 'document'
stem_words(document)

Arguments

document

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
init_textanalysis()

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

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

## End(Not run)

news-r/textanalysis documentation built on Nov. 4, 2019, 9:40 p.m.