Search in sources :

Example 1 with NewZealandReplaceRule

use of org.languagetool.rules.en.NewZealandReplaceRule 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;
}
Also used : ArrayList(java.util.ArrayList) NewZealandReplaceRule(org.languagetool.rules.en.NewZealandReplaceRule) MorfologikNewZealandSpellerRule(org.languagetool.rules.en.MorfologikNewZealandSpellerRule) Rule(org.languagetool.rules.Rule) MorfologikNewZealandSpellerRule(org.languagetool.rules.en.MorfologikNewZealandSpellerRule) NewZealandReplaceRule(org.languagetool.rules.en.NewZealandReplaceRule)

Aggregations

ArrayList (java.util.ArrayList)1 Rule (org.languagetool.rules.Rule)1 MorfologikNewZealandSpellerRule (org.languagetool.rules.en.MorfologikNewZealandSpellerRule)1 NewZealandReplaceRule (org.languagetool.rules.en.NewZealandReplaceRule)1