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
ties
→ tie
, cries
→ cri
)
Replace by ss
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).
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 by i
if preceded by more than one letter, otherwise by ie
(so
ties
→ tie
, cries
→ cri
).
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"