Markov-chain input on a per-word basis