public HunspellStemFilter(TokenStream input, Dictionary dictionary, boolean dedup,  boolean longestOnly) {super(input);this.dedup = dedup && longestOnly == false; this.stemmer = new Stemmer(dictionary);this.longestOnly = longestOnly;}
public HunspellStemFilter(TokenStream input, Dictionary dictionary, bool dedup, bool longestOnly): base(input){this.dedup = dedup && longestOnly == false; this.stemmer = new Stemmer(dictionary);this.longestOnly = longestOnly;termAtt = AddAttribute<ICharTermAttribute>();posIncAtt = AddAttribute<IPositionIncrementAttribute>();keywordAtt = AddAttribute<IKeywordAttribute>();}