Text this: Modelling the evolution of social structure