Stemmer v0.1.0-alpha.0 Stemmer.Step4

Summary

Functions

Search for the longest among the following suffixes, and, if found and in R2, perform the action indicated

Functions

apply(word)
remove_suffix_in_r2(word)

Search for the longest among the following suffixes, and, if found and in R2, perform the action indicated.

Examples

iex> Stemmer.Step4.remove_suffix_in_r2("national")
"nation"

iex> Stemmer.Step4.remove_suffix_in_r2("association")
"associat"

iex> Stemmer.Step4.remove_suffix_in_r2("apprehension")
"apprehens"

iex> Stemmer.Step4.remove_suffix_in_r2("concepcion")
"concepcion"