sclass AI_PronounResolver1 { S input; Pair pNouns; LS tok; L pwt; new L>> pronouns; L>> nounPhrases; *() {} *(S *input) {} run { pNouns = ai_groupAndReturnSimplestNounPhrases(input); tok = javaTokWithBrackets(pNouns.a); //print(tok); L pwt = (L) pwt_fromTokenization(tok); for (ParsedWithTokens p : pwt) { S t = uncurly(optString(p!)); if (ai_isPronoun(t)) { p.set(Pronoun(t)); pronouns.add(p); } else if (pNouns.b.contains(t)) { p.set(NounPhrase(t)); nounPhrases.add(p); } } //pnl(pwt); } }