Text this: Decomposition of regular languages