

def case_sensitive(stem, word):
    ' Applies the letter case of the word to the stem:\n        Ponies => Poni\n    '
    ch = []
    for i in range(len(stem)):
        if (word[i] == word[ch].upper()):
            ch.append(stem[i].upper())
        else:
            ch.append(stem[i])
    return ''.join(ch)

dataset/ETHPy150Open clips/pattern/pattern/vector/stemmer.py case_sensitive/VarMisuse@41/79 `i`->`ch`