MCPcopy Index your code
hub / github.com/clips/pattern / step_5a

Function step_5a

pattern/vector/stemmer.py:233–240  ·  view source on GitHub ↗

Step 5a strips suffix -e if preceded by multiple vowel-consonant pairs, or one vowel-consonant pair that is not a short syllable.

(w)

Source from the content-addressed store, hash-verified

231 return w
232
233def 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
242def step_5b(w):
243 """ Step 5b strips suffix -l if preceded by l and multiple vowel-consonant pairs,

Callers

nothing calls this directly

Calls 3

R2Function · 0.85
R1Function · 0.85
is_short_syllableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…