static L ai_matrix_categoriesForTopic(S topic) { //ret ai_texts(topic, "$Y", "$X"); new LinkedHashSet out; for (Pair p : ai_texts_a(topic)) { S rel = substring(p.a, lastIndexOf(p.a, ' ')+1); if (eqicOneOf(rel, "is", "is not")) out.add(p.b); } ret asList(out); }