sentiment_function (Jeffrey Breen)