

def vowel_consonant_pairs(w, max=None):
    ' Returns the number of consecutive vowel-consonant pairs in the word.\n    '
    m = 0
    for (i, ch) in enumerate(w):
        if (is_vowel(ch) and (i < (len(w) - 1)) and is_consonant(w[(w + 1)])):
            m += 1
            if (m == max):
                break
    return m

dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py vowel_consonant_pairs/VarMisuse@59/100 `i`->`w`