diff --git a/VaderSharp/VaderSharp/SentimentIntensityAnalyzer.cs b/VaderSharp/VaderSharp/SentimentIntensityAnalyzer.cs index 5348976..c9f9aa8 100644 --- a/VaderSharp/VaderSharp/SentimentIntensityAnalyzer.cs +++ b/VaderSharp/VaderSharp/SentimentIntensityAnalyzer.cs @@ -175,7 +175,7 @@ private double NeverCheck(double valence, IList wordsAndEmoticons, int s { if (startI == 0) { - if (SentimentUtils.Negated(new List {wordsAndEmoticons[i - 1]})) + if (SentimentUtils.Negated(new List {wordsAndEmoticons[i - 1].ToLower()})) valence = valence * SentimentUtils.NScalar; } if (startI == 1) @@ -185,7 +185,7 @@ private double NeverCheck(double valence, IList wordsAndEmoticons, int s { valence = valence * 1.5; } - else if (SentimentUtils.Negated(new List {wordsAndEmoticons[i - (startI + 1)]})) + else if (SentimentUtils.Negated(new List {wordsAndEmoticons[i - (startI + 1)].ToLower()})) { valence = valence * SentimentUtils.NScalar; } @@ -198,7 +198,7 @@ private double NeverCheck(double valence, IList wordsAndEmoticons, int s { valence = valence * 1.25; } - else if (SentimentUtils.Negated(new List { wordsAndEmoticons[i - (startI + 1)] })) + else if (SentimentUtils.Negated(new List { wordsAndEmoticons[i - (startI + 1)].ToLower() })) { valence = valence * SentimentUtils.NScalar; }