stem: Perform word stemming on text

Description Usage Arguments Value Note References Examples

View source: R/stem.r

Description

Not all languages are supported by each stemmer. See the official documentation for more information.

Usage

1
stem(text, stemmer = NULL, language = NULL)

Arguments

text

one element character vector containing the text to analyze (stem). Must be <= 60,000 characters.

stemmer

which stemmer to use. Use NULL to have the API pick an appropriate stemmer or choose one along with a supported language (see http://text-processing.com/docs/stem.html).

language

the language text is in. Value should be NULL (which will cause the API to pick the appropriate stemmer) or one of the supported languages here: http://text-processing.com/docs/stem.html.

Value

list containing the stemmed text

Note

The public API is for non-commercial purposes, and each method is throttled to 1,000 calls per day per IP

References

http://text-processing.com/docs/stem.html

Examples

1
2
3
4
stem("processing")

stem("correr", "snowball", "spanish")
stem("interestingly enough they overwhelmingly supported the wrong candidate")

hrbrmstr/sentimental documentation built on May 17, 2019, 5:13 p.m.