def split_into_keywords(string, to_filter_stopwords=False):
 if to_filter_stopwords:
  return [kw for kw in RE_KEYWORD_SPLIT.split(string.lower()) if ((len(kw) > 0) and (kw not in DIALOG_STOPWORDS))]
 else:
  return [kw for kw in RE_KEYWORD_SPLIT.split(string.lower()) if (len(kw) > 0)]

def split_into_keywords ( string , to_filter_stopwords = False ) : if to_filter_stopwords : return [ kw for kw in RE_KEYWORD_SPLIT . split ( string . lower ( ) ) if ( ( len ( kw ) > 0 ) and ( kw not in DIALOG_STOPWORDS ) ) ] else : return [ kw for kw in RE_KEYWORD_SPLIT . split ( string . lower ( ) ) if ( len ( kw ) > 0 ) ]
takes a string and returns a list of lowercase strings .