Text this: Measuring resilience using language modeling