Text this: Automata for subgroups