Text this: A Categorical Approach to Syntactic Monoids