paRes.nStartOfSentencePosition);
paRes.nStartOfSentencePosition = position;
paRes.nStartOfNextSentencePosition = position + sentence.length();
paRes.nBehindEndOfSentencePosition = paRes.nStartOfNextSentencePosition;
if (!StringTools.isEmpty(sentence)) {
AnnotatedText annotatedText = getAnnotatedText(sentence, footnotePositions, paRes);
final List<RuleMatch> ruleMatches = langTool.check(annotatedText, false,
JLanguageTool.ParagraphHandling.ONLYNONPARA);
final SingleProofreadingError[] pErrors = checkParaRules(paraText,
paRes.nStartOfSentencePosition,
paRes.nStartOfNextSentencePosition, paRes.aDocumentIdentifier);