Text this: A General Framework for Determining a Target Failure Mechanism in Frame Structures.