Spam detection and sentiment analysis