Text this: Informality, economic complexity, and internalization of rules