private LanguageRule generateLanguageRule(int ruleCount, int ruleLenght) {
LanguageRule languageRule = new LanguageRule("");
// Add rules
for (int i = 0; i < ruleCount; ++i) {
Rule rule = generateRule(ruleLenght);
languageRule.addRule(rule);
}
// Add end of sentence rule
languageRule.addRule(new Rule(true, "\\.", " "));
return languageRule;
}