if (language == null) {
throw new NullPointerException("language cannot be null");
}
basedir = basedirArg;
this.language = language;
<BUG>this.motherTongue = motherTongue;
ResourceBundle messages = ResourceBundle.getBundle("de.danielnaber.languagetool.MessagesBundle",
language.getLocale());</BUG>
Rule[] allBuiltinRules = new Rule[] {
new CommaWhitespaceRule(messages),

if (language == null) {
throw new NullPointerException("language cannot be null");
}
basedir = basedirArg;
this.language = language;
this.motherTongue = motherTongue;
messages = getMessageBundle(language);
Rule[] allBuiltinRules = new Rule[] {
new CommaWhitespaceRule(messages),
