def isPositive(phrase):
 return bool(re.search('\\b(sure|yes|yeah|go)\\b', phrase, re.IGNORECASE))

def isPositive ( phrase ) : return bool ( re . search ( '\\b(sure|yes|yeah|go)\\b' , phrase , re . IGNORECASE ) )
returns true if the input phrase has a positive sentiment .