Text this: Sociodynamics applied to the evolution of urban and regional structures