Stemmer.Step1a (Stemmer v1.2.0)
Summary
Functions
Do nothing.
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
.
## Examples
Functions
Link to this function
apply(word)
Link to this function
leave_us_ss(word)
Do nothing.
Examples
iex> Stemmer.Step1a.leave_us_ss("abyss")
{:found, "abyss"}
Link to this function
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")
{:next, "gas"}
iex> Stemmer.Step1a.remove_s("this")
{:next, "this"}
iex> Stemmer.Step1a.remove_s("gaps")
{:found, "gap"}
iex> Stemmer.Step1a.remove_s("kiwis")
{:found, "kiwi"}
Link to this function
replace_ied_ies(word)
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")
{:found, "tie"}
iex> Stemmer.Step1a.replace_ied_ies("ties")
{:found, "tie"}
iex> Stemmer.Step1a.replace_ied_ies("cries")
{:found, "cri"}
Link to this function
replace_sses(word)
Replace by ss
.
Examples
iex> Stemmer.Step1a.replace_sses("actresses")
{:found, "actress"}
Link to this function
replace_suffix(word)
## Examples
iex> Stemmer.Step1a.replace_suffix("abyss")
"abyss"