public static AffixConfig Read(IHunspellLineReader reader, AffixConfig.Builder builder = null) { var readerInstance = new AffixReader(builder, reader); readerInstance.Read(); return(readerInstance.Builder.MoveToImmutable()); }
public static WordList Read(Stream dictionaryStream, Stream affixStream) { var affixBuilder = new AffixConfig.Builder(); var affix = AffixReader.Read(affixStream, affixBuilder); var wordListBuilder = new WordList.Builder(affix, affixBuilder.FlagSetDeduper, affixBuilder.MorphSetDeduper, affixBuilder.StringDeduper); return(Read(dictionaryStream, affix, wordListBuilder)); }