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

Function step_5b

pattern/vector/stemmer.py:242–248  ·  view source on GitHub ↗

Step 5b strips suffix -l if preceded by l and multiple vowel-consonant pairs, bell => bell, rebell => rebel.

(w)

Source from the content-addressed store, hash-verified

240 return w
241
242def step_5b(w):
243 """ Step 5b strips suffix -l if preceded by l and multiple vowel-consonant pairs,
244 bell => bell, rebell => rebel.
245 """
246 if w.endswith("ll") and R2(w).endswith("l"):
247 return w[:-1]
248 return w
249
250#--- EXCEPTIONS ------------------------------------------------------------------------------------
251

Callers

nothing calls this directly

Calls 1

R2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…