static int applyNGramScorer(S expr, S s) { Pair parsed = parseNGramScorerExpression(expr); ret substringsScoreICPosNeg(s, parsed.a, parsed.b); }