def is_affirmative(phrase):
    if isinstance(phrase, string_types):
        return phrase.lower()[0] in ['t', 'y']
    else:
        return phrase
Determine if a phrase is in the affirmative
dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/lib/__init__.py/is_affirmative