def find_vowel(w):
    """ Returns the index of the first vowel in the word.
        When no vowel is found, returns len(word).
    """
    for i, ch in enumerate(w):
        if ch in VOWELS: return i
    return len(w)
dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py/find_vowel/original