Stemmer.Step4 (Stemmer v1.2.0)

Summary

Functions

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

Functions

Link to this function

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"