Text this: Response of rigid and flexible buildings in an earthquake