Search in sources :

Example 1 with MorfologikBritishSpellerRule

use of org.languagetool.rules.en.MorfologikBritishSpellerRule in project languagetool by languagetool-org.

the class BritishEnglish method getRelevantRules.

@Override
public List<Rule> getRelevantRules(ResourceBundle messages) throws IOException {
    List<Rule> rules = new ArrayList<>();
    rules.addAll(super.getRelevantRules(messages));
    rules.add(new BritishReplaceRule(messages));
    rules.add(new MorfologikBritishSpellerRule(messages, this));
    return rules;
}
Also used : BritishReplaceRule(org.languagetool.rules.en.BritishReplaceRule) ArrayList(java.util.ArrayList) MorfologikBritishSpellerRule(org.languagetool.rules.en.MorfologikBritishSpellerRule) MorfologikBritishSpellerRule(org.languagetool.rules.en.MorfologikBritishSpellerRule) Rule(org.languagetool.rules.Rule) BritishReplaceRule(org.languagetool.rules.en.BritishReplaceRule)

Aggregations

ArrayList (java.util.ArrayList)1 Rule (org.languagetool.rules.Rule)1 BritishReplaceRule (org.languagetool.rules.en.BritishReplaceRule)1 MorfologikBritishSpellerRule (org.languagetool.rules.en.MorfologikBritishSpellerRule)1