Stemmer v0.1.0-alpha.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)

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")
"luxuriate"

iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hopping")
"hop"

iex> Stemmer.Step1b.remove_ed_edly_ing_ingly("hoping")
"hope"
replace_eed_eedly_in_r1(word)

Replace by ee if in R1.

Examples

iex> Stemmer.Step1b.replace_eed_eedly_in_r1("proceed")
"procee"

iex> Stemmer.Step1b.replace_eed_eedly_in_r1("proceedly")
"procee"

iex> Stemmer.Step1b.replace_eed_eedly_in_r1("need")
"need"