Stemmer.Step1b (Stemmer v1.2.0)
Summary
Functions
Delete if the preceding word part contains a vowel, and after the deletion
Replace by ee
if in R1.
Examples
iex> Stemmer.Step1b.replace_suffix("bleed")
"bleed"
Functions
Link to this function
apply(word)
Link to this function
remove_ed_edly_ing_ingly(word)
Delete if the preceding word part contains a vowel, and after the deletion:
- if the word ends
at
,bl
oriz
adde
(soluxuriat
→luxuriate
), or - if the word ends with a double remove the last letter (so
hopp
→hop
), or - if the word is short, add
e
(sohop
→hope
)
Examples
iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("luxuriating")
{:found, "luxuriate"}
iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hopping")
{:found, "hop"}
iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hoping")
{:found, "hope"}
Link to this function
replace_eed_eedly(word)
Replace by ee
if in R1.
Examples
iex> Stemmer.Step1b.replace_eed_eedly("proceed")
{:found, "procee"}
iex> Stemmer.Step1b.replace_eed_eedly("proceedly")
{:found, "procee"}
iex> Stemmer.Step1b.replace_eed_eedly("need")
{:found, "need"}
Link to this function
replace_suffix(word)
Examples
iex> Stemmer.Step1b.replace_suffix("bleed")
"bleed"