def isNegative(phrase):
 return bool(re.search("\\b(no(t)?|don\\'t|stop|end)\\b", phrase, re.IGNORECASE))

def isNegative ( phrase ) : return bool ( re . search ( "\\b(no(t)?|don\\'t|stop|end)\\b" , phrase , re . IGNORECASE ) )
returns true if the input phrase has a negative sentiment .