if token == "is" and i + 1 < num_tokens and tokens[i + 1] == "not":