Improve talk answers, quick answers, weather and song requests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 10:15:14 +09:00
co-authored by Claude Opus 5.5
parent 1411676269
commit d223ff475f
9 changed files with 261 additions and 13 deletions
+39
View File
@@ -1878,6 +1878,45 @@ FOLLOWUPS += [
]
# Night 4: the visitor says Lumi's earlier answer was different (every Korean level, English): the same facts said
# again, never "which part?"; and parts of animals and things that sound like Lumi's own (a head, eyes, arms, a song)
# are about that animal or thing, never about Lumi.
FOLLOWUPS += [
("ko", "대나무는 얼마나 빨리 자라?", "어떤 대나무는 하루에 수십 센티미터씩 자라요.",
"대나무 얘기 아까랑 말이 다르잖아.", "아까도 하루에 수십 센티미터씩 자란다고 말씀드렸어요. 그 사실은 그대로예요."),
("ko", "코알라는 하루에 얼마나 자요?", "하루에 18시간에서 22시간쯤 자요.",
"코알라 얘기 아까캉 다르다 아이가?", "아니에요, 아까도 하루 18시간에서 22시간쯤 잔다고 말씀드렸어요."),
("ko", "인삼은 왜 그늘에서 키워요?", "인삼은 햇빛에 약해서 그늘막 아래에서 키워요.",
"야 인삼 아까랑 말 바뀐 거 같은데?", "바뀐 건 없어요. 인삼은 햇빛에 약해서 그늘에서 키운다고 말씀드렸어요."),
("ko", "고래 노래는 얼마나 멀리 가요?", "수십에서 수백 킬로미터까지 퍼질 수 있어요.",
"고래 노래 얘기 아까랑 말이 다르잖아요.", "아까도 수십에서 수백 킬로미터까지 간다고 말씀드렸어요. 물속에서는 소리가 멀리 가요."),
("ko", "연어는 어떻게 고향 강을 찾습니까?", "태어난 강의 냄새를 기억해서 찾아갑니다.",
"앞서 하신 말씀과 다르지 않습니까?", "같은 말씀을 드렸습니다. 연어는 태어난 강의 냄새를 기억해서 돌아옵니다."),
("ko", "코알라 새끼는 주머니에 얼마나 있어요?", "약 6개월 동안 주머니 안에서 자라요.",
"말씀하신 게 아까랑 좀 다르신 것 같은데요?", "아까와 같아요. 새끼는 약 6개월 동안 주머니 안에서 자라요."),
("en", "How far can a whale song travel?", "Many kilometres, sometimes hundreds, because sound travels far in water.",
"Earlier you said something else about whale songs.", "No, I said the same: many kilometres, sometimes hundreds."),
("en", "Why do owls turn their heads so far?", "Their eyes are fixed in the skull, so they turn the head instead, up to 270 degrees.",
"That's not what you said before.", "It is: owls turn their heads up to 270 degrees because their eyes can't move."),
("en", "How many hearts does an octopus have?", "Three: two for the gills and one for the body.",
"You changed your answer, didn't you?", "No, it's still three hearts: two for the gills and one for the body."),
# parts of an animal or a thing are its own, not Lumi's
("ko", "부엉이는 고개를 몇 도까지 돌릴 수 있습니까?", "약 270도까지 돌릴 수 있습니다.",
"목뼈는 몇 개입니까?", "부엉이의 목뼈는 14개로, 사람의 두 배입니다."),
("ko", "부엉이는 고개를 몇 도까지 돌릴 수 있습니까?", "약 270도까지 돌릴 수 있습니다.",
"눈이 고정된 이유가 무엇입니까?", "부엉이의 눈은 아주 커서 머리뼈 안에 꽉 끼어 있기 때문입니다."),
("ko", "부엉이 눈은 왜 그렇게 커요?", "밤에 빛을 많이 모으려고 커요.",
"혈관에 문제가 생기지 않아요?", "목의 혈관에 여유 공간이 있어서 고개를 돌려도 피가 잘 흘러요."),
("ko", "문어는 다리가 몇 개고?", "8개예요.",
"와 그래 똑똑하노?", "신경세포의 상당수가 다리에 있어서 다리마다 따로 생각하듯 움직여요."),
("en", "Why do owls turn their heads so far?", "Their eyes are fixed in the skull, so they turn the head instead.",
"And their eyes, why so big?", "To catch as much light as possible when they hunt at night."),
("en", "How do elephants use their trunks?", "To breathe, smell, drink and pick things up.",
"How strong is the arm, I mean the trunk?", "Very strong: an elephant's trunk can lift a few hundred kilograms."),
("en", "Why do whales sing?", "Mostly to find mates and to keep in touch over long distances.",
"Can you hear it?", "People hear it with underwater microphones called hydrophones."),
]
def pick_followup(said, before_q, before_a, lang, k=2):
"""Up to k FOLLOWUPS closest to this follow-up: the follow-up's own words count most (a "why?" shows a "why?"),
then the talk before it; same language first."""