stem: Stem words

stemR Documentation

Stem words

Description

Stem words

Usage

stem(corpus, language = "english")

## S3 method for class 'list'
stem(corpus, language = "english")

## S3 method for class 'character'
stem(corpus, language = "english")

## S3 method for class 'VCorpus'
stem(corpus, language = "english")

## Default S3 method:
stem(corpus, language = "english")

Arguments

corpus

a compatible object storing documents (actually, list (and corpus-list of (tokened) documents, character vectors and VCorpus)

language

(chr) language to pass to package Snowballc to perform the stemming, default is 'english'.

Value

an object of the same class of input with documents written with all words stemmed. Names of stemmed tokens are the original un-stemed ones

Examples

sample_corpus <- list(
  c('this is', 'is a', 'a beautiful', 'beautiful day'),
  c('hello word')
)


UBESP-DCTV/costumer documentation built on Feb. 1, 2023, 4:52 a.m.