This would require the markov chain to defer calculation of the occurrence probability until during text generation, but should be quite doable.
Also, switching the _nextWord function over to doing integer math will do away with rounding errors and will improve performance. Yay!