// find line that differs in only one word // take line after that and rewrite the word svoid ai_answerFromSpeechLog_singleWordChanged(S input) { for (PairS lines : overlappingPairs(speechLog())) { SS map = pairToCIMap(gazelle_singleChangedWord_ifMoreThanOneWord(lines.a, input)), continue if null; emit(replaceVars(lines.b, map)); } }