def negated(input_words, include_nt=True):
input_words = [str(w).lower() for w in input_words]<EOL>neg_words = []<EOL>neg_words.extend(NEGATE)<EOL>for word in neg_words:<EOL><INDENT>if word in input_words:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>if include_nt:<EOL><INDENT>for word in input_words:<EOL><INDENT>if "<STR_LIT>" in word:<EOL><INDENT>return True<EOL><DEDENT><DEDENT><DEDENT>if "<STR_LIT>" in input_words:<EOL><INDENT>i = input_words.index("<STR_LIT>")<EOL>if i > <NUM_LIT:0> and input_words[i - <NUM_LIT:1>] != "<STR_LIT>":<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Determine if input contains negation words