18 using System.Collections.Generic;
19 using Lucene.Net.Analysis;
20 using System.Collections;
21 using Lucene.Net.Analysis.Tokenattributes;
29 namespace Lucene.Net.Analysis.BR
39 private ISet<string> exclusions = null;
46 termAtt = AddAttribute<ITermAttribute>();
52 this.exclusions = exclusiontable;
58 public override bool IncrementToken()
60 if (input.IncrementToken())
62 string term = termAtt.Term;
64 if (exclusions == null || !exclusions.Contains(term))
66 string s = stemmer.Stem(term);
68 if ((s != null) && !s.Equals(term))
69 termAtt.SetTermBuffer(s);