int endIndex = Math.min(beginIndex + MAX_TEXT_LENGTH, text.length()-1);
String subText = text.substring(beginIndex, endIndex);
long startTime = System.currentTimeMillis();
JLanguageTool langTool = new MultiThreadedJLanguageTool(language);
langTool.activateDefaultPatternRules();
List<RuleMatch> matches = langTool.check(subText);
long runTime = System.currentTimeMillis() - startTime;
if (i >= SKIP) {
totalTime += runTime;
System.out.println("Time: " + runTime + "ms (" + matches.size() + " matches)");
} else {