Text this: States, ideologies, and social revolutions