Social Mention uses natural language processing algorithms to determine the sentiment of a particular keyword or phrase. It looks at the context in which the keyword or phrase is used and assigns a sentiment score based on whether the sentiment is positive, negative, or neutral.