def filter_stopwords(phrase):
if not isinstance(phrase, list):<EOL><INDENT>phrase = phrase.split()<EOL><DEDENT>stopwords = ['<STR_LIT>', '<STR_LIT:a>', '<STR_LIT>', '<STR_LIT:to>']<EOL>return [word.lower() for word in phrase if word.lower() not in stopwords]<EOL>
Filter out stop words and return as a list of words