!7 cmodule Spike > DynPrintLog { start-thread { // Often people can't see well in a concert when someone tall is in front of them. S s = winograd_takeFirstOption( "John couldn't see the stage with Billy in front of him because he is so [short/tall]. Who is so [short/tall]?"); //LS sentences = sentences(s); LS tok = javaTok(s); Set names = dm_getUnclearListAsCISet("First names"); Set pronouns = dm_getUnclearListAsCISet("Pronouns"); Set foundNames = ciSet(); for (int i = 1; i < l(tok); i += 2) { S t = tok.get(i); print(t); if (contains(names, t)) { print(" NAME"); foundNames.add(t); } if (contains(pronouns, t)) print(" PRONOUN. May be one of: " + foundNames); } } }