private final Map<String, String> relevantWords; // e.g. "aufwendig -> aufwändig"
private Map<String, RuleMatch> shouldNotAppearWord = new HashMap<>(); // e.g. aufwändig -> RuleMatch of aufwendig
public WordCoherencyRule(ResourceBundle messages) throws IOException {
if (messages != null) {
super.setCategory(new Category(messages.getString("category_misc")));
}
relevantWords = loadWords(JLanguageTool.getDataBroker().getFromRulesDirAsStream(FILE_NAME));
}