private final void init(Reader input, Version matchVersion) {
if (matchVersion.onOrAfter(Version.LUCENE_34)) {
this.scanner = new StandardTokenizerImpl(input);
} else if (matchVersion.onOrAfter(Version.LUCENE_31)) {
this.scanner = new StandardTokenizerImpl31(input);
} else {
this.scanner = new ClassicTokenizerImpl(input);
}
if (matchVersion.onOrAfter(Version.LUCENE_24)) {
replaceInvalidAcronym = true;