stem_porter: Stem using Porter's

Description Usage Arguments

View source: R/stem_porter.R

Description

This function uses the Porters's algorithm to stem a vector of words. By default, the Porter's algorithm leaves words cutted. As this makes reading stemmed texts very difficult, this function provides an option to complete the stemmed words. By default it completes with the most used word in the text that has the same stem.

Usage

1
stem_porter(words, complete = TRUE)

Arguments

words

character vector of words to be stemmed

complete

wheter words must be completed or not (T)

words <- c("balões", "aviões", "avião", "gostou", "gosto", "gostaram") ptstem:::stem_porter(words)


dfalbel/ptstem documentation built on May 16, 2020, 11:45 a.m.