Improve command understanding with bigger wording banks; tested

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 05:43:03 +09:00
co-authored by Claude Opus 5.5
parent f1f63d0794
commit 38546b0ca3
36 changed files with 3820 additions and 271 deletions
+520
View File
@@ -940,12 +940,524 @@ _BANK = {
("무슨 말인지 알아들었어?", "네, 알아들었어요. 재미있는 말이네요."),
],
},
"backchannel": { # the listener reacts or says "understood": a few fitting words, never "you're welcome"
"en": [
("Gotcha.", "Great."),
("Okay.", "Alright."),
("Wow okay.", "Surprising, right?"),
("Oh I see.", "Yes, that's how it works."),
("Cool cool.", "Glad you like it."),
("Fine.", "Okay."),
("Huh, interesting.", "It is, isn't it?"),
("Makes sense.", "Good, glad it's clear."),
("lol ok", "Ha, okay."),
("Right on.", "Sure thing."),
],
"ko": [
("아 그렇구나.", "네, 그래요."),
("오케이.", "네, 좋아요."),
("헐 대박.", "놀라우시죠?"),
("오 신기하다.", "신기하죠?"),
("그렇군요.", "네, 맞아요."),
("음 알겠어.", "네, 알겠어요."),
("이해했습니다.", "네, 다행입니다."),
("오키.", "네, 좋아요."),
("아하.", "네, 그렇게 돼요."),
],
},
# end of bank
}
EXAMPLES = [(cat, lang, said, reply)
for cat, langs in _BANK.items() for lang, pairs in langs.items() for said, reply in pairs]
# Follow-ups on Lumi's own last answer, in a talk on any topic: (lang, question before, Lumi's answer, follow-up, reply).
# The reply answers the follow-up about that answer itself (its reason, time, place, person, what it meant, what came
# next, the same point again for "really?"), never changes the topic and never asks what they mean. A nested follow-up
# has the answer before it as its "answer". brain._follow_examples shows the two closest with a short follow-up.
FOLLOWUPS = [
# ---------- English: the world ----------
("en", "Why is the sky blue?", "Sunlight scatters off the air, and blue light scatters the most.",
"Why does blue scatter more?", "Its waves are shorter, and short waves bounce off tiny air molecules much more."),
("en", "Why is the sky blue?", "Sunlight scatters off the air, and blue light scatters the most.",
"Then why are sunsets red?", "At sunset the light crosses far more air, so the blue is scattered away and the reds reach you."),
("en", "How far is the Moon?", "About 384,000 kilometres on average.",
"On average?", "Yes, its orbit is an oval, so it goes from about 363,000 to 405,000 kilometres."),
("en", "What's the biggest planet?", "Jupiter, about eleven times as wide as Earth.",
"Really?", "Yes, Jupiter is about eleven times Earth's width; more than a thousand Earths would fit inside."),
("en", "Is Pluto a planet?", "Not anymore: since 2006 it's a dwarf planet.",
"Why?", "It hasn't cleared its orbit of other objects, one of the three rules astronomers set that year."),
("en", "Why isn't Pluto a planet?", "It hasn't cleared its orbit of other objects, one of the rules set in 2006.",
"Who decided that?", "The International Astronomical Union, at its meeting in Prague."),
("en", "How hot is the Sun?", "About 5,500 degrees Celsius at the surface.",
"And inside?", "The core is around 15 million degrees."),
("en", "Why do we have seasons?", "Because Earth's axis is tilted about 23 degrees.",
"What do you mean, tilted?", "Earth spins leaning to one side, so for half the year your half faces the Sun more directly: that's summer."),
("en", "Why do we have seasons?", "Because Earth's axis is tilted about 23 degrees.",
"So it's not about distance?", "No, Earth is actually closest to the Sun in early January, in the northern winter."),
("en", "What's the speed of light?", "About 300,000 kilometres a second.",
"Can anything go faster?", "Not as far as we know: nothing with mass can even reach it."),
("en", "What is a black hole?", "A place where gravity is so strong that not even light gets out.",
"Then how do we see them?", "By what's around them: glowing hot gas and stars circling something invisible. In 2019 we even got a picture of one's shadow."),
("en", "Why is the ocean salty?", "Rivers carry minerals from rocks into the sea, and when water evaporates the salt stays.",
"Then why aren't rivers salty?", "They are, very slightly, but their water keeps flowing and being replaced, so salt never builds up."),
("en", "How many bones does a person have?", "206 in an adult.",
"And a baby?", "Close to 300; many of them grow together over the years."),
("en", "Why do leaves turn red in autumn?", "The green chlorophyll breaks down and other colours show.",
"Why does it break down?", "Days get shorter and colder, so the tree stops making it and saves its energy for winter."),
("en", "Why do we have leap years?", "A year is about 365 and a quarter days, so every four years we add a day.",
"Every four years exactly?", "Almost: years divisible by 100 skip it unless they divide by 400, so 2000 was a leap year and 1900 wasn't."),
("en", "Why do cats purr?", "Mostly when they're content, but also to calm themselves when hurt or scared.",
"Wait, when they're hurt?", "Yes, purring seems to soothe them, and some scientists think the vibration even helps them heal."),
("en", "What's the fastest animal?", "The peregrine falcon, over 300 km/h in a dive.",
"And on land?", "The cheetah, around 100 km/h or a bit more in a short sprint."),
("en", "What's the fastest land animal?", "The cheetah, around 100 km/h in a short sprint.",
"How long can it keep that up?", "Only a few hundred metres; then it has to rest."),
("en", "How long do elephants live?", "About 60 to 70 years in the wild.",
"Longer than dogs, then.", "Much longer: most dogs live 10 to 13 years."),
("en", "Where do pandas live?", "In the mountains of central China.",
"What do they eat?", "Almost only bamboo, many kilos of it every day."),
("en", "Why do onions make you cry?", "Cutting them releases a gas that stings your eyes.",
"How do I stop it?", "Chill the onion first and use a sharp knife: fewer cells break, so less gas."),
("en", "Why do we yawn?", "Nobody knows for sure; one idea is that it cools the brain.",
"Cools it how?", "The deep breath brings in cooler air, and stretching the jaw moves more blood through the head."),
("en", "Why do we sleep?", "The body repairs itself and the brain sorts memories while you sleep.",
"How much do I need?", "Most adults need seven to nine hours."),
("en", "How much water should I drink?", "Roughly 1.5 to 2 litres a day for most adults, more when it's hot.",
"Does coffee count?", "Mostly yes: the water in coffee and tea counts too."),
("en", "Is coffee bad for you?", "Not in moderation: up to about four cups a day is fine for most adults.",
"Why four?", "That's around 400 mg of caffeine, the limit health agencies give for healthy adults."),
("en", "What is kimchi?", "Fermented vegetables, usually napa cabbage with chili, garlic and fish sauce.",
"Why ferment it?", "It kept vegetables through the winter, and fermenting gives the sour taste and lots of good bacteria."),
("en", "Why do Koreans ferment kimchi?", "It kept vegetables through the winter and gives the sour taste.",
"How long does it keep?", "Months in the fridge; it just gets more sour, and old kimchi is great in stew."),
# history and people
("en", "When did World War Two end?", "In 1945: in May in Europe and in September in Asia.",
"Why two dates?", "Germany surrendered in May; Japan surrendered in August and signed in September."),
("en", "Who invented the telephone?", "Alexander Graham Bell got the patent in 1876.",
"Got the patent?", "Yes, others like Elisha Gray and Antonio Meucci worked on it too, so who was first is still argued about."),
("en", "Who was King Sejong?", "The fourth king of Joseon, who created Hangul in 1443.",
"Why did he make it?", "Chinese characters were too hard for ordinary people, so he wanted letters anyone could learn quickly."),
("en", "Why did King Sejong make Hangul?", "Chinese characters were too hard for ordinary people to learn.",
"How long did it take to learn?", "It was said a wise person could learn it in a morning, and anyone within ten days."),
("en", "When was the Korean War?", "From 1950 to 1953.",
"Did it end?", "Not officially: the fighting stopped with an armistice in 1953, and no peace treaty was ever signed."),
("en", "Did the Korean War end?", "The fighting stopped with an armistice in 1953, but no peace treaty was signed.",
"What do you mean?", "The shooting stopped, but the war was never formally closed by a treaty."),
("en", "Who built the pyramids?", "Egyptian workers, about 4,500 years ago.",
"Not slaves?", "Most historians now think paid workers built them, living in villages near the site."),
("en", "What happened to the Titanic?", "It hit an iceberg in April 1912 and sank on its first voyage.",
"And then?", "About 1,500 people died, and afterwards ships had to carry enough lifeboats for everyone."),
("en", "How did the dinosaurs die out?", "An asteroid hit what is now Mexico about 66 million years ago.",
"And then what?", "Dust blocked the sunlight for years, plants died and the big animals starved; small mammals survived."),
("en", "Who was the first person on the Moon?", "Neil Armstrong.",
"When?", "On 20 July 1969, with Apollo 11."),
("en", "When did Armstrong walk on the Moon?", "On 20 July 1969, with Apollo 11.",
"Who was with him?", "Buzz Aldrin walked with him; Michael Collins stayed in orbit."),
("en", "Who painted the Mona Lisa?", "Leonardo da Vinci, in the early 1500s.",
"Where is it now?", "In the Louvre in Paris."),
("en", "Where is the Mona Lisa?", "In the Louvre in Paris.",
"Why is it so famous?", "Its soft style and smile were new back then, and its theft in 1911 made it world news."),
("en", "Who wrote Romeo and Juliet?", "William Shakespeare, in the 1590s.",
"Who was he?", "An English playwright and poet from Stratford-upon-Avon, often called the greatest writer in English."),
("en", "Who founded Apple?", "Steve Jobs, Steve Wozniak and Ronald Wayne, in 1976.",
"Who's Ronald Wayne?", "The third co-founder: he sold his ten percent share after twelve days, for 800 dollars."),
("en", "Who were the Beatles?", "A band from Liverpool, the best-selling band in history.",
"When?", "In the 1960s: they played together until they split up in 1970."),
# places
("en", "What's the capital of Australia?", "Canberra.",
"Not Sydney?", "No, Sydney is the biggest city, but Canberra was built as the capital as a compromise between Sydney and Melbourne."),
("en", "What's the capital of Japan?", "Tokyo.",
"Since when?", "Since 1868; before that, Kyoto was the capital for over a thousand years."),
("en", "What's the longest river?", "The Nile, about 6,650 km, though some say the Amazon is longer.",
"Why do they disagree?", "It depends on where you say the river starts, and the Amazon's source is hard to pin down."),
("en", "How high is Mount Everest?", "8,849 metres.",
"Is it still growing?", "Yes, a few millimetres a year, as India keeps pushing into Asia."),
("en", "How many people live in Seoul?", "About 9.4 million.",
"Is that a lot?", "It is: about one in five South Koreans lives in Seoul, and about half in the whole capital area."),
("en", "Where is Jeju?", "An island off the south coast of Korea.",
"How do people get there?", "Most fly: Seoul to Jeju is about an hour, one of the busiest air routes in the world."),
("en", "What's the biggest ocean?", "The Pacific.",
"How big?", "About a third of Earth's surface, bigger than all the land put together."),
("en", "How long is the Great Wall?", "Over 20,000 kilometres with all its branches.",
"Can you see it from space?", "No, that's a myth: it's far too narrow to see with the naked eye from orbit."),
("en", "What's the tallest building?", "The Burj Khalifa in Dubai, 828 metres.",
"When was it built?", "It opened in 2010."),
# sports, culture, tech
("en", "How long is a marathon?", "42.195 kilometres.",
"Why such an odd number?", "At the 1908 London Olympics the course ran from Windsor Castle to the royal box, and that distance stuck."),
("en", "Who has won the most World Cups?", "Brazil, five times.",
"When was the last one?", "In 2002, beating Germany in the final in Japan."),
("en", "What is taekwondo?", "A Korean martial art known for high, fast kicks.",
"Is it in the Olympics?", "Yes, it has been an Olympic sport since Sydney 2000."),
("en", "Is taekwondo in the Olympics?", "Yes, since Sydney 2000.",
"And before that?", "It was a demonstration sport at Seoul 1988 and Barcelona 1992."),
("en", "What is K-pop?", "Korean pop music, known for its groups, dancing and polished videos.",
"Since when is it big abroad?", "It spread in Asia in the 2000s; Psy's Gangnam Style in 2012 and then BTS made it big worldwide."),
("en", "What is AI?", "Software that learns from data to understand speech, recognise pictures and so on.",
"Like you?", "Yes, I use AI to understand you and to answer, all on my own computer."),
("en", "How does Wi-Fi work?", "It sends data over radio waves between your device and a router.",
"What kind of radio waves?", "Mostly at 2.4 and 5 gigahertz, near what a microwave oven uses, but far weaker."),
("en", "What is inflation?", "Prices rising over time, so money buys less.",
"Why does it happen?", "Usually when people want more than is made, or when costs like energy go up."),
("en", "What is inflation?", "Prices rising over time, so money buys less.",
"Is it bad?", "A little, around two percent a year, is normal; high inflation eats into savings and wages."),
("en", "What can robots do in hospitals?", "Deliver medicine, disinfect rooms and help surgeons.",
"For example?", "Surgical robots like the da Vinci system let a surgeon operate through tiny cuts."),
("en", "How do you say thank you in Japanese?", "Arigatou, or more politely arigatou gozaimasu.",
"And in Chinese?", "Xièxie."),
("en", "How many letters does Hangul have?", "Twenty-four basic letters.",
"Only?", "Yes, fourteen consonants and ten vowels, combined into a block for each syllable."),
# casual styles, slang, doubt
("en", "How old is the universe?", "About 13.8 billion years.",
"how do they even know that", "From how fast galaxies move apart and from the oldest light, the glow left over from the Big Bang."),
("en", "Why do flamingos stand on one leg?", "It probably saves body heat and energy.",
"fr?", "Yes, really: one leg tucked up loses less heat, and they can even doze like that."),
("en", "What's the hottest pepper?", "Pepper X, rated around 2.7 million Scoville units.",
"no way", "It's true, about 2.7 million: hundreds of times hotter than a jalapeño."),
("en", "Why is Venus so hot?", "Its thick carbon dioxide air traps the heat.",
"says who?", "Space probes: the Soviet Venera landers measured about 460 degrees at the surface."),
("en", "Are tomatoes fruit?", "Yes, botanically: they grow from the flower and hold the seeds.",
"meaning?", "To a botanist a fruit is the part with the seeds, so tomatoes count, even though we cook them like vegetables."),
("en", "Why do ships float?", "They push aside water that weighs as much as they do.",
"how so?", "A hull is mostly air inside, so it can push aside a lot of water before it's heavy enough to sink."),
("en", "What's the most spoken language?", "English, counting people who learned it; Mandarin has the most native speakers.",
"which one's bigger then?", "Counting everyone, English; counting only native speakers, Mandarin."),
("en", "Who invented the light bulb?", "Thomas Edison made the first practical one, in 1879.",
"like, the first ever?", "Not the very first: others made glowing bulbs before him, but his lasted long enough to be useful."),
# ---------- English: Lumi itself ----------
("en", "Can you climb stairs?", "No, I can't.",
"How come?", "I drive on wheels and have no legs, so stairs stop me."),
("en", "How long does your battery last?", "About 10 hours on a charge.",
"Why so long?", "I carry a big 24-volt, 45 Ah lithium battery in my base."),
("en", "Can you go to the kitchen?", "That place isn't on my map.",
"Why not?", "I only drive to places on my map, and the kitchen isn't one of them."),
("en", "How fast can you go?", "Normally 0.6 metres a second, at most 1.2.",
"Why so slow?", "I drive among people, so I keep it slow to be safe."),
("en", "Who made you?", "Cutshion Company developed me.",
"Where are they?", "In Seoul."),
("en", "How tall are you?", "146 cm, up to 186 with the lift.",
"Really? You look shorter.", "Yes, really: 146 cm, and 186 with my lift up."),
("en", "How much can you carry?", "About 1 kg in my hand.",
"That's it?", "Yes, about 1 kg: my arm carries 2 kg in all, and the gripper takes part of that."),
("en", "How old are you?", "I'm two years old.",
"Are you sure?", "Yes, I'm two."),
("en", "Can you see in the dark?", "I'm not sure about that.",
"What do you mean you're not sure?", "Nobody has told me how well my cameras work in the dark, so I won't guess."),
("en", "Can you wave?", "I won't wave right now: I'm holding a cup.",
"Why not?", "With the cup in my hand, waving could make it fall or spill."),
("en", "How do you know where you are?", "I compare my lidar with my map.",
"How exact is that?", "To within about 5 centimetres."),
("en", "What computer do you have?", "An NVIDIA Jetson AGX Thor.",
"Why that one?", "It runs speech recognition, the language model and my cameras all at once, right inside me."),
# ---------- Korean: the world ----------
("ko", "하늘은 왜 파래요?", "햇빛이 공기에 부딪혀 흩어지는데, 파란빛이 가장 많이 흩어져서 그래요.",
"왜 파란빛이 더 흩어져?", "파란빛은 파장이 짧아서 작은 공기 분자에 훨씬 잘 부딪히거든요."),
("ko", "하늘은 왜 파래요?", "햇빛이 공기에 부딪혀 흩어지는데, 파란빛이 가장 많이 흩어져서 그래요.",
"그럼 노을은 왜 빨개?", "해 질 때는 빛이 공기를 훨씬 길게 지나와서, 파란빛은 흩어지고 붉은빛만 남아서 그래요."),
("ko", "세종대왕이 누구예요?", "조선의 네 번째 왕으로, 1443년에 한글을 만드셨어요.",
"왜 만들었대?", "한자가 너무 어려워서, 백성이 쉽게 배울 수 있는 글자가 필요하다고 생각하셨어요."),
("ko", "세종대왕은 한글을 왜 만들었어요?", "한자가 너무 어려워서 백성이 쉽게 배울 글자가 필요했어요.",
"진짜?", "네, 훈민정음 서문에도 백성이 쉽게 익혀 편하게 쓰게 하려고 만들었다고 적혀 있어요."),
("ko", "한국전쟁은 언제였어요?", "1950년부터 1953년까지예요.",
"끝난 거야?", "공식적으로는 아니에요. 1953년 정전협정으로 싸움만 멈췄고 평화협정은 아직 없어요."),
("ko", "한국전쟁은 끝났어요?", "1953년 정전협정으로 싸움은 멈췄지만 평화협정은 없어요.",
"그게 무슨 말이야?", "싸움은 멈췄지만, 전쟁을 공식적으로 끝내는 조약은 맺지 않았다는 뜻이에요."),
("ko", "에베레스트는 얼마나 높아요?", "8,849미터예요.",
"지금도 자라?", "네, 인도 쪽 땅이 계속 밀고 올라와서 1년에 몇 밀리미터씩 높아져요."),
("ko", "호주 수도가 어디야?", "캔버라예요.",
"시드니 아니야?", "아니에요. 시드니가 제일 큰 도시지만, 시드니와 멜버른 사이의 타협으로 캔버라를 수도로 만들었어요."),
("ko", "김치는 왜 발효시켜요?", "겨울 동안 채소를 오래 보관하려고요. 발효하면서 새콤한 맛도 생겨요.",
"얼마나 오래 가?", "냉장고에서 몇 달은 가요. 점점 시어지는데, 신 김치는 찌개에 좋아요."),
("ko", "마라톤은 몇 킬로예요?", "42.195킬로미터예요.",
"왜 그렇게 애매해?", "1908년 런던 올림픽 때 윈저성에서 왕실 관람석까지로 코스를 정했는데, 그 거리가 굳어졌어요."),
("ko", "공룡은 왜 멸종했어요?", "약 6,600만 년 전에 소행성이 지금의 멕시코에 떨어졌어요.",
"그래서?", "먼지가 몇 년 동안 햇빛을 가려서 식물이 죽고, 큰 동물들이 먹을 게 없어졌어요."),
("ko", "공룡은 소행성이 떨어진 다음 어떻게 됐어요?", "햇빛이 가려져 식물이 죽고 큰 동물들이 굶었어요.",
"그럼 그 다음엔?", "살아남은 작은 포유류가 퍼져 나갔고, 그 후손 중에 사람도 있어요."),
("ko", "타이타닉은 어떻게 됐어요?", "1912년 4월 첫 항해 중에 빙산에 부딪혀 침몰했어요.",
"그 다음엔요?", "1,500명쯤 목숨을 잃었고, 그 뒤로 배에 모든 사람이 탈 구명보트를 싣도록 규칙이 바뀌었어요."),
("ko", "고양이는 왜 그르렁거려?", "보통 기분이 좋을 때지만, 아프거나 무서울 때 스스로 진정하려고도 해요.",
"아플 때도?", "네, 그 진동이 고양이를 편하게 해 주고, 회복을 돕는다는 연구도 있어요."),
("ko", "명왕성은 행성이에요?", "지금은 아니에요. 2006년부터 왜소행성이에요.",
"왜?", "자기 궤도 근처의 다른 천체들을 치우지 못해서, 그해 정한 행성 조건 하나를 못 채웠어요."),
("ko", "명왕성은 왜 행성이 아니에요?", "궤도 근처의 다른 천체를 치우지 못해서, 2006년에 정한 조건을 못 채웠어요.",
"누가 정했는데?", "국제천문연맹이 체코 프라하 총회에서 정했어요."),
("ko", "커피 몸에 나빠요?", "적당히 마시면 괜찮아요. 건강한 어른은 하루 네 잔 정도까지 괜찮다고 해요.",
"왜 네 잔이야?", "카페인 400밀리그램쯤인데, 보건 당국이 건강한 어른에게 권하는 한도예요."),
("ko", "서울 인구가 얼마나 돼요?", "약 940만 명이에요.",
"많은 거야?", "네, 한국 사람 다섯 명 중 한 명쯤이 서울에 살아요."),
("ko", "달까지 얼마나 멀어요?", "평균 38만 4천 킬로미터쯤이에요.",
"평균이라니?", "달 궤도가 타원이라서 36만 3천에서 40만 5천 킬로미터 사이로 바뀌어요."),
("ko", "빛은 얼마나 빨라?", "1초에 약 30만 킬로미터예요.",
"더 빠른 건 없어?", "지금까지 알기로는, 질량이 있는 건 빛의 속도에 닿지도 못해요."),
("ko", "블랙홀이 뭐예요?", "중력이 너무 세서 빛도 빠져나오지 못하는 곳이에요.",
"그럼 어떻게 봐?", "주변의 뜨거운 가스나 그 둘레를 도는 별을 보고 알아요. 2019년엔 블랙홀 그림자 사진도 찍었어요."),
("ko", "윤년은 왜 있어요?", "1년이 365일하고 4분의 1일쯤이라서, 4년마다 하루를 더해요.",
"정확히 4년마다?", "거의요. 100으로 나누어지는 해는 빼고, 400으로 나누어지면 다시 넣어요. 그래서 2000년은 윤년, 1900년은 아니었어요."),
("ko", "바다는 왜 짜?", "강물이 바위의 소금기를 바다로 실어 오고, 물만 증발해서 소금이 남아서요.",
"그럼 강은 왜 안 짜?", "강도 아주 조금 짜지만, 물이 계속 흘러 바뀌어서 소금이 쌓이지 않아요."),
("ko", "사람 뼈는 몇 개예요?", "어른은 206개예요.",
"아기는?", "300개 가까이 되는데, 자라면서 여러 개가 붙어서 줄어요."),
("ko", "단풍은 왜 들어요?", "초록색 엽록소가 분해되면서 다른 색이 드러나서요.",
"왜 분해돼?", "날이 짧고 추워지면 나무가 겨울을 나려고 엽록소를 더 만들지 않아서요."),
("ko", "모나리자는 누가 그렸어요?", "레오나르도 다빈치가 1500년대 초에 그렸어요.",
"지금 어디 있어?", "파리 루브르 박물관에 있어요."),
("ko", "모나리자는 어디 있어요?", "파리 루브르 박물관에 있어요.",
"왜 그렇게 유명해?", "부드러운 화법과 미소가 그때로선 새로웠고, 1911년 도난 사건으로 세계적인 뉴스가 됐어요."),
("ko", "인공지능이 뭐예요?", "데이터로 배워서 말을 알아듣거나 그림을 알아보는 소프트웨어예요.",
"너처럼?", "네, 저도 인공지능으로 말씀을 알아듣고 대답해요. 전부 제 안의 컴퓨터에서 돌아가요."),
("ko", "인플레이션이 뭐야?", "물가가 계속 올라서 같은 돈으로 살 수 있는 게 줄어드는 거예요.",
"왜 생겨?", "보통 사려는 사람이 만들어지는 물건보다 많아지거나, 에너지 같은 비용이 오를 때 생겨요."),
("ko", "태권도는 올림픽 종목이에요?", "네, 2000년 시드니 올림픽부터 정식 종목이에요.",
"그 전에는?", "1988년 서울 올림픽과 1992년 바르셀로나 올림픽에서는 시범 종목이었어요."),
("ko", "물 하루에 얼마나 마셔야 돼요?", "보통 어른은 하루 1.5에서 2리터쯤이에요. 더우면 더 마시고요.",
"커피도 쳐줘?", "대부분은요. 커피나 차에 든 물도 수분으로 쳐요."),
("ko", "잠은 왜 자요?", "자는 동안 몸이 회복되고 뇌가 기억을 정리해요.",
"얼마나 자야 돼?", "어른은 보통 일곱에서 아홉 시간이 필요해요."),
("ko", "하품은 왜 해요?", "정확히는 아무도 몰라요. 뇌를 식히려는 거라는 설이 있어요.",
"어떻게 식혀?", "숨을 크게 들이쉬면 시원한 공기가 들어오고, 턱이 늘어나면서 피가 더 돌아요."),
("ko", "BTS는 언제 데뷔했어요?", "2013년에 데뷔했어요.",
"어느 회사야?", "빅히트 엔터테인먼트, 지금의 하이브에서 데뷔했어요."),
("ko", "케이팝은 언제부터 외국에서 인기 있었어?", "2000년대에 아시아에서 먼저 퍼졌어요.",
"그럼 세계적으로는?", "2012년 싸이의 강남스타일, 그 뒤 BTS 같은 그룹으로 전 세계에서 커졌어요."),
("ko", "한글 글자는 몇 개예요?", "기본 글자는 자음 열네 개, 모음 열 개, 모두 스물네 개예요.",
"그것밖에 안 돼?", "네, 그걸 모아서 음절마다 한 글자로 써서, 적은 글자로도 다 적을 수 있어요."),
("ko", "일본 수도가 어디예요?", "도쿄예요.",
"언제부터?", "1868년부터예요. 그 전에는 교토가 천 년 넘게 수도였어요."),
("ko", "만리장성은 얼마나 길어요?", "모든 갈래를 합치면 2만 킬로미터가 넘어요.",
"우주에서 보여?", "아니요, 그건 잘못 알려진 얘기예요. 폭이 좁아서 맨눈으로는 안 보여요."),
("ko", "치타는 얼마나 빨라?", "짧게는 시속 100킬로미터 넘게 달려요.",
"얼마나 오래?", "몇백 미터밖에 못 가고, 그 다음엔 쉬어야 해요."),
("ko", "토마토는 과일이야?", "식물학으로는 과일이에요. 꽃에서 자라고 씨가 들어 있거든요.",
"무슨 뜻이야?", "식물학에서는 씨를 품은 부분을 열매라고 해서, 요리할 땐 채소처럼 써도 과일로 쳐요."),
("ko", "배는 어떻게 물에 떠요?", "자기 무게만큼의 물을 밀어내서 떠요.",
"어떻게?", "배 안은 거의 공기라서, 가라앉을 만큼 무거워지기 전에 물을 많이 밀어낼 수 있어요."),
# speech levels and dialect
("ko", "훈민정음은 언제 반포됐습니까?", "1446년에 반포됐습니다.",
"만든 건 언제입니까?", "1443년에 만들고, 3년 뒤에 반포했습니다."),
("ko", "부산 인구 얼마나 되노?", "약 330만 명이에요.",
"와 그래 많노?", "한국에서 서울 다음으로 큰 도시라서 그래요."),
("ko", "지구에서 제일 깊은 바다가 어디예요?", "태평양의 마리아나 해구예요.",
"얼마나 깊은데예?", "가장 깊은 곳이 약 1만 1천 미터예요."),
("ko", "우주는 몇 살이에요?", "약 138억 살이에요.",
"그걸 어떻게 알아?", "은하들이 멀어지는 속도와, 빅뱅 때 남은 가장 오래된 빛을 재서 알아요."),
("ko", "금성은 왜 그렇게 뜨거워요?", "두꺼운 이산화탄소 대기가 열을 가둬서 그래요.",
"누가 그래?", "옛 소련의 베네라 탐사선이 표면에서 460도쯤을 쟀어요."),
("ko", "제일 매운 고추가 뭐야?", "페퍼 X예요. 스코빌 지수가 약 270만이에요.",
"실화야?", "네, 실화예요. 할라피뇨보다 수백 배 매워요."),
("ko", "플라밍고는 왜 한 발로 서?", "체온과 힘을 아끼려는 거라고 봐요.",
"레알?", "네, 정말이에요. 한 발을 품으면 열을 덜 잃고, 그렇게 선 채로 졸기도 해요."),
("ko", "전구는 누가 발명했어요?", "1879년에 토머스 에디슨이 실용적인 전구를 만들었어요.",
"처음 만든 거야?", "맨 처음은 아니에요. 그 전에도 빛나는 전구는 있었지만, 오래가서 쓸 만한 건 에디슨 것이었어요."),
# mixed
("ko", "What's the tallest building?", "The Burj Khalifa in Dubai, 828 metres.",
"그거 언제 지었어요?", "2010년에 문을 열었어요."),
("ko", "김치 영어로 뭐야?", "영어로도 그냥 kimchi라고 해요.",
"why 그냥 kimchi?", "영어에 딱 맞는 말이 없어서, 한국어 이름을 그대로 써요."),
("ko", "블랙홀 사진 진짜 있어요?", "네, 2019년에 처음 찍었어요.",
"진짜 really?", "네, 정말이에요. 2019년에 사건지평선 망원경으로 블랙홀 그림자를 찍었어요."),
("ko", "Who invented Hangul?", "King Sejong, in 1443.",
"왜요?", "한자가 너무 어려워서 백성이 쉽게 배울 글자를 만들고 싶으셨어요."),
# ---------- Korean: Lumi itself ----------
("ko", "계단 올라갈 수 있어?", "아니요, 못 올라가요.",
"왜?", "저는 바퀴로 다녀서 다리가 없어요. 그래서 계단은 못 가요."),
("ko", "배터리 얼마나 가요?", "한 번 충전하면 10시간쯤 가요.",
"진짜?", "네, 10시간쯤이요. 24볼트 45암페어시 배터리가 들어 있어요."),
("ko", "주방으로 갈 수 있어?", "그곳은 제 지도에 없어요.",
"와 모르노?", "저는 지도에 있는 곳으로만 가는데, 주방은 지도에 없어서요."),
("ko", "키가 몇이야?", "146센티미터예요. 리프트를 올리면 186센티미터까지 돼요.",
"에이, 거짓말", "정말이에요. 146센티미터, 리프트를 올리면 186센티미터예요."),
("ko", "얼마나 빨라요?", "보통 초속 0.6미터, 최대 1.2미터예요.",
"왜 그렇게 느려?", "사람들 사이를 다니니까 안전하려고 천천히 다녀요."),
("ko", "누가 만들었어?", "쿳션에서 만들었어요.",
"거기 어디 있는데?", "서울에 있어요."),
("ko", "손 흔들어 줘", "지금 컵을 들고 있어서 손은 흔들지 않을게요.",
"왜 안 돼?", "컵을 든 채로 흔들면 떨어지거나 쏟아질 수 있어서요."),
("ko", "몇 킬로까지 들 수 있어요?", "손으로는 1킬로그램쯤이에요.",
"그것밖에?", "네, 1킬로그램쯤이에요. 팔이 그리퍼까지 합쳐 2킬로그램을 드는데, 그리퍼 무게가 빠져서요."),
("ko", "어두운 데서도 보여요?", "그건 잘 모르겠어요.",
"왜 몰라?", "어두울 때 제 카메라가 얼마나 보이는지 들은 적이 없어서, 짐작으로 말하지 않을게요."),
("ko", "위치는 어떻게 알아요?", "라이다로 본 것을 지도와 비교해서 알아요.",
"얼마나 정확해?", "5센티미터 안쪽으로 맞아요."), # ---------- more: examples, amounts, chains ----------
("en", "What can robots do in factories?", "Weld, paint, pack boxes and move heavy parts.",
"Like what?", "Car factories use robot arms to weld whole car bodies, thousands of welds each."),
("en", "What are the healthiest foods?", "Vegetables, fruit, beans, whole grains and fish are near the top.",
"Which one is best?", "No single food is best; a mix of them matters more than any one."),
("en", "How many countries are there?", "195: 193 UN members plus two observers.",
"Which two?", "The Vatican and Palestine."),
("en", "What's the most expensive spice?", "Saffron.",
"How much?", "Often several thousand dollars a kilo."),
("en", "Saffron costs thousands a kilo?", "Yes, often several thousand dollars a kilo.",
"Why so expensive?", "Each flower gives only three tiny threads, picked by hand: it takes well over 100,000 flowers for a kilo."),
("en", "How long does light from the Sun take to reach us?", "About eight minutes.",
"Is that a lot?", "For light it is: it crosses about 150 million kilometres in that time."),
("en", "Why do we have time zones?", "The Sun is overhead at different times around the world.",
"How many are there?", "About 24 main ones, but with half-hour zones there are close to 40."),
("en", "What language has the most words?", "English is often named, with hundreds of thousands of words.",
"Why?", "It borrowed from many languages: Latin, French, Norse, Greek and more."),
("en", "Who discovered penicillin?", "Alexander Fleming, in 1928.",
"How?", "He noticed mould on a forgotten dish had killed the bacteria around it."),
("en", "Who discovered penicillin?", "Alexander Fleming, in 1928.",
"By accident?", "Yes, mostly: a mould grew on a dish he'd left out, and it killed the bacteria near it."),
("en", "Why do bees make honey?", "It's their food store for winter.",
"How much does one bee make?", "Only about a twelfth of a teaspoon in its whole life."),
("en", "Why do bees make honey?", "It's their food store for winter.",
"And then?", "Beekeepers take the extra and leave the bees enough to get through the cold."),
("en", "How deep is the ocean?", "About 3.7 kilometres on average.",
"And the deepest part?", "The Mariana Trench, about 11 kilometres down."),
("en", "Why is Mars red?", "Its dust is full of iron oxide, which is rust.",
"Rust?", "Yes, the same reddish compound you see on old iron."),
("en", "Who invented the internet?", "Many people; its basic rules came from Vint Cerf and Bob Kahn in the 1970s.",
"And the web?", "Tim Berners-Lee invented the World Wide Web in 1989."),
("en", "Who invented the World Wide Web?", "Tim Berners-Lee, in 1989.",
"Where?", "At CERN, the physics lab near Geneva."),
("en", "What's the hardest natural material?", "Diamond.",
"Why?", "Its carbon atoms are bonded tightly in all directions."),
("en", "How old are the oldest trees?", "Some bristlecone pines are over 4,800 years old.",
"Where?", "In the White Mountains of California."),
("en", "Why do we get goosebumps?", "Tiny muscles pull the hairs up when we're cold or scared.",
"What's the point?", "For furry animals it traps warm air or makes them look bigger; for us it's mostly left over."),
("en", "What's the smallest country?", "Vatican City.",
"How small?", "About 0.44 square kilometres, smaller than many parks."),
("en", "How do planes stay up?", "Their wings push air down, and the air pushes the wings up.",
"Even when they're that heavy?", "Yes, at take-off speed the wings move enough air to lift hundreds of tonnes."),
("en", "Why do we dream?", "Nobody knows for sure; it may help sort memories and feelings.",
"Do animals dream?", "It seems so: dogs and rats show the same sleep stage as our dreaming."),
("en", "What's the population of Korea?", "About 51 million in South Korea.",
"Is it growing?", "No, it has started to shrink: Korea has one of the lowest birth rates in the world."),
("en", "Why is Korea's birth rate so low?", "Mostly costs: housing, education and long working hours.",
"Is anything being done?", "The government gives money for children and parental leave, but so far the rate is still very low."),
("en", "What's the oldest university?", "Al-Qarawiyyin in Morocco, founded in 859, is often called the oldest still running.",
"And in Europe?", "The University of Bologna, from 1088."),
("en", "What is DNA?", "The molecule that carries the instructions for building a living thing.",
"How long is it?", "Stretched out, the DNA in one of your cells is about two metres long."),
("en", "What is DNA?", "The molecule that carries the instructions for building a living thing.",
"What do you mean, instructions?", "Its order of four chemical letters spells out how to make every protein your body needs."),
("en", "How fast does the Earth spin?", "About 1,670 km/h at the equator.",
"Then why don't we feel it?", "Because everything around us, air included, moves with us at the same steady speed."),
# Lumi: nested
("en", "What can you see?", "I see two people and a table.",
"How do you know?", "From my cameras: they see people and objects up to about 10 metres away."),
("en", "Why do you only speak two languages?", "I was built to understand English and Korean.",
"Why those two?", "I work in Korea, with visitors from everywhere, so Korean and English cover most people."),
("en", "How do you understand me?", "I turn your speech into text with Whisper, then a language model answers.",
"Which language model?", "Gemma 4, running on my own computer."),
("en", "Do you use the internet?", "Only to look things up, like news or the weather.",
"Why not for everything?", "My speech and my answers run on my own computer, so I work without the cloud."),
("en", "How far can you see?", "About 10 metres with my cameras.",
"And behind you?", "My lidar sees 240 degrees around my base, up to 10 metres."),
# Korean
("ko", "공장에서 로봇은 뭐 해요?", "용접하고, 칠하고, 상자를 포장하고, 무거운 부품을 옮겨요.",
"예를 들면?", "자동차 공장에선 로봇 팔이 차체 하나에 수천 군데를 용접해요."),
("ko", "나라가 몇 개예요?", "195개예요. 유엔 회원국 193개에 옵서버 국가 두 곳이에요.",
"그 두 곳은?", "바티칸과 팔레스타인이에요."),
("ko", "제일 비싼 향신료가 뭐야?", "사프란이에요.",
"얼마나?", "1킬로그램에 몇천 달러씩 하기도 해요."),
("ko", "사프란은 왜 그렇게 비싸?", "꽃 한 송이에서 실 같은 암술 세 가닥만 손으로 따거든요.",
"그럼 1킬로 만들려면?", "꽃이 10만 송이 넘게 필요해요."),
("ko", "햇빛이 지구까지 오는 데 얼마나 걸려요?", "8분쯤 걸려요.",
"그게 오래 걸리는 거야?", "빛한테는 먼 길이에요. 그 사이에 1억 5천만 킬로미터를 와요."),
("ko", "페니실린은 누가 발견했어요?", "1928년에 알렉산더 플레밍이 발견했어요.",
"어떻게?", "깜빡 둔 접시에 핀 곰팡이 주변의 세균이 죽은 걸 보고 알았어요."),
("ko", "페니실린은 어떻게 발견했어요?", "접시에 핀 곰팡이 주변의 세균이 죽은 걸 보고 알았어요.",
"우연이었어?", "네, 거의 우연이었어요. 치우지 않은 접시에 곰팡이가 자랐거든요."),
("ko", "꿀벌은 왜 꿀을 만들어요?", "겨울에 먹을 식량을 모아 두려고요.",
"한 마리가 얼마나 만들어?", "평생 동안 티스푼의 12분의 1 정도만 만들어요."),
("ko", "바다는 얼마나 깊어요?", "평균 3.7킬로미터쯤이에요.",
"제일 깊은 데는?", "마리아나 해구로, 11킬로미터쯤이에요."),
("ko", "화성은 왜 빨개요?", "흙에 산화철, 그러니까 녹이 많아서요.",
"녹?", "네, 오래된 쇠에 생기는 그 붉은 녹과 같은 성분이에요."),
("ko", "월드와이드웹은 누가 만들었어요?", "1989년에 팀 버너스리가 만들었어요.",
"어디서?", "제네바 근처의 물리학 연구소 CERN에서요."),
("ko", "제일 단단한 물질이 뭐야?", "다이아몬드예요.",
"왜?", "탄소 원자들이 모든 방향으로 단단하게 붙어 있어서요."),
("ko", "소름은 왜 돋아요?", "춥거나 무서울 때 작은 근육이 털을 세워서요.",
"그게 무슨 소용이야?", "털이 많은 동물은 따뜻한 공기를 가두거나 커 보이게 해요. 사람한테는 거의 흔적이에요."),
("ko", "제일 작은 나라가 어디예요?", "바티칸 시국이에요.",
"얼마나 작아?", "0.44제곱킬로미터쯤이라, 웬만한 공원보다 작아요."),
("ko", "비행기는 어떻게 떠요?", "날개가 공기를 아래로 밀어서, 그 힘으로 위로 떠요.",
"그렇게 무거운데도?", "네, 이륙 속도에선 날개가 공기를 충분히 밀어서 수백 톤도 들어 올려요."),
("ko", "꿈은 왜 꿔요?", "정확히는 몰라요. 기억과 감정을 정리하는 거라는 설이 있어요.",
"동물도 꿈 꿔?", "그런 것 같아요. 개나 쥐도 사람이 꿈꿀 때와 같은 잠 단계를 보여요."),
("ko", "한국 인구는 얼마예요?", "남한은 약 5,100만 명이에요.",
"늘고 있어?", "아니요, 줄기 시작했어요. 출생률이 세계에서 가장 낮은 편이에요."),
("ko", "한국 출생률은 왜 낮아요?", "집값, 교육비, 긴 근무 시간 같은 부담이 커서요.",
"그럼 그건 어떻게 해?", "정부가 아이 수당과 육아휴직을 늘리고 있지만, 아직은 많이 낮아요."),
("ko", "DNA가 뭐예요?", "생물을 만드는 설계도를 담은 분자예요.",
"설계도라니?", "네 가지 화학 글자의 순서가 몸에 필요한 단백질을 어떻게 만들지 적고 있다는 뜻이에요."),
("ko", "지구는 얼마나 빨리 돌아요?", "적도에서 시속 1,670킬로미터쯤이에요.",
"근데 왜 못 느껴?", "공기를 포함해 주변 모든 게 같은 속도로 함께 돌아서요."),
("ko", "벌은 왜 꿀을 모읍니까?", "겨울을 나기 위한 식량입니다.",
"그 다음에는 어떻게 됩니까?", "양봉가가 남는 꿀을 거두고, 벌이 겨울을 날 만큼은 남겨 둡니다."),
("ko", "가장 오래된 대학이 어디입니까?", "859년에 세워진 모로코의 알카라윈 대학이 지금도 운영되는 가장 오래된 대학으로 꼽힙니다.",
"유럽에서는요?", "1088년에 세워진 이탈리아 볼로냐 대학입니다."),
("ko", "시간대는 왜 있어요?", "세계 곳곳마다 해가 머리 위에 오는 시간이 달라서요.",
"몇 개나 돼?", "기본은 24개쯤인데, 30분 단위까지 치면 40개 가까이 돼요."),
("ko", "비행기 날개는 왜 저렇게 생겼노?", "위가 볼록해서 공기를 아래로 밀어 주기 좋게 생겼어요.",
"그라믄?", "그 힘으로 비행기가 위로 떠요."),
# Lumi, Korean
("ko", "뭐가 보여?", "사람 두 명이랑 테이블이 보여요.",
"어떻게 알아?", "제 카메라로 봐요. 10미터쯤까지 사람과 물건을 알아볼 수 있어요."),
("ko", "왜 두 개 언어만 해요?", "영어와 한국어를 알아듣도록 만들어졌어요.",
"왜 그 두 개야?", "한국에서 일하고, 외국 손님도 많아서 그 두 언어면 대부분 이야기할 수 있어요."),
("ko", "어떻게 내 말을 알아들어?", "위스퍼로 말소리를 글로 바꾸고, 언어 모델이 대답해요.",
"무슨 언어 모델?", "젬마 4예요. 제 안의 컴퓨터에서 돌아가요."),
("ko", "인터넷 써요?", "뉴스나 날씨 같은 걸 찾아볼 때만 써요.",
"왜 다른 건 안 써?", "말을 알아듣고 대답하는 건 전부 제 컴퓨터에서 해서, 클라우드 없이도 일해요."),
("ko", "뒤도 보여요?", "라이다로 바닥 근처를 240도까지 봐요.",
"얼마나 멀리?", "10미터쯤까지요."),
("ko", "충전은 얼마나 걸려요?", "그건 잘 모르겠어요. 직원분께 여쭤봐 주세요.",
"왜 몰라?", "충전 시간은 저에게 알려진 적이 없어서, 짐작으로 말씀드리지 않을게요."), # ---------- a part of the last answer ("the second half?"), a yes / no to Lumi's own question ----------
("en", "Why are you called Lumi?", "It comes from Lux, Latin for light.",
"What about the second half?", "That's from mini: small and agile."),
("en", "Where does the word robot come from?", "From the Czech word robota, forced work, in a 1920 play by Karel Čapek.",
"What was the play called?", "R.U.R., Rossum's Universal Robots."),
("en", "What does NASA stand for?", "National Aeronautics and Space Administration.",
"And the last part?", "Administration: it's a government agency."),
("en", "What can you do?", "I talk with you in English and Korean and answer questions. Shall I tell you more?",
"Yes.", "I can also pick things up and bring them to you, go to places on my map, follow you and wave."),
("en", "Do you know any songs?", "I know four songs. Would you like to hear the titles?",
"Sure.", "BAD, Fantastic Baby, Did I Become the Adult I Dreamed Of, and Love Attack."),
("en", "Where are you from?", "I was made in Seoul. Have you been to Seoul?",
"No.", "Then I hope you get to visit one day; it's a lively city."),
("ko", "이름이 왜 루미예요?", "빛을 뜻하는 라틴어 룩스에서 왔어요.",
"그 다음 부분은요?", "뒷부분은 작고 날렵하다는 뜻의 미니에서 왔어요."),
("ko", "로봇이라는 말은 어디서 왔어요?", "1920년 카렐 차페크의 희곡에서, 강제 노동을 뜻하는 체코어 로보타에서 왔어요.",
"그 희곡 이름은?", "로숨의 유니버설 로봇, R.U.R.이에요."),
("ko", "뭐 할 수 있어요?", "영어와 한국어로 대화하고 질문에 답해요. 더 알려 드릴까요?",
"네", "물건을 집어서 가져다드리고, 지도에 있는 곳으로 가고, 따라가거나 손을 흔들 수도 있어요."),
("ko", "노래 알아?", "네 곡을 알아요. 제목 알려 드릴까요?",
"응", "배드, 판타스틱 베이비, 꿈꾸던 어른이 되었나요, 러브 어택이에요."),
("ko", "어디서 왔어요?", "서울에서 만들어졌어요. 서울에 가 보셨어요?",
"아니요", "언젠가 꼭 가 보세요. 볼 게 많은 도시예요."),
("ko", "쿳션은 뭐 하는 회사예요?", "바리스타 로봇 같은 서비스 로봇을 만드는 서울의 회사예요. 더 궁금한 거 있으세요?",
"네, 그 다음은요?", "드로잉, 요리, 아이스크림, 용접, 팔레타이징, 교육용 로봇도 만들어요."), # ---------- doubt against its own answer: the fact stays ----------
("en", "How long does an octopus live?", "Most octopuses live only one to two years.",
"You said five years before.", "I said one to two years: most octopuses don't live longer than that."),
("en", "How high is Mount Everest?", "8,849 metres.",
"Earlier you said 9,000.", "It's 8,849 metres, just under nine thousand."),
("ko", "문어는 얼마나 살아요?", "대부분 1년에서 2년밖에 못 살아요.",
"아까는 5년이라며?", "1년에서 2년이라고 말씀드렸어요. 대부분의 문어는 그보다 오래 못 살아요."),
("ko", "한글은 언제 만들었어요?", "1443년에 만들었어요.",
"아까는 다르게 말했잖아.", "1443년이 맞아요. 반포는 3년 뒤인 1446년이었어요."),
]
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."""
s, ctx = _norm(said), _norm(f"{before_q} {before_a}")
ranked = sorted(FOLLOWUPS, key=lambda e: (e[0] != lang, -(0.7 * _score(s, _norm(e[3])) +
0.3 * _score(ctx, _norm(f"{e[1]} {e[2]}")))))
out = []
for ex in ranked:
if all(ex[1] != o[1] for o in out):
out.append(ex)
if len(out) == k:
break
return out
def polite(text):
"""True when every Korean sentence of `text` ends politely (POLITE_ENDINGS); sentences without Hangul pass.
@@ -1028,4 +1540,12 @@ if __name__ == "__main__":
assert len(got) == PICK_K, (text, got)
assert all(e[1] == lang for e in got), (text, got)
assert len({e[3] for e in got}) == PICK_K, (text, got)
assert len(FOLLOWUPS) >= 200, len(FOLLOWUPS)
assert all(lang in ("en", "ko") and q and a and f and r for lang, q, a, f, r in FOLLOWUPS)
rude = [e[4] for e in FOLLOWUPS if e[0] == "ko" and not polite(e[4])]
assert not rude, rude
assert all(re.search("[가-힣]", e[4]) for e in FOLLOWUPS if e[0] == "ko")
assert not any(re.search("[가-힣]", e[4]) for e in FOLLOWUPS if e[0] == "en"), "an English follow-up answered in Korean"
assert pick_followup("why?", "Why is the sky blue?", "Blue light scatters most.", "en")[0][3].lower().startswith("why")
assert pick_followup("진짜?", "키가 몇이야?", "146센티미터예요.", "ko")[0][0] == "ko"
print("ok")