use of org.languagetool.rules.Rule in project languagetool by languagetool-org.
the class AmericanEnglish method getRelevantRules.
@Override
public List<Rule> getRelevantRules(ResourceBundle messages) throws IOException {
List<Rule> rules = new ArrayList<>();
rules.addAll(super.getRelevantRules(messages));
rules.add(new MorfologikAmericanSpellerRule(messages, this));
return rules;
}
use of org.languagetool.rules.Rule in project languagetool by languagetool-org.
the class NewZealandEnglish method getRelevantRules.
@Override
public List<Rule> getRelevantRules(ResourceBundle messages) throws IOException {
List<Rule> rules = new ArrayList<>();
rules.addAll(super.getRelevantRules(messages));
rules.add(new MorfologikNewZealandSpellerRule(messages, this));
rules.add(new NewZealandReplaceRule(messages));
return rules;
}
use of org.languagetool.rules.Rule in project languagetool by languagetool-org.
the class MorfologikAmericanSpellerRuleTest method testSuggestions.
@Test
public void testSuggestions() throws IOException {
Language language = new AmericanEnglish();
Rule rule = new MorfologikAmericanSpellerRule(TestTools.getMessages("en"), language);
super.testNonVariantSpecificSuggestions(rule, language);
}
use of org.languagetool.rules.Rule in project languagetool by languagetool-org.
the class MorfologikAustralianSpellerRuleTest method testSuggestions.
@Test
public void testSuggestions() throws IOException {
Language language = new AustralianEnglish();
Rule rule = new MorfologikAustralianSpellerRule(TestTools.getMessages("en"), language);
super.testNonVariantSpecificSuggestions(rule, language);
}
use of org.languagetool.rules.Rule in project languagetool by languagetool-org.
the class MorfologikNewZealandSpellerRuleTest method testSuggestions.
@Test
public void testSuggestions() throws IOException {
Language language = new NewZealandEnglish();
Rule rule = new MorfologikNewZealandSpellerRule(TestTools.getMessages("en"), language);
super.testNonVariantSpecificSuggestions(rule, language);
}
Aggregations