Implementation of polarity sentiment analysis for use on headlines