def matches (tokens,idx,phrase):
    """Returns True if phrase is present at position idx in tokens"""
    for i,word in enumerate(phrase):
        if (tokens[idx+i].lower() != word):
            return False
    return True