Text this: Hidden Markov and other models for discrete-valued time series