Text this: Mechanism for detecting cause-and-effect relationships in court judgments