String replacement = StringTools.startsWithUppercase(prevTokenStr) ? "A" : "a";
msg = "Use <suggestion>" + replacement + "</suggestion> instead of '" + prevTokenStr + "' if the following "+
"word doesn't start with a vowel sound, e.g. 'a sentence', 'a university'";
}
if (msg != null) {
<BUG>RuleMatch match = new RuleMatch(this, prevToken.getStartPos(), prevToken.getEndPos(), msg, "Wrong article");
ruleMatches.add(match);</BUG>
}
}
<BUG>}</BUG>
if (token.hasPosTag("DT")) {
<BUG>prevToken = token;
} else if (token.getToken().matches("[-\"()\\[\\]]+")) {</BUG>
} else {

String replacement = StringTools.startsWithUppercase(prevTokenStr) ? "A" : "a";
msg = "Use <suggestion>" + replacement + "</suggestion> instead of '" + prevTokenStr + "' if the following "+
"word doesn't start with a vowel sound, e.g. 'a sentence', 'a university'";
}
if (msg != null) {
RuleMatch match = new RuleMatch(
this, tokens[prevTokenIndex].getStartPos(), tokens[prevTokenIndex].getEndPos(), msg, "Wrong article");
ruleMatches.add(match);
}
}
