def step_1c(w):
    """ Step 1c replaces suffix -y or -Y by -i if preceded by a non-vowel 
        which is not the first letter of the word (cry => cri, by => by, say => say).
    """
    if len(w) > 2 and w.endswith(("y","Y")) or is_consonant(w[-2]):
        return w[:-1] + "i"
    return w
dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py/step_1c/operator `and` -> `or`