def step_1a(w):
    if w.endswith("s"):
        if w.endswith("sses"):
            return w[:-2]
        if w.endswith("ies"):
            # Replace by -ie if preceded by just one letter, 
            # otherwise by -i (so ties => tie, cries => cri).
            return len(w)==4 and w[:-1] or w[:-2]
        if w.endswith(("us", "ss")):
            return w
        if find_vowel(w) < len(w)-2:
            # Delete -s if the preceding part contains a vowel not immediately before the -s 
            # (so gas and this retain the -s, gaps and kiwis lose it).
            return w[:-1]
    return w
Returns a dictionary of a list of variables that could be obtained from the 'vars' param in other functions.
dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py/step_1a--crossover with--dataset/ETHPy150Open mesowx/MesoPy/MesoPy.py/Meso.variables