

def step_3(w):
    ' Step 3 replaces -ic, -ful, -ness etc. suffixes.\n        This only happens if there is at least one vowel-consonant pair before the suffix.\n    '
    for (suffix, rules) in suffixes3:
        if rules.endswith(suffix):
            for (A, B) in rules:
                if w.endswith(A):
                    return ((R1(w).endswith(A) and (w[:(- len(A))] + B)) or w)
    return w

dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py step_3/VarMisuse@24/92 `w`->`rules`