The process of analyzing text or speech to determine the emotional tone or attitude expressed, such as positive, negative, or neutral.