a preliminary helper function for sentiment analysis with the HP IDOL on Demand API