Skip to content

Commit

Permalink
two negations are enough
Browse files Browse the repository at this point in the history
  • Loading branch information
norm-ideal committed Jul 17, 2020
1 parent 0040cb2 commit 8c8be5e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ public void validate(Sentence sentence) {
for (String negativeWord : negativeWords) {
if (token.getSurface().toLowerCase().equals(negativeWord)) {
count++;
errorPart += " " + token.getSurface().toLowerCase();
errorPart += " " + token.getSurface().toLowerCase();
}
if (count >= 2) {
addLocalizedError(sentence, errorPart);
return;
}
}
}
if (count >= 2) {
addLocalizedError(sentence, errorPart);
return;
}
}

@Override
Expand Down

0 comments on commit 8c8be5e

Please sign in to comment.