Linking advice to shadows; infer clauses from diagrams