Step 5a strips suffix -e if preceded by multiple vowel-consonant pairs, or one vowel-consonant pair that is not a short syllable.
(w)
| 231 | return w |
| 232 | |
| 233 | def step_5a(w): |
| 234 | """ Step 5a strips suffix -e if preceded by multiple vowel-consonant pairs, |
| 235 | or one vowel-consonant pair that is not a short syllable. |
| 236 | """ |
| 237 | if w.endswith("e"): |
| 238 | if R2(w).endswith("e") or R1(w).endswith("e") and not is_short_syllable(w, before=-1): |
| 239 | return w[:-1] |
| 240 | return w |
| 241 | |
| 242 | def step_5b(w): |
| 243 | """ Step 5b strips suffix -l if preceded by l and multiple vowel-consonant pairs, |
nothing calls this directly
no test coverage detected
searching dependent graphs…