

def find_vowel(w):
    ' Returns the index of the first vowel in the word.\n        When no vowel is found, returns len(word).\n    '
    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