String origMarkup = IOUtils.toString(stream);
JLanguageTool langTool = new JLanguageTool(new GermanyGerman());
langTool.activateDefaultPatternRules();
SwebleWikipediaTextFilter filter = new SwebleWikipediaTextFilter();
PlainTextMapping mapping = filter.filter(origMarkup);
List<RuleMatch> matches = langTool.check(mapping.getPlainText());
assertTrue("Expected >= 30 matches, got: " + matches, matches.size() >= 30);
String markup = origMarkup;
for (RuleMatch match : matches) {
SuggestionReplacer replacer = new SuggestionReplacer(mapping, markup, "<s>", "</s>");
List<RuleMatchApplication> ruleMatchApplications = replacer.applySuggestionsToOriginalText(match);