def type_of(char):
    """ Determines whether a character is alpha, a fish hook, or other """
    if char.isalpha():
        return 'alpha'
    elif char == '<' or char == '>':
        return 'hook'
    else:
        return 'other'
