Text this: How armies respond to revolutions and why