// to detect language from the first input line
if (lineCount == 1 && autoDetect) {
Language language = detectLanguageOfString(line);
if (language == null) {
System.err.println("Could not detect language well enough, using English");
language = new English();
}
System.out.println("Language used is: " + language.getName());
language.getSentenceTokenizer().setSingleLineBreaksMarksParagraph(
singleLineBreakMarksParagraph);
changeLanguage(language, motherTongue, disabledRules, enabledRules);