Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

stemDocument

Stem Words


Description

Stem words in a text document using Porter's stemming algorithm.

Usage

## S3 method for class 'character'
stemDocument(x, language = "english")
## S3 method for class 'PlainTextDocument'
stemDocument(x, language = meta(x, "language"))

Arguments

x

A character vector or text document.

language

A string giving the language for stemming.

Details

The argument language is passed over to wordStem as the name of the Snowball stemmer.

Examples

data("crude")
inspect(crude[[1]])
inspect(stemDocument(crude[[1]]))

tm

Text Mining Package

v0.7-8
GPL-3
Authors
Ingo Feinerer [aut, cre] (<https://orcid.org/0000-0001-7656-8338>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), Artifex Software, Inc. [ctb, cph] (pdf_info.ps taken from GPL Ghostscript)
Initial release
2020-11-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.