Stemmer v0.1.0-alpha.0 Stemmer.Step1a

Summary

Functions

Delete if the preceding word part contains a vowel not immediately before the s (so gas and this retain the s, gaps and kiwis lose it)

Replace by i if preceded by more than one letter, otherwise by ie (so tiestie, criescri)

Replace by ss

Functions

apply(word)
remove_s(word)

Delete if the preceding word part contains a vowel not immediately before the s (so gas and this retain the s, gaps and kiwis lose it).

Examples

iex> Stemmer.Step1a.remove_s("gas")
"gas"

iex> Stemmer.Step1a.remove_s("this")
"this"

iex> Stemmer.Step1a.remove_s("gaps")
"gap"

iex> Stemmer.Step1a.remove_s("kiwis")
"kiwi"
replace_ied_ies(word)

Replace by i if preceded by more than one letter, otherwise by ie (so tiestie, criescri).

Examples

iex> Stemmer.Step1a.replace_ied_ies("tied")
"tie"

iex> Stemmer.Step1a.replace_ied_ies("ties")
"tie"

iex> Stemmer.Step1a.replace_ied_ies("cries")
"cri"
replace_sses(word)

Replace by ss.

Examples

iex> Stemmer.Step1a.replace_sses("actresses")
"actress"