static int scoredSearch_score_eachTerm(S s, L words) { int score = 0; for (S word : words) { int wordScore = scoredSearch_score_single(s, word); if (wordScore == 0) ret 0; score += wordScore; } ret score; }