public EmotionData Detect(string text) { var words = text.GetWordsFromText(); var emotions = _repository.GetEmotions(words); AmendNegations(emotions); var foundEmotions = emotions.Where(e => e.emotion != null); return(foundEmotions.Select(e => e.emotion).GetOverallEmotion()); }