Skip to content
/ rslp Public

❗ This is a read-only mirror of the CRAN R package repository. rslp — A Stemming Algorithm for the Portuguese Language. Homepage: https://github.com/dfalbel/rslp

License

Notifications You must be signed in to change notification settings

cran/rslp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSLP

Removedor de Sufixos da Língua Portuguesa

R build status Travis-CI Build Status AppVeyor Build Status codecov CRAN_Status_Badge

This package uses the algorithm Stemming Algorithm for the Portuguese Language described in this article by Viviane Moreira Orengo and Christian Huyck.

The idea of the stemmer is very well explained by the following schema.

Schema

Installing

To install the package you can use the following:

devtools::install_github("dfalbel/rslp")

Using

The only important function of the package is the rslp function. You can call it on a vector of characters like this:

library(rslp)
words <- c("balões", "aviões", "avião", "gostou", "gosto", "gostaram")
rslp(words)
#> [1] "bal"  "avi"  "avi"  "gost" "gost" "gost"

It works with vector of texts too, using the rslp_doc function.

docs <- c(
  "coma frutas pois elas fazem bem para a saúde.",
  "não coma doces, eles fazem mal para os dentes."
  )
rslp_doc(docs)
#> [1] "com frut poi ela faz bem par a saud." 
#> [2] "nao com doc, ele faz mal par os dent."

About

❗ This is a read-only mirror of the CRAN R package repository. rslp — A Stemming Algorithm for the Portuguese Language. Homepage: https://github.com/dfalbel/rslp

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages