There is such a function built-in:
Classify["Sentiment", {"I love this movie", "I am so sad",
"My phone broke again", "He's amazing", "That is terrible news",
"That is terrible news!"}]
But, as you can, it has its shortcomings, as per the last example...