def step_5b(w):
    if w.endswith("ll") and R2(w).endswith("l"):
        return w[:-1]
    return w

#--- EXCEPTIONS ------------------------------------------------------------------------------------

# Exceptions:
# - in, out and can stems could be seen as stop words later on.
# - Special -ly cases.
Step 5b strips suffix -l if preceded by l and multiple vowel-consonant pairs,
dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py/step_5b