Stemmer v1.0.0-beta.1 Stemmer.Step1b
Summary
Functions
Delete if the preceding word part contains a vowel, and after the deletion
Replace by ee
if in R1
Examples
Functions
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", "ing")
{:found, "luxuriate"}
iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hopping", "ing")
{:found, "hop"}
iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hoping", "ing")
{:found, "hope"}
Replace by ee
if in R1.
Examples
iex> Stemmer.Step1b.replace_eed_eedly("proceed", "eed")
{:found, "procee"}
iex> Stemmer.Step1b.replace_eed_eedly("proceedly", "eedly")
{:found, "procee"}
iex> Stemmer.Step1b.replace_eed_eedly("need", "eed")
{:found, "need"}