Sentiment analysis can also be used to detect specific emotions, such as anger, fear, joy, or sadness.