Text this: Input Modeling with Phase-Type Distributions and Markov Models