/**
* Expand clitic pronouns on verbs matching the given pattern.
*/
private static Tree expandCliticPronounsInner(Tree t, TregexPattern pattern) {
TregexMatcher matcher = pattern.matcher(t);
while (matcher.find()) {
Tree verbNode = matcher.getNode("vb");
String verb = verbNode.value();
if (!SpanishVerbStripper.isStrippable(verb))
continue;
Pair<String, List<String>> split = verbStripper.separatePronouns(verb);
if (split == null)
continue;
// Retrieve some context for the pronoun disambiguator: take the
// matched clause and walk (at most) two constituents up
StringBuilder clauseYieldBuilder = new StringBuilder();
for (Label label : matcher.getNode("clause").yield())
clauseYieldBuilder.append(label.value()).append(" ");
String clauseYield = clauseYieldBuilder.toString();
clauseYield = clauseYield.substring(0, clauseYield.length() - 1);
// Insert clitic pronouns as leaves of pronominal phrases which are