Stemmer v1.0.0-beta.1 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"

iex> Stemmer.Step4.remove_suffix_in_r2("addition")
"addit"

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