Stemmer v1.0.0-beta.0 Stemmer.Step1b

Summary

Functions

Delete if the preceding word part contains a vowel, and after the deletion

Replace by ee if in R1

Functions

apply(word)
remove_ed_edly_ing_ingly(word, suffix)

Delete if the preceding word part contains a vowel, and after the deletion:

  • if the word ends at, bl or iz add e (so luxuriatluxuriate), or
  • if the word ends with a double remove the last letter (so hopphop), or
  • if the word is short, add e (so hophope)

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_eed_eedly(word, suffix)

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"}
replace_suffix(word)

Examples

iex> Stemmer.Step1b.replace_suffix("bleed")
"bleed"