Pattern recognition and sentiment

Can you teach a machine to recognize emotion? Do an overview of some basic computerized ways to recognize sentiment in written text and have an active discussion regarding the uses, strengths and weaknesses of machine-based sentiment analysis.