{
TokenStream tokenStream = new HTMLStripStandardTokenizerFactory().create(reader);
TokenStream result = new StandardFilter(tokenStream);
result = new LowerCaseFilter(result);
result = new StopFilter(result, StopAnalyzer.ENGLISH_STOP_WORDS);
result = new SynonymTokenFilter(result, SynonymMapFactory.getSynonymMap(), MAX_NUMBER_OF_SYNONYMS);
result = new EnglishPorterFilterFactory().create(result);
return result;
}