Word-processing-based routing for Cayley graphs