Text this: q-Enumeration of words by their total variation