19 using System.Collections.Generic;
21 namespace Lucene.Net.Analysis.Hunspell {
23 private readonly List<HunspellAffix> _prefixes =
new List<HunspellAffix>();
24 private readonly List<HunspellAffix> _suffixes =
new List<HunspellAffix>();
25 private readonly String _stem;
37 public Int32 StemLength {
38 get {
return _stem.Length; }
44 public IEnumerable<HunspellAffix> Prefixes {
45 get {
return _prefixes; }
51 public IEnumerable<HunspellAffix> Suffixes {
52 get {
return _suffixes; }
59 if (stem == null)
throw new ArgumentNullException(
"stem");
71 _prefixes.Insert(0, prefix);
81 _suffixes.Add(suffix);