private void ProcessNextLetterChunk(string chunk) { if (NextLetters == null) { NextLetters = new List <NextLetter>(); NextLetters.Add(new NextLetter(chunk, 0)); } else { NextLetters.Add(new NextLetter(chunk, NextLetters.Last().CumulativeWeight)); } }
public NextLetter NextLetter(double weight) { return(NextLetters.FirstOrDefault(nl => nl.CumulativeWeight > weight)); }
public void addNextLetter(string nextLetter) { NextLetters.Add(nextLetter); }