Text this: Semi-Markov chains and hidden semi-Markov models toward applications