2026-10-22 20:29:40 +09:00
"""Example bank: the fast lane between the keyword rules and the LLM (lumi.route).
Thousands of wordings per thing Lumi can do (English, Korean in 반말 / 해요체 / 하십시오체, mixed, Konglish, whisper
slips) are matched by meaning with the embedding server (assistant/knowledge.embed, bge-m3). Close enough to one
kind and far enough from every other kind (and from the "no" wordings: talk, questions, negations, conditions)
-> the command runs at once; else the LLM reads it. The bank only routes: what a place, object, direction or amount
is comes from the words themselves (the map's marker names, brain.OBJECTS, head_target ...), never from the bank.
Guards come first: negation, a condition or a later time, an ability question, words to someone else, closing words
with two meanings, a question word. A wrong motion is the worst error, so motions need a high match and a margin.
.venv/bin/python assistant/intent_bank.py build # embed the bank -> data/intent_bank.npz
.venv/bin/python assistant/intent_bank.py "say hi with your arm" # what the bank reads, with the closest wordings
"""
import pathlib
import random
import re
import sys
2026-10-22 22:09:53 +09:00
import zlib
2026-10-22 20:29:40 +09:00
import numpy as np
ROOT = pathlib . Path ( __file__ ) . resolve () . parents [ 1 ]
CACHE = ROOT / "data" / "intent_bank.npz"
2026-10-22 22:09:53 +09:00
SIM_MIN = 0.84 # the closest wording must be at least this similar (bge-m3 cosine) ...
2026-10-22 20:29:40 +09:00
MARGIN = 0.04 # ... and this much closer than the closest wording of any other kind (the "no" kind too)
2026-10-26 05:43:03 +09:00
MARGIN_WORDS = 0.015 # ... or this much, when the other kind is another motion whose words are not there ("턴 left
# 해 줘": turn, a move's slot finds no drive in it) and the closest kind's words are
2026-10-22 20:29:40 +09:00
AGREE_K = 2 # ... and the K closest wordings all of that kind
2026-10-26 05:43:03 +09:00
MIN_CHARS = 4 # shorter words ("go", "가") are the rules' or the LLM's (a Hangul syllable counts as 2)
2026-10-22 20:29:40 +09:00
MAX_WORDS = 16 # a longer sentence is a story or several requests: the LLM reads it
FILLS = 3 # place / object fills made of each template (the same every run)
# ---------- guards: words the bank never reads ----------
2026-10-22 22:09:53 +09:00
NEGATION = re . compile ( r "\b(?:don'?t|do not|never|no need|not now|no more|stop \w+ing|quit \w+ing|without|forget it|"
2026-10-27 08:13:59 +09:00
r "never ?mind|scratch that|cancel that|cancel)\b|취소|안 ?할(?:래|게|거)|아니다|됐다|"
2026-10-26 15:30:06 +09:00
r "[가-힣]지 ?마(?:세요|요|라|십시오|쇼|소|이소|시오|셔)?(?:잉|요)?(?![가-힣])|하지 ?말|말고|[가-힣]지 ?(?:말아|말라|마시|마셔|말게)|필요 ?없|안 ?(?:해|돼|가|와)(?:도)?\b|그만" , re . I )
2026-10-27 08:13:59 +09:00
LATER = re . compile ( r "\b(?:the (?:moment|second|minute|instant) (?:you|i|we|they|he|she)|when|whenever|if|unless|after|before|once|until|till|as soon as|later|tomorrow|tonight|"
2026-10-26 15:30:06 +09:00
r "next time|some ?day|one day|in (?:\w+ ){0,2}(?:minute|hour|second|min|sec)s?|in a (?:while|bit)|soon)\b|분 ?(?:뒤|후|있다)|"
2026-10-22 20:29:40 +09:00
r "[가-힣](?<![정화측반전표라장내외평단그러])면(?:\s|$)|(?:하|으|오|가|되|끝나|있으|오시)면|나중에|이따|내일|"
2026-10-26 07:36:03 +09:00
r "다음에|있다가|(?:^|\s)(?:후|뒤|전)에(?![서가-힣])|때(?:에)?\s|다음 ?(?:주|달|번|시간)에?|"
r "(?:^|\s)(?:\d{1,2}|한|두|세|네|다섯|여섯|일곱|여덟|아홉|열|열한|열두) ?시(?:에|쯤|까지)|"
r "\b(?:next (?:week|month|year|monday|tuesday|wednesday|thursday|friday|saturday|sunday)|"
r "at (?:\d{1,2}|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)(?::\d\d)? ?(?:o'?clock|pm|am|p\.m\.|a\.m\.))" , re . I )
2026-10-27 08:13:59 +09:00
ABILITY = re . compile ( r "\b(?:are you able|can your (?:model|robot|arm|hand|body)|able to|know how|i heard you can|heard (?:that )?you can|how (?:do|can|could|would) you|is it possible|can you even|can you really|could you really|"
2026-10-22 20:29:40 +09:00
r "capable of|do you (?:know|have)|can robots?|could robots?)\b|"
r "\bcan you (?:\w+ )?(?:things|anything|objects|stuff|people|by yourself)\b|\b(?:can|could) you \w+(?: up)? (?:a|an|any)\b.*\?|"
2026-10-27 08:13:59 +09:00
r "\bshow me (?:you can|how)\b|기능|\bfunction\b|\bfeature\b|줄 ?(?:은|도)? ?(?:알|아|압|안)|보여 ?(?:줄|주실|주세요|줘)|할 ?줄|줄 ?알|(?<!줄 )(?<!주실 )(?<!주 )(?<!줄)(?<!주실)수 ?있(?:어|어요|니|나요|습니까|을까|으세요|으신가요|으십니까)\s*\??$|가능해|가능한가|가능하" , re . I )
2026-10-22 22:09:53 +09:00
WONDER = re . compile ( r "\bi wonder\b|\bwonder(?:ing)? (?:if|whether|how)\b|\bi bet\b|\b(?:i )?guess (?:it|the robot)\b|"
r "\b(?:can|could|does|did|will|would|is|was) (?:it|this|that|the robot|this robot|that robot|he|she|this thing)\b|"
r "\b(?:it|the robot|this robot|this thing) (?:can|could|does|will|is able)\b|\bcan it\b|"
r "(?:있|하|되|가|와|오|돌|봐|올라|내려|흔들|집|따라)나(?:요)?\s*[?? .~]*\s*$|나 ?봐(?:요)?\s*[?? .~]*\s*$|"
2026-10-26 07:36:03 +09:00
r "(?:^|\s)(?:얘|쟤|걔|이 로봇|저 로봇|로봇이|로봇은|로봇도|이게|이거는)\s|궁금|"
r "(?:^|\s)(?:얘도|쟤도|걔도|이것도|이거도)\s|[가-힣]기도 (?:해|하나|하니|해요|합니까)\s*[?? ]?\s*$|" # "얘도 팔 접기도 해?"
r "\blet'?s have (?:it|the robot|lumi|him|her)\b" , re . I )
2026-10-22 22:09:53 +09:00
# "can it wave? I wonder", "does it follow people?", "이거 손 흔들 수 있나?", "얘 따라오나 봐"
2026-10-23 02:08:43 +09:00
NOT_TO_LUMI = re . compile (
r "\bshall we\b|\bwe(?:'re| are) (?:heading|going|off|gonna)\b|\bwe (?:should|could|can|will|might|must|need to)\b|\bwe'll\b|"
2026-10-26 15:30:06 +09:00
r "\byou and (?:i|me)\b|\bmy plan\b|\bour plan\b|우리끼리|우리(?!.*악수).*(?:자|까|래|기로)\s*[?? .!~]*$|" # plans between people
2026-10-23 02:08:43 +09:00
r "\bimagine\b|\bsuppose\b|\bwhat if\b|\bwould you ever\b|\bif you were\b|\bpretend\b|\bhypothetical|"
r "만약|[가-힣](?:라면|다면)|어떨까|겠다\s*[!.~]*$|" # hypotheticals
r "\battention\b|\bladies and gentlemen\b|\b(?:visitors|guests|attendees|passengers)(?: are)? (?:please|should|must|may|"
r "are asked|are requested)\b|\bare (?:kindly )?(?:asked|requested) to\b|안내 ?말씀|(?<![가-힣])여러분(?!한테|에게|께)|"
r "관람객|방문객|승객|" # announcements
r "\bso (?:well|nicely|smoothly|fast|good)\b|\b(?:really|very) (?:well|nicely|smoothly)\b|\bthe way you\b|"
2026-10-27 08:13:59 +09:00
r "\blove how\b|\b\w+ing (?:is|was) (?:so )?(?:fun|cool|great|nice|hard|cute|funny|awesome)\b|\bgood at \w+ing\b|"
r "\bi (?:love|like|enjoy) (?:it when you |your |the way you )?\w+ing\b|\bthanks? (?:you )?for\b|"
r "는 ?(?:게|거) (?:좋|싫|재밌|재미있|귀엽|멋지|신기)|[가-힣](?:네|네요|구나|군요|더라|던데)\s*[!.~]*$|[가-힣](?<!니)다\s*[!.~]*$|"
2026-10-27 00:21:00 +09:00
r "(?:좋|멋지|예쁘|이쁘|귀엽|크|작|길|세|대단하|신기하|웃기)(?:네|네요|구나|군요)(?=[\s,.!~])" , re . I )
2026-10-23 02:08:43 +09:00
# plans, hypotheticals, announcements, praise and remarks: nobody asked Lumi to do anything now
2026-10-22 20:29:40 +09:00
QUESTION = re . compile ( r "^\W*(?:(?:hey|so|um+|uh+|lumi|okay|ok)\W+)*(?:what|where|why|how|when|who|whose|which|is|are|was|"
2026-11-02 02:52:49 +09:00
r "were|do(?=\s+(?:i|we|they|robots?)\b|\s+you\b(?!\s+(?:shake|wave)\b))|does|did|have|has|had|should|shall i|may i|can i|could i)\b(?! about\b)|"
2026-10-23 02:08:43 +09:00
r "어디|뭐|무엇|왜|언제|누구|어떻게|몇|어느|무슨|어떤|얼마|[가-힣]까\s*[?? ]+\s*$|봤(?:어|니|나|냐|어요|습니까)|본 ?적|"
2026-10-27 08:13:59 +09:00
r "\bhave you (?:been|gone|ever)\b|(?:어|아|해|여)도 ?(?:돼|되|될까|괜찮)|[가-힣]도 ?(?:돼|되나|될까|괜찮아)\s*[?? ]|"
2026-10-26 05:43:03 +09:00
r "알려 ?(?:줘|주|줄)|설명해|가르쳐|말해 ?(?:줘|봐|주)|\btell me\b|\bexplain\b|\bdescribe\b|"
2026-10-27 08:13:59 +09:00
r "상태(?:야|예요|에요|니|냐|입니까|인가요)?\s*\??\s*$|(?:open|오픈|열림|닫힘|closed?) ?(?:이야|이에요|이니|인가요|입니까)|"
2026-10-26 15:30:06 +09:00
r "\b(?:is|are) (?:your|the) (?:hand|gripper|fingers?|arm|head)s? (?:open|closed|up|down|out)\b|"
2026-10-26 07:36:03 +09:00
r "정확도|얼마나|을매나|속도|(?:열려|닫혀|켜져|꺼져|접혀|펴져) ?있(?:어|어요|니|나요|습니까)?\s*[?? ]" , re . I )
# "그리퍼 열려 있어요?": a state asked, no motion # "팔 정확도 알려 줘": a question, no motion
2026-10-22 20:29:40 +09:00
OTHER_SENSE = re . compile ( r "instagram|insta\b|\bsns\b|\baccount\b|\bsubscribe\b|인스타|계정|채널|구독|팔로우 ?해 ?주세요|"
r "따라 ?(?:해|하|말|불러)|\brepeat after\b|\bcopy me\b|\bdo what i do\b|\b(?:lend|give) me a hand\b|"
2026-10-23 02:08:43 +09:00
r "\bneed a hand\b|\bhand it to\b|가는 ?길|길 ?(?:좀 )?알려|\bhow (?:do i|to) get\b|\bdirections?\b|\bthe way to\b|"
r "(?:^|\s)(?:다 ?같이|모두 ?(?:같이|다)|다들)\s|\beverybody\b|\beveryone,|\ball together\b|\bfollow (?:what|how|the|this|that|your)\b|법 ?알려|방법|\bhow to\b" , re . I ) # follow an account, copy me, help me: no motion
2026-10-22 20:29:40 +09:00
REPEAT = re . compile ( r "^\W*(?:(?:\w+\W+){0,2})?(?:again|one more time|once more|do it again|same again|more)\W*$|"
r "^\W*(?:[가-힣]+\s+)?(?:한 ?번(?:만)? 더|다시|또)\s*(?:해|해 ?줘|해 ?봐|해 ?주세요|하자)?\W*$" , re . I )
# "again", "한 번만 더 해 줘": what again is the history's (driving.read, the LLM)
2026-10-23 02:08:43 +09:00
SEVERAL = re . compile ( r "\b(?<!hundred )and\b(?! a half\b)|\bwait\w*|\bcorrection\b|\binstead\b|"
2026-10-27 05:03:46 +09:00
r "\b(?:look|turn|go|move|wave|come|follow|pick|take|put|lift|raise|lower|reach|grab|bring)\b[^,]*,\s*(?:(?:\w+\W+){0,2})?(?:look|turn|go|move|wave|come|follow|pick|take|put|lift|raise|lower|reach|grab|bring|tell|say|sing|show|ask|answer|check)\b|\b(?:then|after that|also|plus|while|no|not|wait|stay|sleep|sorry|i mean|actually|rather|oops|first)\b|;|"
2026-10-26 15:30:06 +09:00
r "(?!갖고|고고|에서)(?<!가)[가-힣](?:서|고)(?:[\s,.…]|$)|(?:으로|로|에) ?가서|"
2026-11-02 02:52:49 +09:00
r "(?:흔들|흔드시|보시|돌|내리|올리|집어|내밀|숙이|들|봐 ?주시)고(?=[가-힣])|(?:쪽|나|날|위|아래|앞)보고(?=[가-힣])|(?:집어|와|가져와)서(?=[가-힣])|하고|셔서|면서|다가(?![와오])|갔다|(?<!따라)다녀|아니|기다|대기|(?:가|와) ?있어|계세요|"
2026-10-22 20:29:40 +09:00
r "계십시오" , re . I )
# several requests or a stay ("go to p3 and wait", "가서 기다려", "p3에 가 있어"): steps.read's
HAND_WORDS = re . compile ( r "\byou(?:'re| are) holding\b|\b(?:in|from) my hand\b|\bhere'?s\b|\bhanding\b|\bi'?ll give\b|"
2026-10-22 22:09:53 +09:00
r "\bhold this\b|\bfrom me\b|\bmy hand\b|\bhand ?에|\bhand it (?:over|to me)\b|\bhand over\b|내 손|제 손|손에 ?(?:줘|놔|주세요|쥐어)|\bi'?m holding\b|\bi am holding\b|들고 있는|손에 있는|받아|드릴게|줄게|가져가세요" , re . I ) # the hand reader's (brain.hand_request)
2026-10-27 00:21:00 +09:00
GROUP_CALL = re . compile ( r "(?:^|[,:;.!?]\s*)(?:(?:hey|ok|okay|alright|so|come on)\s+)?(?:(?:you )?guys|folks|y'?all|"
r "you all|everyone|everybody|team|kids|people|ladies|gentlemen)\s*(?:[,:;!.]|$)|"
2026-10-27 05:03:46 +09:00
r "얘들아|애들아|친구들아|여러분[,\s]|(?<![가-힣])(?!로봇|루미)[가-힣]{1,4}님(?:[,!\s]|$)" , re . I ) # "guys, get me the bottle": said to the people around
2026-10-22 20:29:40 +09:00
NAME_CALL = re . compile ( r "^\W*(?:(?:ah|oh|hey|hi|okay|ok|so|um|uh|look|and)\W+)?([A-Z][a-z]+)\s*," ) # "Jake, follow me": said to Jake
2026-10-27 08:13:59 +09:00
NOT_A_NAME = { "lumi" , "loomi" , "rumi" , "loomy" , "loomye" , "lumie" , "rumie" , "lumy" , "roomi" , "lumee" , "okay" , "ok" , "please" , "hey" , "hi" , "hello" , "so" , "well" , "now" , "alright" ,
2026-10-22 20:29:40 +09:00
"yes" , "yeah" , "no" , "sorry" , "um" , "uh" , "oh" , "wait" , "look" , "then" , "first" , "also" , "and" , "but" ,
"robot" , "right" , "fine" , "good" , "great" , "sure" , "next" , "again" , "quick" , "listen" , "excuse" , "hmm" }
SELF_TALK = re . compile ( r "^\W*i'?m \w+ing\b|\b(?:myself|yesterday|last (?:time|week|night))\b|어제|지난번|었지|었어|"
r "^\W*(?:i'?ll|i will|i'?m going|i am going|i went|i was|we'?ll|we went|we were|i have to|i need to go|"
r "i want to go|my \w+ (?:will|is|went)|he |she |they )|"
r "(?:^|\s)(?:나는|저는|내가|제가|우리는|저희는)\s|갈게|할게|할께|갈께|했어|했어요|갔어|왔어" , re . I )
2026-10-27 08:13:59 +09:00
PAST_EN = re . compile ( r "\byou(?: just| already)? (?!need\b)\w+ed\b.*\b(?:earlier|before|already|yesterday|last time|this morning)\b|\b(?:i|we)(?:'ve| have| had)?\s+(?:just\s+|already\s+|also\s+|then\s+|never\s+)?(?:(?!need\b|feed\b|speed\b)\w+ed|went|came|"
2026-10-22 22:09:53 +09:00
r "drove|ran|took|got|left|saw|did|had|made|put|brought|gave|told|said|was|were|spun|stood|sat|found|held|"
r "been|gone|done|seen|taken|given)\b|\bi've\b|\bwe've\b" , re . I ) # "I walked to the stage", "we went to p3"
TAG = re . compile ( r ",\s*(?:right|correct|huh|true)\s*[?!.]*\s*$|\b(?:isn'?t|aren'?t|wasn'?t|weren'?t|don'?t|doesn'?t|didn'?t|"
r "won'?t|can'?t|haven'?t|hasn'?t) (?:it|you|they|we|i|he|she|there|that)\s*[?!.]*\s*$|"
2026-10-27 08:13:59 +09:00
r "(?<!줄 수 있)(?<!실 수 있)(?:지|죠|쥬|지요|잖아|잖아요|맞지|맞죠|맞아요?|그렇지|그렇죠|그쵸|그치)\s*[?? !.~]*\s*$|"
2026-10-22 22:09:53 +09:00
r "(?:^|\s)(?:맞지|맞죠|그치)\s*\?+\s*$" , re . I ) # "..., right?", "the next stop is p3, isn't it?", "끝에 갔지?"
2026-10-26 05:43:03 +09:00
def told_ko ( t ):
"""Korean reported speech at the end: "루미가 p4로 간대", "온다고", "간다더라", "한대요" (said about, not to Lumi)."""
m = re . search ( r "([가-힣])(?:대|대요|답니다|다고|다고요|다더라|다던데|다네|단다)\s*[.!?~]*\s*$" , t )
return bool ( m and (( ord ( m . group ( 1 )) - 0xAC00 ) % 28 == 4 or m . group ( 0 ) . lstrip ( m . group ( 1 ))[: 1 ] == "다" and
m . group ( 1 ) in "한간온된준친운는있없했갔왔" ))
2026-10-22 22:09:53 +09:00
def past_ko ( t ):
"""A Korean past tense (a syllable ending in ㅆ: 갔, 왔, 했, 었; not 있 "is", 겠 "will"): said about what happened."""
return any ( "가" <= c <= "힣" and ( ord ( c ) - 0xAC00 ) % 28 == 20 and c not in "있겠" for c in t )
2026-10-22 20:29:40 +09:00
# ---------- the bank ----------
# kinds: what lumi.route does with them (QUICK_RULES); "no" is every wording the bank must leave to the rest
PLACE_EN = [ "the stage" , "booth A" , "p3" , "the lobby" , "table front" , "the coffee corner" , "the exit" , "point five" ,
"booth two" , "the entrance" , "the start" , "the reception desk" ]
PLACE_KO = [ "스테이지" , "부스 A" , "p3" , "로비" , "커피 코너" , "출구" , "입구" , "피쓰리" , "2번" , "안내 데스크" , "회의실" , "시작점" ]
OBJ_EN = [ "cup" , "red cup" , "bottle" , "apple" , "banana" , "white mug" , "water bottle" , "orange" , "blue cup" , "glass" ,
"tumbler" , "phone" ]
OBJ_KO = [ "컵" , "빨간 컵" , "병" , "사과" , "바나나" , "물병" , "오렌지" , "흰 컵" , "텀블러" , "머그컵" , "파란 컵" , "핸드폰" ]
GO = [
'scoot over to <place>' , 'lead the way to <place>' , 'your destination is <place>, go now' , '<place>로 안내해 주세요' , '<place>로 move 해' , '<place>로 move' , 'return to <place>' , 'go back to <place>' , 'off you go to <place>' , '<place>로 가 주실 수 있어요?' , '<place>로 이동 좀 해 줄 수 있어?' , '<place>로 고고' , 'can you take me to <place>' ,
'i need you over at <place>' , 'i need you at <place>' , 'get yourself to <place>' , 'can you make it to <place>' , 'be at <place> please' , 'go wait at the spot called <place>' , 'drive yourself to <place>' , 'head on over to <place>' , 'please proceed to <place>' , 'go to <place> right away' , 'quickly go to <place>' , 'go to the <place> area' , '<place>로 이동하십시오' , '<place>로 가 주세용' , '<place>로 가 주라' , '<place>로 가 볼까?' , '<place>로 가 줄래요' , '<place>까지 좀 가 줄래?' , '<place>로 좀 이동해 줄래요?' , '<place> 쪽으로 이동해 주세요' , '<place>로 가시죠' , '<place>로 가 보자' , '<place>로 가 주실 수 있나요?' , '<place>로 가 주시겠습니까?' , '<place>로 이동 바랍니다' , '<place>로 가 주면 좋겠어' , '<place>에 좀 가 봐' , '<place>으로 가' , '<place> 가자' , '<place>로 ㄱㄱ' , '<place> 고' , '<place>로 무빙' , '<place>로 이동 ㄱ' , 'go to <place> 해' , '<place> 로 go go' ,
# English
"go to <place>" , "go to <place> please" , "please go to <place>" , "head to <place>" , "head over to <place>" ,
"drive to <place>" , "move to <place>" , "go over to <place>" , "make your way to <place>" , "get to <place>" ,
"take yourself to <place>" , "roll over to <place>" , "walk to <place>" , "travel to <place>" , "navigate to <place>" ,
"can you go to <place>" , "could you go to <place> please" , "would you go to <place>" , "will you go to <place>" ,
"would you mind going to <place>" , "mind going to <place>" , "go to <place> for me" , "go to <place> now" ,
"go over to <place> now" , "i want you to go to <place>" , "i need you to go to <place>" , "i'd like you to go to <place>" ,
"can you head over to <place>" , "your next stop is <place>" ,
"next, <place>" , "off to <place> you go" , "let's go to <place>" , "let's head to <place>" , "lumi, <place>, go" ,
"<place>, please" , "<place>, go there" , "go there, to <place>" , "take me to <place>" , "lead me to <place>" ,
"show me the way to <place>" , "guide me to <place>" , "bring yourself over to <place>" , "get over to <place>" ,
"hurry to <place>" , "go straight to <place>" , "go directly to <place>" , "drive over to <place> please" ,
"head for <place>" , "set off for <place>" , "move over to <place>" , "go stand by <place>" , "park at <place>" ,
"go park yourself at <place>" , "please move to <place> now" , "go to <place>, thanks" , "go to <place> real quick" ,
# whisper slips, non-native
"goto <place>" , "go too <place>" , "go two <place>" , "you go <place>" , "go <place>" , "going <place> please" ,
"move <place>" , "you go to <place> now" , "robot go <place>" , "please you go <place>" ,
# Korean 반말
"<place>로 가" , "<place>로 가 줘" , "<place>로 가 봐" , "<place>로 이동해" , "<place>로 이동해 줘" , "<place>에 가" ,
"<place>에 가 줘" , "<place>까지 가" , "<place>까지 가 줘" , "<place> 쪽으로 가" , "<place>로 가자" , "<place>로 좀 가 줘" ,
"<place>로 갈래?" , "<place>로 가 줄래?" , "<place>로 가 줄 수 있어?" , "<place>로 얼른 가" , "<place>로 빨리 가" ,
"<place> 가" , "<place> 가 줘" , "<place>로 가라" , "<place>로 출발" ,
"<place>로 출발해" , "<place>로 움직여" , "<place> 앞으로 가" , "<place>로 나 데려다 줘" , "<place>까지 안내해 줘" ,
# Korean 해요체
"<place>로 가요" , "<place>로 가 주세요" , "<place>로 가 줘요" , "<place>로 이동해요" , "<place>로 이동해 주세요" ,
"<place>에 가 주세요" , "<place>까지 가 주세요" , "<place>로 가 주실래요?" , "<place>로 가 줄래요?" ,
"<place>로 가 주실 수 있어요?" , "<place>로 좀 가 주세요" , "<place> 쪽으로 가 주세요" , "<place>로 가 볼래요?" ,
"<place>로 가 보세요" , "<place>로 가세요" , "<place>까지 안내해 주세요" , "<place>로 데려다 주세요" ,
"<place>로 가 주시면 좋겠어요" , "<place>로 가 주시겠어요?" , "<place>로 가 주시면 감사하겠습니다" ,
# Korean 하십시오체
"<place>로 가십시오" , "<place>로 가 주십시오" , "<place>로 이동하십시오" , "<place>로 이동해 주십시오" ,
"<place>까지 이동 바랍니다" , "<place>로 이동 부탁드립니다" , "<place>로 가 주시기 바랍니다" ,
# mixed, Konglish
"<place>로 go" , "<place>로 go 해" , "<place>로 go 해 줘" , "go to <place> 해 줘" , "<place> 가 please" , "please <place>로 가" ,
"<place>로 move 해 줘" , "<place> 쪽으로 go" , "lumi, <place>로 가" , "루미야 go to <place>" , "<place> 고고" ,
"<place>로 고" , "<place>로 무브" , "<place>로 이동 please" , "go <place>로" ,
# Korean slips
"<place>로 가조" , "<place>로 가져" , "<place>러 가" , "<place>로 가쥬" , "<place>로 이동해 져" ,
]
COME = [
"come here" , "come here please" , "come to me" , "come over here" , "come closer" , "come a bit closer" , "get over here" ,
"come this way" , "over here please" , "come over to me" , "can you come here" , "could you come over here" ,
"would you come to me" , "lumi, come here" , "hey lumi, come over" , "come on over here" , "come towards me" ,
"approach me" , "move closer to me" , "get closer to me" , "drive over to me" , "come to where i am" , "come where i'm standing" ,
"come near me" , "come by me" , "i need you over here" , "i want you to come here" , "please come here now" ,
"come to my side" , "come stand next to me" , "roll over here" , "come hither" , "kum here" , "come hear" , "cum here pls" ,
"you come here" , "robot come" , "come come" , "come here quick" , "hurry over here" ,
"이리 와" , "이리 와 봐" , "이리 와 줘" , "여기로 와" , "여기로 와 줘" , "나한테 와" , "나한테 와 줘" , "가까이 와" , "가까이 와 봐" ,
"좀 더 가까이 와" , "이쪽으로 와" , "이쪽으로 와 봐" , "내 쪽으로 와" , "내 옆으로 와" , "여기 와" , "와 봐" ,
"이리 오세요" , "이리 와 주세요" , "여기로 와 주세요" , "저한테 와 주세요" , "저한테 와 주실래요?" , "가까이 와 주세요" ,
"이쪽으로 와 주세요" , "제 옆으로 와 주세요" , "여기로 좀 와 주시겠어요?" , "이리로 오십시오" , "이쪽으로 와 주십시오" ,
"제게 와 주십시오" , "come 여기로" , "여기로 come" , "이리 come" , "루미야 come here" , "come here 해 줘" , "여기로 와 please" ,
"이리 와조" , "일루 와" , "일로 와" , "이루 와" ,
]
FOLLOW = [
2026-10-22 22:09:53 +09:00
"stick with me, let's go" , '나 follow 해' , 'you follow, i walk' , '천천히 따라와' , '이 늙은이 좀 따라와' ,
2026-10-22 20:29:40 +09:00
'나 쫓아와' , '쫓아와' , '쫓아와 줘' , 'you follow' , 'you follow me' , "you're coming with me" , 'come along with me now' , 'go where i go' , 'walk where i walk' , 'stay right behind me' , '따라오라고' , '빨리 따라와' ,
'walk beside me' , 'walk next to me' , 'stay by my side' , 'come along' , 'keep close to me' , 'follow behind me' , 'follow me over there' , 'follow me this way' , 'be my shadow' , 'go with me' , 'accompany me' , 'escort me' , '옆에서 같이 걸어' , '저랑 같이 걸어요' , '같이 가 줄래?' , '나 따라와 봐' , '저를 따라와 주시겠어요?' , '따라 오세요' , '따라오십시오' , '저 좀 따라와 주세요' , '나만 따라와' , '함께 가요' , 'follow 해 주세요' ,
"follow me" , "follow me please" , "please follow me" , "come with me" , "come along with me" , "walk with me" ,
"tag along" , "tag along with me" , "stay with me" , "keep up with me" , "stick with me" , "stay behind me" ,
"go where i go" , "come after me" , "follow us" , "come with us" , "walk behind me" , "track me" , "follow my lead" ,
"can you follow me" , "could you follow me please" , "would you follow me" , "i want you to follow me" ,
"let's walk together" , "come on, follow me" , "follow me around" , "keep following me" , "follow along" ,
"lumi, follow me" , "hey lumi, come with me" , "follow mi" , "fallow me" , "follo me" , "follow me plz" , "you follow me" ,
"robot follow" , "me follow you go" , "following me please" ,
"따라와" , "따라와 줘" , "나 따라와" , "나를 따라와" , "날 따라와" , "따라와 봐" , "따라 와" , "같이 가자" , "나랑 같이 가" ,
"나랑 가자" , "뒤에서 따라와" , "날 따라다녀" , "나 따라다녀" , "따라올래?" , "같이 걸어가자" ,
"따라오세요" , "저를 따라오세요" , "저 따라오세요" , "따라와 주세요" , "저랑 같이 가요" , "저 따라와 주실래요?" ,
"따라와 줄래요?" , "같이 가 주세요" , "저를 따라오십시오" , "따라와 주십시오" , "저와 함께 가시죠" ,
"follow 해" , "follow 해 줘" , "follow me 해 줘" , "나 follow 해" , "루미야 follow me" , "따라와 please" , "팔로우 미" ,
"팔로우 해 줘" , "나 팔로우 해" , "따라와조" , "딸아와" ,
]
COME_BACK = [
"come back" , "come back here" , "come back please" , "return to where you were" , "go back to where you were" ,
"go back to your spot" , "go back to your place" , "go back to the start" , "return to your starting point" ,
"return to your original spot" , "go back to where you started" , "head back to where you were standing" ,
"come back to your spot" , "back to where you were" , "go back where you came from" , "return please" ,
"can you come back" , "could you go back to your old spot" , "lumi, come back" , "comeback" , "come bak" ,
"돌아와" , "돌아와 줘" , "다시 돌아와" , "원래 자리로 돌아와" , "원래 자리로 가" , "원래 있던 곳으로 돌아가" , "제자리로 돌아가" ,
"아까 있던 자리로 가" , "처음 자리로 돌아가" , "돌아와 봐" , "돌아오세요" , "돌아와 주세요" , "원래 자리로 돌아가 주세요" ,
"제자리로 돌아가 주세요" , "원래 위치로 돌아가십시오" , "복귀해" , "복귀해 주세요" , "come back 해 줘" , "원래 자리로 go back" ,
"돌아 와" , "도라와" ,
]
MOVE = [
2026-10-22 22:09:53 +09:00
'move to the front 1 meter' , 'scoot to the front 1 meter' , 'go to the front 1 meter' , 'slide to the front 1 meter' , 'could you move to the left 1 meter' , 'go backwards 1 meter' ,
2026-10-22 20:29:40 +09:00
'move 1 meter ahead' , 'drive 1 meter ahead slowly' , 'go to the left 1 meter' , 'drive 1 meter backwards' , 'reverse 1 meter' , 'roll to your left 1 meter' , 'come back 1 meter' , 'backwards 1 meter' , 'go 1 meter to your right' , 'just 1 meter forwards' , 'move ahead 1 meter' , 'move forward 1 meter' , 'go to your right 1 meter' , 'back yourself up 1 meter' , 'go right by 1 meter' , 'move backward 1 meter' , 'roll ahead 1 meter' , '앞으로 1 meter 가' , '뒤로 1 meter 이동해' , '왼쪽으로 1 meter 가 줘' , '오른쪽으로 1 meter 이동해 주세요' ,
"move forward" , "move forward a bit" , "go forward a little" , "go ahead a bit" , "drive forward" , "roll forward" ,
"step forward" , "take a step forward" , "inch forward" , "scoot forward" , "move ahead" , "go straight a little" ,
"move back" , "move back a bit" , "go back a little" , "back up" , "back up a bit" , "back up a little please" ,
"reverse a bit" , "step back" , "take a step back" , "move backwards" , "go backward" , "scoot back" , "give me some space, back up" ,
"move left" , "move to the left" , "move to your left a bit" , "slide to the left" , "shift left a little" , "step to the left" ,
"go left a little" , "scoot left" , "move right" , "move to the right" , "move to your right a bit" , "slide to the right" ,
"shift right a little" , "step to the right" , "go right a little" , "scoot right" ,
"move forward one meter" , "go back half a meter" , "move left 50 centimeters" , "move right 30 cm" , "go forward 2 meters" ,
"back up one meter" , "move forward 1 m" , "move back 0.5 m" , "go 20 cm to the left" , "go 1 meter to the right" ,
"move forward two steps" , "go back one step" , "a little forward please" , "a bit to the left please" ,
"forward a little" , "back a little" , "left a bit" , "right a bit" , "come forward a bit" , "move a little closer forward" ,
"moov forward" , "move forword" , "go fowards" , "bak up" , "moove back" , "move lef" , "move rite" ,
"앞으로 가" , "앞으로 조금 가" , "앞으로 가 봐" , "앞으로 좀 가 줘" , "앞으로 이동해" , "앞으로 한 걸음" , "앞으로 한 발짝 와" ,
"조금 앞으로" , "뒤로 가" , "뒤로 조금 가" , "뒤로 물러나" , "뒤로 좀 빠져" , "뒤로 이동해" , "후진해" , "후진 좀 해 줘" , "뒤로 한 걸음" ,
"조금 뒤로" , "왼쪽으로 가" , "왼쪽으로 조금 가" , "왼쪽으로 이동해" , "왼쪽으로 비켜" , "왼쪽으로 한 걸음" , "조금 왼쪽으로" ,
"오른쪽으로 가" , "오른쪽으로 조금 가" , "오른쪽으로 이동해" , "오른쪽으로 비켜" , "오른쪽으로 한 걸음" , "조금 오른쪽으로" ,
"앞으로 1미터 가" , "뒤로 50센티 가" , "왼쪽으로 30센티 이동해" , "오른쪽으로 1미터 가" , "앞으로 2미터 이동해" ,
"앞으로 가 주세요" , "앞으로 조금만 가 주세요" , "뒤로 가 주세요" , "뒤로 조금 물러나 주세요" , "왼쪽으로 가 주세요" ,
"오른쪽으로 이동해 주세요" , "앞으로 이동해 주십시오" , "뒤로 이동해 주십시오" , "왼쪽으로 이동하십시오" , "오른쪽으로 이동하십시오" ,
"앞으로 move" , "뒤로 back" , "left로 가" , "right로 이동" , "forward로 가" , "back 해 줘" , "앞으로 go" , "뒤로 go" ,
"앞으로 가조" , "뒤로 가조" , "압으로 가" ,
]
TURN = [
2026-10-22 22:09:53 +09:00
'you turn full circle' , 'do a full spin' , 'turn yourself to the left' , 'turn yourself to the right' , '왼쪽으로 좀 돌아 주실래요' , '오른쪽으로 좀 돌아 봐' , '뒤돌아 주십시오' , 'turn 90 degrees to the left' ,
2026-10-22 20:29:40 +09:00
'hang a left' , 'hang a right' , '오른쪽으로 꺾어' , '왼쪽으로 꺾어' , '좌회전 해' , '우회전 해' , '좌회전' , '우회전' , 'u턴 해 줘' , 'turn right by 90 degrees' , 'could you turn 90 degrees to your right' , 'spin 90 degrees left' , 'rotate 90 degrees to the right' , '제자리에서 왼쪽으로 돌아' , 'tern right' , '턴 레프트' , '턴 라이트' , 'right로 돌아' ,
'turn yourself to the left' , 'turn your body to your left' , 'turn your body right' , 'rotate your body left' , 'please turn yourself to the right' , 'turn to face the other way' , 'face the other way' , 'spin 360 degrees' , 'spin all the way around' , 'do a full turn' , 'turn 90 degrees right' , 'rotate 45 degrees left' , '좌측으로 회전해' , '우측으로 회전해' , '좌측으로 20도 회전해 줘' , '우측으로 30도 돌아' , '반대쪽으로 돌아' , '반대로 돌아 서' , '몸 돌려' , '180도 돌아' , '뒤로 돌아서' , '왼쪽으로 몸 돌려 줘' , '오른쪽으로 방향 바꿔' , '방향 바꿔 왼쪽으로' ,
"turn left" , "turn right" , "turn around" , "turn to the left" , "turn to the right" , "turn your body left" ,
"rotate left" , "rotate right" , "spin around" , "turn left 90 degrees" , "turn right 45 degrees" , "turn 30 degrees left" ,
"make a left turn" , "make a right turn" , "do a u-turn" , "turn back around" , "face the other way" , "rotate to your right" ,
"pivot left" , "pivot right" , "turn yourself around" , "about face" , "can you turn left" , "please turn right" ,
"turn lefft" , "tern right" , "turn arond" , "turn rite" ,
"왼쪽으로 돌아" , "오른쪽으로 돌아" , "뒤로 돌아" , "왼쪽으로 회전해" , "오른쪽으로 회전해" , "한 바퀴 돌아" , "뒤돌아" ,
"왼쪽으로 90도 돌아" , "오른쪽으로 45도 돌아" , "왼쪽으로 돌아 줘" , "오른쪽으로 몸 돌려" , "몸을 왼쪽으로 돌려" ,
"왼쪽으로 돌아 주세요" , "오른쪽으로 돌아 주세요" , "뒤로 돌아 주세요" , "왼쪽으로 회전해 주십시오" , "오른쪽으로 회전하십시오" ,
"turn 왼쪽" , "오른쪽으로 turn" , "left로 돌아" , "right로 돌아 줘" , "왼쪽으로 turn 해" , "유턴해" , "유턴 해 줘" ,
]
LOOK = [
2026-10-22 22:09:53 +09:00
'eyes to the left' , 'look over to the right' , 'look at the left' , "look here, i'm the one talking" , '위를 좀 쳐다봐' , '아래 좀 봐' , '밑에 좀 봐' , '뒤 좀 봐' , 'look 아래' , 'look 위로 해 줘' , 'down 쪽 봐 줘' , '오른쪽 look' , '앞을 똑바로 봐' , '여기 봐, 여기' , 'you look me please' , 'chin up' , 'look left real fast' ,
2026-10-22 20:29:40 +09:00
'look rightwards' , 'look leftwards' , 'look upward' , 'look downward' , 'look at the ground' , 'look at your feet' , 'look me in the eye' , 'watch me' , '나 쳐다봐' , '저 보세요' , '땅 봐' , '왼편 봐' , '오른편 봐' , 'face forward' , 'eyes front' , 'head back to center' , 'reset your head' , 'center your head' , 'straighten your head' , 'put your head back to the middle' , '고개 원위치' , '고개 가운데로' , '고개 원래대로 해 줘' , 'front 봐' , '앞에 봐' , 'look away' , 'avert your eyes' , 'turn your eyes away' , '딴 데 봐' , '다른 데 봐' , '시선 좀 돌려 줘' , 'turn to me' , 'turn your head toward me' , '고개 나한테 돌려' , 'chin up' , 'tilt your head up a bit' , 'look higher' , 'look a bit to the left' , '레프트 봐' , '라이트 봐' , 'swivel your head left' , 'turn the head left 60' , 'look over to the right' , 'look at mee' , 'luk right' , 'look upp' ,
'glance right' , 'glance left' , 'eyes up' , 'eyes down' , 'eyes left' , 'eyes right' , 'look at the ceiling' , 'look at the floor' , 'look to your right please' , 'look 30 degrees to the left' , 'look 20 degrees right' , 'turn your head 45 degrees left' , 'look up at me' , 'look down at the floor' , 'look this way please' , 'look at my face' , '천장 봐' , '바닥 봐' , '하늘 봐' , '땅 봐' , '고개 down 해 줘' , '고개 up' , 'head up 해' , '여기 look' , '여기 좀 봐' , '앞을 보십시오' , '정면을 봐요' , '왼쪽 좀 봐 줄래?' , '오른쪽 쳐다봐' , '날 쳐다봐' , '저 좀 쳐다봐 주세요' , '고개 숙여 주세요' , '고개를 왼쪽으로 30도 돌려' , '위쪽 봐' , '아래쪽 봐' , '카메라 봐' , '이쪽 좀 봐 주세요' ,
"look at me" , "look at me please" , "eyes on me" , "look over here" , "look this way" , "face me" , "look my way" ,
"turn your head to me" , "look at us" , "can you look at me" , "watch me" , "look straight" , "look ahead" ,
"look forward" , "look straight ahead" , "look left" , "look to the left" , "look right" , "look to the right" ,
"look up" , "look down" , "look up a bit" , "look down a little" , "turn your head left" , "turn your head right" ,
"raise your head" , "lower your head" , "head up" , "head down" , "tilt your head up" , "tilt your head down" ,
"look behind you" , "look back" , "look over your shoulder" , "look at my son" , "look at my daughter" ,
"look at my friend" , "lok at me" , "luck at me" , "look write" , "look lef" , "eyes over here" , "look here please" ,
"나 봐" , "날 봐" , "나를 봐" , "나 좀 봐" , "날 좀 봐 줘" , "여기 봐" , "이쪽 봐" , "이쪽을 봐" , "정면 봐" , "앞을 봐" , "왼쪽 봐" ,
"오른쪽 봐" , "위 봐" , "위를 봐" , "아래 봐" , "아래를 봐" , "고개 들어" , "고개 숙여" , "고개 왼쪽으로 돌려" , "고개 오른쪽으로 돌려" ,
"고개 들어 봐" , "뒤 봐" , "뒤를 봐" , "뒤돌아 봐" , "우리 애 좀 봐 줘" ,
"저 봐 주세요" , "저를 봐 주세요" , "저 좀 봐 주세요" , "여기 봐 주세요" , "이쪽 봐 주세요" , "정면을 봐 주세요" ,
"왼쪽을 봐 주세요" , "오른쪽 봐 주세요" , "고개 들어 주세요" , "위를 봐 주세요" , "저를 봐 주십시오" , "정면을 보십시오" ,
"look at 나" , "나 look" , "left 봐" , "right 봐" , "up 봐" , "여기 look" , "look 여기" , "eyes on 나" ,
]
LIFT = [
2026-10-22 22:09:53 +09:00
'make yourself small' , 'shrink a little' , 'make you more tall' , 'you make body high please' , 'body 좀 올려 줘' , 'rise up' , '조금만 더 커져 봐' , '위로 쭉 올라가 봐' , '아래로 내려가 봐' , '몸을 좀 낮추십시오' ,
2026-10-22 20:29:40 +09:00
'shrink' , 'squat down a bit' , 'elevate yourself' , 'drop your height' , 'lower your height' , 'raise your height' , 'stretch up tall' , 'go all the way down' , 'keep going down' , 'move up for a sec' , 'move down' , 'drop down an inch' , 'raise up by 1 meter' , 'go up 1 meter' , 'come down 1 meter' , '몸 좀 들어 올려 줄래?' , '몸 위로' , '높이 좀 낮춰 주실래요?' , '조금 낮아져 줄래?' , '높이 올려' , '더 올려' , '아래로 내려가 봐' , '1 meter 높여 줘' , '1 meter 내려가' ,
'go up a bit' , 'go up' , 'go down' , 'up a little' , 'down a little' , 'sink down' , 'rise up' , 'get up higher' , 'a bit higher please' , 'a bit lower please' , 'lower down a little' , 'raise up' , 'move up' , 'move down a bit' , 'lift up a little' , 'make yourself a bit higher' , 'come up a bit' , '커져 봐' , '좀 더 커져 봐' , '키 커져 봐' , '작아져 봐' , '올라가' , '조금만 올라가 줄래요?' , '내려가' , '조금 내려가 줘' , '높이 올려 줘요' , '높게 올라가' , '낮게 내려가' , '위로 올라가 줘' , '아래로 내려가 줘' , '키 좀 키워 줘' , '키 좀 줄여 줘' , '몸 좀 높여 주세요' , 'go up 해 봐' , 'up 해 줘' , 'down 해 줘' ,
"raise yourself" , "raise yourself up" , "lift yourself up" , "get taller" , "make yourself taller" , "stand up tall" ,
"go higher" , "lower yourself" , "get shorter" , "make yourself shorter" , "go lower" , "get a bit taller" ,
"get a little lower" , "raise your body" , "lower your body" , "lift your body up" , "raise your torso" ,
"lower your torso" , "lift up" , "stand taller" , "rise up a bit" , "come down a bit" , "shrink down a little" ,
"raise yourself 5 cm" , "lower yourself 3 centimeters" , "grow taller" , "get smaller" , "lift yourself" ,
"키 높여" , "키 좀 높여" , "키 키워" , "키 낮춰" , "키 좀 낮춰" , "몸 올려" , "몸 내려" , "몸 좀 올려 봐" , "몸 좀 낮춰" , "몸을 낮춰" ,
"리프트 올려" , "리프트 내려" , "상체 올려" , "상체 내려" , "더 높게" , "더 낮게" , "키 좀 높여 주세요" , "몸을 올려 주세요" ,
"몸을 낮춰 주세요" , "리프트 올려 주세요" , "리프트를 내려 주십시오" , "키를 높여 주십시오" , "lift 올려 줘" , "lift 내려" ,
"키 up" , "몸 down" , "taller 해 줘" , "몸 업" , "리프트 업" ,
]
WAVE = [
2026-10-22 22:09:53 +09:00
'say hello to everyone with a wave' , 'say hi to them with a wave' , 'wave your hand please' , '손 한번 흔들어 봐' , 'wave at everyone' ,
2026-10-22 20:29:40 +09:00
'mind giving us a wave' , 'give a wave' , 'give them a wave' , 'wave for the camera' , 'wave once more' , 'wave again' , 'one more wave' , 'do your hand wave' , 'do your wave' , 'show me your wave' , '팔 흔들어 봐' , '팔 흔들어 줘' , '한 번만 더 흔들어 줘' , '다시 손 흔들어' , '손 한 번 흔들어 봐' , '손 흔들어 인사해' , '인사 손 흔들어 줘' , '바이바이 손 흔들어' , '손 흔들어 주실래요?' , '손 좀 흔들어 줄래?' , 'wave 한 번 해 줘' , '손 흔들기 해 줘' ,
"wave" , "wave at me" , "wave to me" , "wave your hand" , "wave hello" , "wave hi" , "wave at us" , "give us a wave" ,
"give me a wave" , "wave to the people" , "wave to everyone" , "wave to the guests" , "say hi with your arm" ,
"say hi with your hand" , "say hello with your hand" , "greet them with your hand" , "wave your arm" ,
"wave goodbye to them" , "wave to the kids" , "can you wave" , "could you wave at us" , "please wave" ,
"do a wave" , "show us your wave" , "shake your hand at me" , "lift your hand and wave" , "wave your arm around" ,
"greet me with a wave" , "a little wave please" , "wave wave" , "wave plz" , "weave at me" , "wave et me" , "way of hello" ,
"손 흔들어" , "손 흔들어 줘" , "손 흔들어 봐" , "손 좀 흔들어" , "손 인사 해" , "손 인사 해 줘" , "손으로 인사해" , "손으로 인사해 봐" ,
"팔 흔들어" , "팔 흔들어 봐" , "우리한테 손 흔들어" , "애들한테 손 흔들어 줘" , "손 흔들면서 인사해" , "흔들어 봐" ,
"손 흔들어 주세요" , "손 좀 흔들어 주세요" , "손 인사 해 주세요" , "손으로 인사해 주세요" , "저희한테 손 흔들어 주세요" ,
"손을 흔들어 주십시오" , "손 인사를 해 주십시오" , "wave 해" , "wave 해 줘" , "손 wave" , "웨이브 해 줘" , "손 흔들어 please" ,
"hi 해 봐 손으로" , "손 흔드러" , "손 흔들어조" ,
]
ARM_REACH = [
2026-10-22 22:09:53 +09:00
'lemme see your hand' , 'let me see your hand' , 'hand out' , 'reach out your hand' , 'hand 좀 내밀어 줘' , '팔 reach 해 줘' , 'offer your hand to my grandma' , 'you give me hand please' , 'arm out! arm out!' , '팔 쭉 뻗어 봐' ,
2026-10-22 20:29:40 +09:00
'reach your hand to me' , 'hold out you hand' , 'hold it out' , '나한테 손 줘' , '손 이리 줘 봐' , 'hand 줘 봐' , '손 줘 봐' , 'reach out, thanks' , 'reach your arm out' , 'reech out to me' ,
'arm out' , 'arm out please' , 'put your hand out' , 'reach forward' , 'extend your hand' , 'stretch out' , 'stretch your hand forward' , '손 앞으로 내밀어' , '손 좀 앞으로 내밀어 주세요' , '팔 extend 해 줘' , '팔 앞으로' , '팔 앞으로 뻗어' , '팔 펴 줘' , '팔 쭉 펴 주세요' , '팔 내밀어 줄래?' , '손 뻗어' , 'reach out 해 줘' ,
"reach out" , "reach out your arm" , "stretch your arm" , "stretch out your arm" , "extend your arm" , "hold out your arm" ,
"hold out your hand" , "put your arm out" , "stick your arm out" , "give me your hand" , "offer me your hand" ,
"reach towards me" , "reach out to me" , "arm out please" , "straighten your arm" , "lift your arm up" , "raise your arm" ,
"show me your arm" , "reach your hand out" , "can you reach out your arm" ,
"팔 뻗어" , "팔 뻗어 봐" , "팔 좀 뻗어" , "팔 내밀어" , "팔 좀 내밀어 봐" , "팔을 쭉 뻗어 줘" , "손 내밀어" , "손 좀 내밀어 봐" ,
"팔 쭉 펴" , "팔 들어" , "팔 올려" , "팔 뻗어 주세요" , "팔을 내밀어 주세요" , "손을 내밀어 주세요" , "팔을 뻗어 주십시오" ,
"arm 뻗어" , "팔 reach" , "팔 쭉" , "팔 뻐더" ,
]
ARM_FOLD = [
2026-10-22 22:09:53 +09:00
'arm back in' , 'you close arm please, put back' , 'arm 접어 줘' , '팔 거두십시오' , '팔 접어 봐' ,
2026-10-22 20:29:40 +09:00
'pull your arm back in' , 'pull your hand back in' , 'take your hand back' , 'arm back home' , 'bring the arm home' , '손 다시 넣어' , '이제 접어' , '접어' , '팔 다시 넣어' , 'fold you arm' , '넣어' ,
'fold arm' , 'fold it' , 'you can fold your arm now' , 'arm in' , 'arm away' , 'retract your arm' , 'bring your arm in' , 'tuck it in' , '팔 제자리로' , '팔 원위치' , '팔 다시 접어' , '팔 넣어 줘' , 'fold arm 해 줘' , '팔 fold' , '팔 거둬 줘' , '팔 내려 줄래?' ,
"fold your arm" , "fold your arm up" , "put your arm down" , "put your arm away" , "take your arm back" , "tuck your arm in" ,
"arm down" , "bring your arm back" , "lower your arm" , "pull your arm in" , "rest your arm" , "arm back please" ,
"put your arm back" , "relax your arm" , "drop your arm" ,
"팔 접어" , "팔 접어 줘" , "팔 내려" , "팔 좀 내려" , "팔 거둬" , "팔 넣어" , "팔 원래대로" , "팔 접어 주세요" , "팔을 내려 주세요" ,
"팔을 거둬 주세요" , "팔을 접어 주십시오" , "arm 접어" , "팔 down" , "팔 내려 please" ,
]
ARM_OPEN = [
"open your hand" , "open your fingers" , "open the gripper" , "open your gripper" , "open up your hand" , "spread your fingers" ,
"unclench your hand" , "open your claw" , "hand open please" ,
"손 펴" , "손 펴 봐" , "손 좀 펴 봐" , "손 벌려" , "손가락 펴" , "그리퍼 열어" , "손 열어" , "손 펴 주세요" , "손을 펴 주십시오" ,
"그리퍼 열어 주세요" , "hand 펴" , "손 open" , "gripper open 해" ,
]
ARM_CLOSE = [
"close your hand" , "close your fingers" , "close the gripper" , "make a fist" , "clench your hand" , "squeeze your fingers" ,
"close your claw" , "shut your hand" , "hand closed please" ,
"손 쥐어" , "손 꽉 쥐어" , "주먹 쥐어" , "손 오므려" , "그리퍼 닫아" , "손 닫아" , "손가락 오므려" , "손 쥐어 주세요" ,
"주먹 쥐어 주세요" , "그리퍼 닫아 주십시오" , "손 close" , "gripper close 해" , "주먹 쥐어 봐" ,
]
PICK = [
2026-10-22 22:09:53 +09:00
'<obj> grab 해 봐' , '그 <obj> 좀 grab 해 봐' , '<obj> 하나 잡아 봐' , '<obj> take 해' , 'pick up the <obj> please' ,
2026-10-22 20:29:40 +09:00
'take hold of the <obj>' , 'get hold of the <obj>' , 'snatch the <obj>' , 'snatch a <obj>' , 'try picking up the <obj>' , '<obj> pick 해 줘' , '<obj> 픽 해 줘' , '<obj> 픽업해 줘' , '<obj> take 해 줘' , '<obj> 좀 take 해' , '<obj> 집으세요' , '<obj> 한번 집어 봐요' , '<obj> 쥐어 봐' , '<obj> 들어 봐' , 'grab 해 <obj>' , '<obj> pick up 해' , 'pick upp the <obj>' ,
'would you mind grabbing the <obj>' , 'mind grabbing the <obj>' , 'grab me the <obj> off the table' , 'pick the <obj> up off the table' , 'take hold of that <obj>' , 'can you grab that <obj>' , 'lift up the <obj>' , '<obj> pick up' , '<obj> 좀 pick up' , '<obj> 집어 줄래?' , '<obj> 좀 집어 줄래요?' , '<obj> 잡아 볼래?' , '<obj> 들어 볼래?' , '<obj> 하나 집어' , '<obj> 좀 집으세요' , '<obj>을 집어 주십시오' , '<obj> 잡으세요' ,
"pick up the <obj>" , "take the <obj>" , "grab the <obj>" , "get the <obj>" , "pick the <obj> up" , "lift the <obj>" ,
"take hold of the <obj>" , "grab that <obj>" , "snag that <obj>" , "can you pick up the <obj>" ,
"could you grab the <obj> please" , "would you mind picking up the <obj>" , "please take the <obj>" ,
"pick up that <obj> on the table" , "take the <obj> from the table" , "grab the <obj> over there" ,
"i want you to pick up the <obj>" , "pick up the <obj> for me" , "go ahead and grab the <obj>" , "pic up the <obj>" ,
"pick op the <obj>" , "grap the <obj>" , "take da <obj>" ,
"<obj> 집어" , "<obj> 집어 줘" , "<obj> 좀 집어 봐" , "<obj> 들어" , "<obj> 들어 줘" , "<obj> 잡아" , "<obj> 잡아 줘" , "<obj> 집어 올려" ,
"<obj> 들어 올려" , "<obj> 좀 잡아 봐" , "저 <obj> 집어" , "테이블 위에 <obj> 집어" , "<obj> 집어 주세요" , "<obj> 좀 들어 주세요" ,
"<obj> 잡아 주세요" , "<obj> 집어 주실래요?" , "<obj> 들어 줄래요?" , "<obj> 집어 주십시오" , "<obj>을 들어 주십시오" ,
"<obj> pick up 해 줘" , "<obj> 좀 pick up 해" , "pick up <obj>" , "<obj> grab 해" , "<obj> 픽업 해 줘" , "<obj> 집어조" ,
]
PUT = [
"put it down" , "set it down" , "put that down" , "place it down" , "put the cup down" , "lay it down" , "drop it here" ,
"put it back" , "put it back where it was" , "return it to where it was" , "put the cup back" , "set it back down" ,
"can you put it down" , "please put it down now" ,
"내려놔" , "내려놔 줘" , "내려 놓아" , "그거 내려놔" , "컵 내려놔" , "제자리에 놔" , "원래 자리에 놔" , "다시 갖다 놔" , "도로 놔" ,
"내려놔 주세요" , "내려 놓아 주세요" , "제자리에 놔 주세요" , "원래 자리에 놓아 주십시오" , "put down 해" , "내려놔 please" ,
"put it back 해 줘" ,
]
FETCH = [
2026-10-22 22:09:53 +09:00
'bring me the <obj> from <place>' , 'go get the <obj> from <place>' , 'get me a <obj> from <place>' , 'fetch the <obj> from <place>' , 'would you mind getting a <obj> from <place>' , 'can you bring me the <obj> from <place>' , '<place>에서 <obj> 가져와' , '<place>에서 <obj> 가져다 줘' , '<place>에서 <obj> 갖고 와' , '<place>에서 <obj> 챙겨 와' , '<place>에서 <obj> 좀 가져와 주세요' , '<place>에서 <obj> 가져다 주십시오' , '<place>에서 <obj> bring 해 줘' , '<place>에서 <obj> fetch 해 줘' , '<place>에 있는 <obj> 가져와' ,
2026-10-22 20:29:40 +09:00
"bring me the <obj>" , "bring me a <obj>" , "get me the <obj>" , "get me a <obj>" , "fetch the <obj>" , "fetch me a <obj>" ,
"bring the <obj> to me" , "bring the <obj> here" , "go get the <obj>" , "go get me a <obj>" , "can you bring me the <obj>" ,
"could you get me a <obj> please" , "i'd like a <obj>, bring it here" , "would you fetch me the <obj>" ,
"bring over the <obj>" , "hand me the <obj>" , "pass me the <obj>" , "brin me the <obj>" , "bring me da <obj>" ,
"<obj> 가져와" , "<obj> 가져다 줘" , "<obj> 갖다 줘" , "<obj> 좀 가져와 봐" , "<obj> 가지고 와" , "<obj> 좀 갖다 줄래?" ,
"나한테 <obj> 가져다 줘" , "<obj> 여기로 가져와" , "<obj> 가져다 주세요" , "<obj> 좀 갖다 주세요" , "<obj> 가져와 주실래요?" ,
"저한테 <obj> 가져다 주세요" , "<obj>을 가져다 주십시오" , "<obj> bring 해 줘" , "<obj> 가져와 please" , "bring <obj> 해 줘" ,
"<obj> 가저와" ,
]
NO = [
2026-10-22 22:09:53 +09:00
'can it wave? i wonder' , 'i wonder if it can follow people' , 'does it pick up cups?' , 'can the robot turn around?' , 'this robot can go anywhere' , 'it can lift itself, right' , '이거 손 흔들 수 있나?' , '얘 따라오나 봐' , '로봇이 컵 집을 수 있나?' , '이 로봇 회전하나요?' , '쟤 움직이나 봐' , '로봇이 어디로 가나?' , '궁금하다, 팔 뻗을 수 있나' , 'does this thing move?' ,
'가자' , '가자 이제' , '이제 가자' , '자 가자' , "let's go now" , "okay let's go" , "come on, let's go" , 'back to where you picked it up' , 'put it back where you found it' ,
# past events and tag questions are the PAST_EN / past_ko / TAG guards' (exact, before any match)
2026-10-22 20:29:40 +09:00
'인스타 팔로우 해 줘' , 'follow us on instagram' , 'follow our account' , '따라 해 봐' , '내 말 따라 해' , 'repeat after me' , 'copy me' , 'do what i do' , 'can you lend me a hand?' , 'give me a hand with this' , '한 번만 더 해 줘' , 'do it again' , 'again please' , 'one more time' , '다시 해 줘' , '또 해 봐' , '한 번 더' , 'over here for a sec' , 'wait over there' , 'the other way' , '왼쪽으로' , '오른쪽으로' , '앞으로' , '뒤로' ,
2026-10-23 16:59:30 +09:00
'can your arm move?' , 'how long is your arm?' , 'how far can you reach?' , 'can you turn your head?' , 'is your head turning?' , 'how high can you go?' , 'how low can you go?' , "what's on the ceiling?" , 'is the floor clean?' , 'where are you looking?' , 'what are you looking at?' , '어디 보고 있어?' , '왜 나를 봐?' , '왜 따라와?' , '키가 몇이야?' , '팔 길이가 얼마야?' , '고개 아파?' , '손 차가워?' , '손 따뜻해?' ,
2026-10-22 20:29:40 +09:00
# cut-off starts
"let's" , "can you" , "could you" , "please" , "lumi, can you" , "wait" , "hmm" , "so" , "go" , "move" , "turn" , "look" ,
"루미야 저기" , "저기요" , "루미야" , "혹시" , "그럼" , "잠깐만" , "있잖아" , "근데" ,
# talk about places, trips and the map
"i went to the stage yesterday" , "the stage is over there" , "where is the stage?" , "what's at booth A?" ,
"how far is the lobby?" , "is the coffee corner open?" , "the exit is on the left" , "i'm going to the lobby" ,
"my friend is at booth A" , "have you been to the stage?" , "do you know where the exit is?" , "which booth is yours?" ,
"how do i get to the stage?" , "can i go to the lobby?" , "is it far to the entrance?" , "the lobby is crowded" ,
"스테이지 어디야?" , "로비가 어디예요?" , "출구 어디 있어요?" , "부스 A에 뭐 있어?" , "커피 코너 열었어요?" , "저 로비로 갈게요" ,
"나 스테이지 갔다 왔어" , "로비 멀어요?" , "화장실 어디예요?" , "입구가 어디죠?" , "스테이지까지 얼마나 걸려?" ,
"where are you going?" , "where did you go?" , "어디 가?" , "어디 가는 거야?" , "어디 갔다 왔어?" ,
# ability, how
"can you walk?" , "can you move by yourself?" , "can you pick things up?" , "how do you pick up a cup?" ,
"are you able to follow people?" , "how fast can you move?" , "can you climb stairs?" , "do you have arms?" ,
"how heavy can you lift?" , "can you see me?" , "how do you know where to go?" , "can robots dance?" ,
"물건 집을 수 있어?" , "혼자 움직일 수 있어?" , "어떻게 컵을 집어?" , "사람 따라갈 수 있어요?" , "계단 올라갈 수 있어?" ,
"얼마나 빨리 움직여?" , "팔 있어?" , "몇 킬로까지 들 수 있어?" , "어떻게 길을 찾아?" , "손 흔들 줄 알아?" ,
# negation, stop
"don't go to the stage" , "don't move" , "don't follow me" , "don't look at me" , "stop following me" , "no, stay here" ,
"stay where you are" , "don't wave" , "don't pick that up" , "leave the cup" , "stay put" , "you don't have to come" ,
"가지 마" , "움직이지 마" , "따라오지 마" , "쳐다보지 마" , "손 흔들지 마" , "그거 집지 마" , "거기 그대로 있어" , "가만히 있어" ,
"오지 마세요" , "안 와도 돼" , "따라오지 마세요" ,
# later, conditions
"go to the stage when the guests arrive" , "after the talk, wave to them" , "if someone comes, follow them" ,
"later you can go to the lobby" , "wave when i say so" , "come here after the meeting" , "tomorrow go to booth A" ,
"손님 오시면 손 흔들어" , "나중에 스테이지로 가" , "회의 끝나면 이리 와" , "내가 부르면 와" , "이따가 로비로 가" ,
"사람 오면 따라가" ,
# to someone else
"mom, look at the robot" , "kids, wave to the robot" , "honey, come here" , "jake, come see this" , "민수야 이리 와" ,
"엄마 이거 봐" , "얘들아 로봇한테 손 흔들어" , "지민아 따라와" , "여보 이리 와 봐" ,
# closings, back-channels
"okay" , "thanks" , "thank you" , "okay thanks" , "i see" , "got it" , "alright" , "sounds good" , "cool" , "nice" ,
"that's all" , "that's it" , "never mind" , "good job" , "well done" , "great" , "perfect" ,
"알겠어" , "알겠어요" , "고마워" , "감사합니다" , "오케이" , "됐어" , "됐어요" , "그렇구나" , "좋아" , "잘했어" , "수고했어" , "괜찮아" ,
# talk, opinions, about Lumi
"you look cute" , "your arm is cool" , "i like your hand" , "you move so smoothly" , "you turned really fast" ,
"that was a nice wave" , "you're tall" , "your head moves" , "nice to meet you" , "hello" , "hi lumi" , "good morning" ,
"what's your name?" , "who made you?" , "how old are you?" , "tell me about yourself" , "tell me a joke" ,
"what can you do?" , "what are you doing?" , "are you busy?" , "how's your battery?" , "are you tired?" ,
"귀엽다" , "팔 멋있다" , "손 신기하다" , "움직임 부드럽네" , "키 크다" , "반가워" , "안녕" , "안녕하세요" , "이름이 뭐야?" ,
"누가 만들었어?" , "몇 살이야?" , "자기소개 해 줘" , "농담 해 줘" , "뭐 할 수 있어?" , "뭐 하고 있어?" , "배터리 얼마나 남았어?" ,
# company / event questions
"what does cutshion do?" , "who is the ceo of your company?" , "where is your company?" , "how many people work there?" ,
"tell me about cutshion" , "what products do you make?" , "is this booth yours?" , "when does the event end?" ,
"쿳션은 뭐 하는 회사야?" , "회사 어디 있어요?" , "대표가 누구예요?" , "직원 몇 명이에요?" , "이 행사 언제 끝나요?" ,
# visitor about themselves
"i'll follow you" , "let me follow you" , "i'm going to wave" , "i can lift that" , "i picked up the cup" ,
"i'm looking at you" , "i turned left at the corner" , "i'll come back later" , "i'll bring you a cup" ,
"제가 따라갈게요" , "내가 손 흔들게" , "제가 컵 들게요" , "저 왼쪽으로 돌았어요" , "나중에 다시 올게요" , "내가 가져올게" ,
"my son wants to see you wave" , "he went to the lobby" , "she looked at you" , "they picked up the cups" ,
# seeing questions
"what am i holding?" , "what colour is my shirt?" , "how many people do you see?" , "do you see the cup?" ,
"is there a bottle on the table?" , "what's in front of you?" , "뭐 들고 있게?" , "내 옷 무슨 색이야?" , "컵 보여?" ,
"앞에 뭐 있어?" , "사람 몇 명 보여?" ,
# things that sound like commands but are not
"look it up" , "look up the weather" , "look for my keys" , "turn off the lights" , "turn the music down" ,
"pick a number" , "pick one for me" , "take a picture" , "take a guess" , "take care" , "take your time" ,
"go ahead, tell me" , "go on" , "come on" , "come on, really?" , "follow the rules" , "follow your heart" ,
"bring it on" , "put it on my tab" , "wave of people" , "the wave was big" , "raise the volume" , "lower the volume" ,
"lift me up with a song" , "turn up the music" , "give me a hint" , "give me a second" , "hold on" ,
"날씨 찾아 봐" , "검색해 봐" , "불 꺼" , "볼륨 줄여" , "사진 찍어" , "아무거나 골라" , "계속해" , "말해 봐" , "잠깐 기다려" ,
]
RECEIVE = [
"take this" , "take this from me" , "hold this" , "hold this <obj>" , "take my <obj>" , "here, take it" , "here you go, take it" ,
"i want to give you a <obj>" , "i'm handing you the <obj>" , "take the <obj> from my hand" , "grab this from me" ,
"can you hold this for me" , "keep this for me" , "take it from me" , "catch this" , "i have a <obj> for you" ,
"이거 받아" , "이거 받아 줘" , "이거 들고 있어" , "이 <obj> 받아 줘" , "제 손에 있는 <obj> 가져가세요" , "<obj> 드릴게요" ,
"이거 좀 들어 줘" , "이거 가져가" , "이거 받아 주세요" , "이것 좀 들고 계세요" , "<obj> 받아 줄래요?" , "이거 take 해" ,
]
GIVE = [
"give it to me" , "give me that" , "hand it over" , "pass it over here" , "give it back" , "give me what you're holding" ,
"can i have it" , "let me have it" , "hand it to me please" , "give that to me" , "i'll take it now" , "pass it to me" ,
"이리 줘" , "그거 줘" , "그거 이리 주세요" , "나 줘" , "저 주세요" , "줘 봐" , "돌려줘" , "그거 저한테 주세요" , "건네줘" ,
"이리 넘겨" , "give me 해 줘" , "나한테 줘" ,
]
NO += [
"face <place>" , "look at <place>" , "look towards <place>" , "point at <place>" , "<place> 쪽을 봐" , "<place> 봐" ,
"go upstairs" , "go downstairs" , "위층으로 가" , "아래층으로 가" , "go to sleep" , "go to bed" , "go home now, i'm tired" ,
"the <obj>" , "<obj>" , "the <obj> the <obj>" , "a <obj>" , "<obj> <obj>" , "that <obj>" , "my <obj>" , "your <obj>" ,
"<obj> 있어" , "<obj>야" , "그 <obj>" , "내 <obj>" , "<obj> 예쁘다" , "<obj> 좋아해" , "<obj> 맛있어" , "i like the <obj>" ,
"this <obj> is mine" , "the <obj> is red" , "i bought a <obj>" , "i need a new <obj>" , "<obj> 샀어" , "이 <obj> 내 거야" ,
"go for it" , "go away" , "get lost" , "come on now" , "come again?" , "follow up later" , "look who's here" ,
"lift my mood" , "turn it off" , "wave goodbye to your old life" , "move on" , "let it go" , "back off from that topic" ,
"저리 가" , "가 버려" , "꺼져" , "됐어 가" , "알아서 해" , "마음대로 해" , "좀 쉬어" , "가만있어 봐" ,
]
2026-10-23 12:58:04 +09:00
# round 5: more speakers (kids, elderly, non-native, Konglish, dialect endings 경상 / 전라 / 충청, whisper slips)
GO += [
"kindly go to <place>" , "please make your way over to <place>" , "would you be so kind as to go to <place>" ,
"could you possibly head to <place>" , "i'd appreciate it if you went to <place>" , "you may go to <place> now" ,
"go on over to <place>" , "zip over to <place>" , "pop over to <place>" , "nip over to <place>" , "dash over to <place>" ,
"go to <place>, chop chop" , "hop over to <place>" , "<place>, now please" ,
"robot, go to <place>!" , "go go go to <place>" , "please go to <place> robot" , "go to <place> pretty please" ,
"you go <place> now please" , "please moving to <place>" , "go for <place>" , "you must go <place>" ,
"go to <place> place" , "please go in <place>" , "go at <place>" , "please you moving <place>" , "<place> go please" ,
"go to <place> asap" , "head down to <place>" , "make tracks to <place>" ,
"<place>로 가 주세요 루미" , "<place>까지 가 보세요" , "<place> 쪽으로 가 봐" , "<place> 쪽으로 이동" , "<place>로 이동" ,
"<place>로 가 보거라" , "<place>로 가거라" , "<place>로 가 보게" , "<place>로 가 주게" , "<place>로 가 주시오" ,
"<place>로 가 주이소" , "<place>로 가 보이소" , "<place>로 퍼뜩 가라" , "<place>로 가 봐라" , "<place>로 가라 마" ,
"<place>로 가 부러" , "<place>로 가 보랑께" , "<place>로 가 봐유" , "<place>로 가유" , "<place>로 가 줘유" ,
"<place>로 가 주셔유" , "<place> 가 주라" , "<place>로 가 봐용" , "<place>로 가 줘용" , "<place>로 가쟈" ,
"<place>로 출발하세요" , "<place>로 출발해 주세요" , "<place>로 향해" , "<place>로 향해 주세요" , "<place>로 이동하세요" ,
"<place>로 이동 부탁해" , "<place>로 이동 부탁해요" , "<place>로 좀 가 주실래요?" , "<place>로 가 주실 수 있으세요?" ,
"<place> 가 주세요" , "<place>에 가 주실래요?" , "<place>까지 이동해 주세요" , "<place>까지 가 주실래요?" ,
"<place>로 가 줘라" , "<place>로 가 봐 얼른" , "<place>로 ㄱ" , "<place> ㄱㄱ" , "<place>로 무브 해 줘" ,
"<place>로 go 해 주세요" , "<place>로 고 해 줘" , "go to <place> 해 주세요" , "<place> 로 이동 please" ,
"<place>로 고우" , "<place>로 가 쥬" , "<place>로 가 즈" , "<place>로 가 저" , "<place>로 가 주새요" ,
]
COME += [
"come here, robot!" , "come over here, little robot" , "robot come here please" , "come here come here" ,
"pwease come here" , "come to me robot" , "come here quickly please" , "c'mon over here" , "c'mere" , "come 'ere" ,
"get over here, buddy" , "come over this way" , "come over here to me" , "come here a sec" , "come closer please" ,
"would you kindly come here" , "please come over to me" , "kindly come here" , "could you come closer to me" ,
"you come to me please" , "you come near me" , "please coming here" , "come to here" , "come at me here" ,
"come to this side" , "please you come here" , "come in front of me" , "come stand in front of me" ,
"이리 오너라" , "이리 와 보거라" , "이리 와 보게" , "이리 오게" , "이리 오시게" , "이리 와 보시오" , "이리 와 주시오" ,
"일로 와 봐라" , "이리 온나" , "퍼뜩 온나" , "이리 와 보이소" , "이리 오이소" , "이리 와 부러" , "이리 와 보랑께" ,
"이리 와 봐유" , "이리 와유" , "여기로 와유" , "이리 와 줘유" , "이리 와 봐용" , "이리 와 줘용" , "이리 와 주라" ,
"여기로 좀 와 봐" , "여기까지 와 봐" , "여기까지 와 주세요" , "제 앞으로 와 주세요" , "내 앞으로 와" , "가까이 와 주실래요?" ,
"가까이 좀 와 봐" , "가까이 오세요" , "가까이 오십시오" , "더 가까이 와 줘" , "조금 더 가까이 와 주세요" , "이쪽으로 오세요" ,
"here 와" , "come 해" , "come 해 줘" , "come here 해 주세요" , "이리 와 please" , "여기 와 줘 please" , "컴 히어" ,
"이리 화" , "이리 와 바" , "여기로 와 쥬" , "가까이 와 쥬" ,
]
FOLLOW += [
"follow me, little robot" , "robot follow me!" , "follow me follow me" , "come follow me" , "follow me, okay?" ,
"kindly follow me" , "please follow me this way" , "would you kindly follow me" , "please come along with me" ,
"follow me if you please" , "you will follow me" , "you follow behind me" , "please you following me" ,
"following me" , "follow to me" , "follow me go" , "you come with me together" , "together with me go" ,
"stay close behind me" , "walk along with me" , "trail behind me" , "shadow me" , "stay on my tail" , "keep on my heels" ,
"come along now" , "this way, follow me" , "follow me over here" , "come with me, robot" , "flolow me" , "follow meee" ,
"나 따라오너라" , "날 따라오게" , "날 따라오시게" , "나를 따라오시오" , "따라오거라" , "따라 온나" , "퍼뜩 따라 온나" ,
"따라오이소" , "날 따라와 부러" , "따라와 잉" , "따라와유" , "따라와 줘유" , "나 따라와 봐유" , "따라와 줘용" , "따라와 봐용" ,
"따라와 주라" , "나 좀 따라와" , "나 좀 따라와 줘" , "저 좀 따라오세요" , "저를 따라와 주세요" , "저를 따라와 주십시오" ,
"제 뒤를 따라오세요" , "내 뒤를 따라와" , "내 뒤에 붙어" , "나한테 붙어 와" , "나랑 같이 가 줘" , "나랑 같이 걸어" ,
"저랑 같이 가 주세요" , "저와 같이 가 주실래요?" , "함께 가 주세요" , "follow 해 봐" , "나 따라 come" , "같이 go" ,
"with me 가자" , "팔로우 미 해 줘" , "따라와져" , "따라 와 쥬" , "따라오세여" ,
]
COME_BACK += [
"come back to me" , "come back now" , "come on back" , "come back please robot" , "please return" , "return now" ,
"go back to where you were before" , "back to your old spot please" , "go back to your starting place" ,
"please go back to the place you started" , "kindly return to your spot" , "you come back please" ,
"come back to before place" , "go back first place" , "return back" , "come back here robot" ,
"돌아오너라" , "돌아오게" , "돌아와 보이소" , "돌아온나" , "퍼뜩 돌아온나" , "돌아와 부러" , "돌아와유" , "돌아와 줘용" ,
"다시 돌아와 주세요" , "원래 자리로 와" , "원래 자리로 돌아와 주세요" , "제자리로 와" ,
"처음 있던 데로 가" , "아까 그 자리로 돌아가" , "아까 있던 데로 돌아와" , "원위치로 돌아가" , "원위치 해" , "원위치해 주세요" ,
"돌아가 주십시오" , "복귀하십시오" , "복귀해 줘" , "come back 해" , "돌아 come" , "comeback 해 줘" , "돌아와 주라" ,
]
MOVE += [
"scooch forward" , "scooch back" , "budge up a bit" , "move up a little forward" , "inch back a bit" , "nudge forward" ,
"nudge back a little" , "shuffle left" , "shuffle to the right" , "back up some more space please" ,
"kindly move forward a little" , "please step back a bit" , "could you move back a little" , "would you move left a bit" ,
"you go forward little" , "you go back little" , "go front little bit" , "go little front" , "move little left" ,
"move little bit right" , "please moving back" , "a little bit back please" ,
"forward forward" , "back back" , "move forward a tiny bit" , "move a teeny bit to the left" ,
"move forward 50 centimeters" , "move back 30 centimeters" , "go left 1 meter" , "go right 50 cm" ,
"앞으로 와" , "앞으로 좀 와 봐" , "앞으로 조금만 와" , "조금 앞으로 와 줘" , "뒤로 좀 가 봐" , "뒤로 조금만" , "뒤로 좀 물러나 봐" ,
"뒤로 빠져 줘" , "뒤로 물러서" , "뒤로 물러서 주세요" , "옆으로 비켜" , "왼쪽으로 좀 비켜 줘" , "오른쪽으로 좀 비켜 주세요" ,
"왼쪽으로 살짝 가" , "오른쪽으로 살짝 이동해" , "앞으로 살짝" , "뒤로 살짝" , "앞으로 쪼끔 가" , "뒤로 쪼끔만" ,
"앞으로 가 보거라" , "뒤로 물러나게" , "뒤로 물러나 보이소" , "앞으로 가 보이소" , "뒤로 쫌 가라" , "앞으로 가 부러" ,
"뒤로 가 봐유" , "앞으로 가유" , "뒤로 가 줘용" , "왼쪽으로 가 주이소" , "오른쪽으로 가 봐유" ,
"앞으로 1미터만 가" , "뒤로 30센티만 가 줘" , "왼쪽으로 50센티 가 주세요" , "오른쪽으로 1미터 이동하십시오" ,
"앞으로 이동하세요" , "뒤로 이동하세요" , "후진하세요" , "후진해 주세요" , "후진하십시오" ,
"앞으로 무브" , "뒤로 무브" , "back 좀 해 줘" , "forward 해 줘" , "레프트로 가" , "라이트로 가" , "백 해 줘" ,
"아프로 가" , "뒤루 가" , "뒤로 가조" , "외쪽으로 가" ,
]
TURN += [
"turn left please" , "please turn to your left" , "kindly turn right" , "could you turn to the right" ,
"would you turn around please" , "spin right" , "spin left" , "turn around robot" , "turn round" ,
"go turn left" , "you turn left" , "you turn right please" , "please turning left" , "turn to left side" ,
"turn to right side" , "turn back side" , "turn your body around" , "rotate around" , "rotate yourself around" ,
"do a 180" , "turn 180" , "flip around" , "swing around" , "turn left a bit" , "turn right a little" ,
"turn left 30 degrees please" , "rotate 90 degrees left" , "spin around once" ,
"왼쪽으로 돌아 봐" , "오른쪽으로 돌아 봐" , "뒤로 돌아 봐" , "뒤로 돌아 줘" , "돌아서" , "뒤돌아서 봐" , "한 바퀴 돌아 봐" ,
"한 바퀴 돌아 주세요" , "빙글 돌아" , "빙그르르 돌아 봐" , "왼쪽으로 몸 돌려 주세요" , "오른쪽으로 몸 좀 돌려" ,
"왼쪽으로 돌아 보거라" , "오른쪽으로 돌아 보이소" , "뒤로 돌아 보이소" , "왼쪽으로 돌아 부러" , "오른쪽으로 돌아 봐유" ,
"뒤로 돌아유" , "한 바퀴 돌아 봐용" , "왼쪽으로 돌아 주라" , "오른쪽으로 회전하세요" , "왼쪽으로 회전하세요" ,
"왼쪽으로 30도 돌아 주세요" , "오른쪽으로 90도 회전해" , "좌로 돌아" , "우로 돌아" , "뒤로 돌아 실시" ,
"턴 해" , "유턴" , "left turn 해 줘" , "right turn 해" , "turn around 해 줘" , "한 바퀴 spin" , "오른쪽으로 도라" ,
]
LOOK += [
"look at me robot" , "look at me, look at me" , "look over here robot" , "look here look here" , "look look" ,
"kindly look at me" , "would you look at me please" , "please look this way" , "could you look to the left" ,
"you look at me" , "look to me" , "look on me" ,
"please look up" , "look up please" , "look down please" , "look left please" , "look right please" ,
"peek to the left" , "peek right" , "glance over here" , "look straight at me" , "keep your eyes on me" ,
"eyes on me please" , "turn your face to me" , "face this way" , "look the front" , "look front" ,
"날 좀 보거라" , "나를 보게" , "여길 보게" , "여기 보이소" , "여 보이소" , "이짝 봐" , "이짝 보랑께" , "날 봐 부러" , "여기 봐유" ,
"나 좀 봐유" , "여기 봐 줘용" , "날 봐 주라" , "저 좀 보세요" , "여기 보세요" , "이쪽 보세요" , "앞에 보세요" , "위에 보세요" ,
"아래 보세요" , "왼쪽 보세요" , "오른쪽 보세요" , "위로 봐" , "아래로 봐" , "위쪽 좀 봐 줘" , "아래쪽 좀 봐 주세요" ,
"고개 들어 보세요" , "고개 숙여 봐" , "고개 왼쪽으로 돌려 주세요" , "고개 오른쪽으로 돌려 주세요" , "고개 위로" ,
"고개 아래로" , "고개 똑바로" , "고개 똑바로 해" , "앞 봐" , "앞에 봐 줘" , "정면 보세요" , "저 쳐다봐 주세요" , "날 쳐다봐 줘" ,
"날 봐 please" , "look 나" , "lookat me" , "luk at me" , "look et me" , "날 바" , "여기 바" ,
]
LIFT += [
"get taller please" , "be taller" , "be tall" , "be shorter" , "grow up tall" , "make yourself bigger" ,
"make yourself higher please" , "go up up" , "up up up" , "down down" , "go down a little bit" , "go up a little bit" ,
"lower yourself a bit please" , "raise yourself a bit" , "come down lower" , "move your body up" , "move your body down" ,
"you go up please" , "you go down" , "body up" , "body down" , "make body up" , "make body down" , "you more high" ,
"you more low" , "lift yourself higher" , "lower yourself down" , "drop a little lower" ,
"올라가 봐" , "조금 올라가 봐" , "더 올라가" , "더 내려가" , "조금만 내려가" , "조금만 올라가" , "위로 올라가 봐" ,
"아래로 내려와" , "내려와" , "내려와 봐" , "올라와" , "키 높여 봐" , "키 낮춰 봐" , "키 좀 높여 줄래?" , "키 좀 낮춰 줄래요?" ,
"몸 높여" , "몸 낮춰 봐" , "몸을 높여 주세요" , "몸 좀 내려 주세요" , "높이 높여" , "높이 낮춰" , "높이 좀 올려 주세요" ,
"높이 내려 주세요" , "키 크게 해 줘" , "키 작게 해 줘" , "키 높이세요" , "키를 낮추십시오" ,
"올라가 보거라" , "내려가 보게" , "올라가 보이소" , "내려가 보이소" , "올라가 부러" , "내려가 봐유" , "올라가유" , "키 높여 줘용" ,
"키 up 해 줘" , "몸 up" , "높이 up" , "높이 down" , "업 해 줘" , "다운 해 줘" , "키 업" , "키 다운" , "오라가" , "내려가조" ,
]
WAVE += [
"wave to me please" , "wave at me robot" , "wave wave wave" , "robot wave!" , "wave bye bye" , "bye bye wave" ,
"wave hi to me" , "wave hello to us" , "give everyone a wave" , "kindly wave to us" , "would you wave to us please" ,
"please wave your hand to me" , "you wave hand please" , "hand wave please" , "do hand wave" ,
"do wave hand" , "hello with hand please" , "say bye with your hand" , "say goodbye with your hand" ,
"wave goodbye" , "wave goodbye to me" , "wave to the camera" , "wave to my mom" , "wave to my kid" , "wave to the crowd" ,
"give a little wave" , "do a little wave" , "waive at me" , "wave too me" , "wave to us all" ,
"손 흔들어 보거라" , "손 흔들어 보게" , "손 좀 흔들어 보이소" , "손 흔들어 부러" , "손 흔들어 봐유" , "손 흔들어 줘유" ,
"손 흔들어 줘용" , "손 흔들어 주라" , "손 흔들어 주시겠어요?" , "손 흔들어 주실래요" , "손 흔들어 주시오" ,
"손 흔들어 인사해 주세요" , "손 흔들면서 인사해 주세요" , "손 흔들어서 인사해 봐" , "손 흔들어 인사해 봐" ,
"바이바이 해 줘" , "빠이빠이 해 줘" , "빠이빠이 해 봐" , "안녕 손 흔들어 줘" , "손으로 안녕 해 봐" , "손으로 바이바이 해" ,
"우리 애한테 손 흔들어 주세요" , "엄마한테 손 흔들어 줘" , "할머니한테 손 흔들어 드려" , "카메라 보고 손 흔들어" ,
"손 흔들어 봐 줘" , "손 한번 흔들어 주세요" , "팔 한번 흔들어 봐" , "wave 해 주세요" , "wave 좀 해 봐" , "웨이브 해 봐" ,
"손 wave 해 줘" , "hand wave 해 줘" , "바이 해 손으로" , "손 흔더러" , "손 흔드러 줘" , "손 흔들어 쥬" ,
]
ARM_REACH += [
"reach out please" , "reach out to me please" , "kindly reach out your arm" , "would you reach out your hand" ,
"please stretch out your arm" , "hold your arm out" , "hold your hand out to me" , "hand out please" ,
"put your hand forward" , "push your arm out" , "arm forward" , "arm forward please" , "your arm, stretch it out" ,
"you stretch arm please" , "you put arm out" , "arm long please" , "make arm long" , "arm straight please" ,
2026-10-26 05:43:03 +09:00
"reach reach" , "gimme your hand" , "give your hand to me" , "give me a hand" , "루미야 손 줘" ,
2026-10-23 12:58:04 +09:00
"팔 뻗어 보거라" , "팔 뻗어 보게" , "팔 좀 뻗어 보이소" , "팔 뻗어 부러" , "팔 뻗어 봐유" , "팔 뻗어 줘용" , "팔 뻗어 주라" ,
"팔 좀 뻗어 주세요" , "팔 쭉 뻗어 주세요" , "팔 앞으로 뻗어 주세요" , "팔 앞으로 내밀어 주세요" , "손 내밀어 주세요" ,
"손 좀 내밀어 줄래?" , "손 앞으로 뻗어" , "손 쭉 뻗어 봐" , "팔 펴 봐" , "팔 펴 주세요" , "팔을 펴 주십시오" ,
"손 줘" , "팔 쭉 펴 봐" , "팔 길게 뻗어" , "arm 펴 줘" , "arm out 해 줘" ,
"팔 out" , "손 reach" , "팔 뻗어조" , "팔 버더" ,
]
ARM_FOLD += [
"fold your arm please" , "kindly fold your arm" , "please put your arm away" , "put the arm down please" ,
"arm down please" , "bring your arm back in" , "pull your arm back" , "take back your arm" ,
"you fold arm" , "arm close please" , "arm fold please" , "put arm back" , "arm go back" , "arm rest" ,
"relax your arm now" , "you can put your arm down" , "rest your arm now" , "lower the arm" ,
"팔 접어 보거라" , "팔 접어 보이소" , "팔 접어 부러" , "팔 접어 봐유" , "팔 접어 줘용" , "팔 접어 주라" , "팔 좀 접어 주세요" ,
"팔 거둬 주세요" , "팔 넣어 주세요" , "팔 내려 주세요" , "팔 내려 줘" , "팔 내려 봐" , "팔 원위치 해 줘" , "팔 제자리에 놔" ,
"팔 다시 접어 주세요" , "팔 쉬어" , "팔 내려놓으세요" , "팔 내리십시오" , "팔 접으세요" , "팔 접으십시오" , "팔 fold 해 줘" ,
"arm 내려" , "arm down 해" , "팔 접어조" , "팔 저버" ,
]
ARM_OPEN += [
"open hand" , "open your hand please" , "please open your fingers" , "open the hand" , "hand open" ,
"open your grip" , "release your grip" , "let go of your grip" , "you open hand" , "fingers open" ,
"손 펴 봐 줘" , "손 좀 펴" , "손 벌려 봐" , "손 좀 벌려 주세요" , "손가락 좀 펴 봐" , "손 펴 보거라" , "손 펴 보이소" ,
"손 펴 봐유" , "손 펴 줘용" , "손 열어 주세요" , "그리퍼 열어 줘" , "그리퍼 좀 열어 봐" , "집게 열어" , "집게 벌려" ,
"손 펴세요" , "손 펴십시오" , "손 오픈" , "그리퍼 오픈" , "open 해 손" , "손 펴조" ,
]
ARM_CLOSE += [
"close hand" , "close your hand please" , "please close your fingers" , "close the hand" , "hand close" ,
"close your grip" , "tighten your grip" , "make a fist please" , "you close hand" , "fingers close" ,
"손 쥐어 봐" , "손 꽉 쥐어 봐" , "주먹 쥐어 줘" , "주먹 꽉 쥐어" , "손 오므려 봐" , "손 오므려 주세요" , "손가락 좀 오므려" ,
"손 쥐어 보거라" , "주먹 쥐어 보이소" , "손 쥐어 봐유" , "주먹 쥐어 줘용" , "손 닫아 주세요" , "그리퍼 닫아 줘" ,
"그리퍼 좀 닫아 봐" , "집게 닫아" , "집게 오므려" , "손 쥐세요" , "주먹 쥐십시오" , "손 클로즈" , "그리퍼 클로즈" , "주먹 쥐어조" ,
]
PICK += [
"pick up the <obj> please" , "please pick up the <obj>" , "kindly pick up the <obj>" , "would you pick up the <obj>" ,
"could you take the <obj> please" , "please grab the <obj>" , "grab the <obj> please" , "get the <obj> please" ,
"pick the <obj>" , "pick <obj> up" , "you pick up <obj>" , "you take <obj> please" , "please picking the <obj>" ,
"take up the <obj>" , "grab hold of the <obj>" , "seize the <obj>" , "nab the <obj>" , "pick up that <obj> there" ,
"grab the <obj> on the table" , "take the <obj> off the table" , "pick that <obj> up" , "pick up the <obj> robot" ,
"pickup the <obj>" , "pik up the <obj>" , "pick up da <obj>" , "grabb the <obj>" ,
"<obj> 집어 보거라" , "<obj> 집어 보이소" , "<obj> 집어 부러" , "<obj> 집어 봐유" , "<obj> 집어 줘용" , "<obj> 집어 주라" ,
"<obj> 좀 집어" , "<obj> 좀 집어 줘" , "<obj> 좀 집어 주세요" , "<obj> 집어 볼래?" , "<obj> 잡아 봐" , "<obj> 좀 잡아" ,
"<obj> 쥐어" , "<obj> 집으십시오" , "<obj> 들어 올려 주세요" , "<obj> 집어 올려 주세요" , "그 <obj> 집어 봐" ,
"저기 <obj> 집어" , "<obj> 하나 집어 주세요" , "<obj> 잡아 주실래요?" , "<obj> 집어 주실 수 있어요?" ,
"<obj> 픽업" , "<obj> 그랩 해" , "<obj> grab" , "<obj> 잡아조" , "<obj> 지버" ,
]
FETCH += [
"bring me the <obj> please" , "please bring me a <obj>" , "kindly bring me the <obj>" , "would you bring me the <obj>" ,
"could you fetch me the <obj>" , "go and get me the <obj>" , "get the <obj> for me" , "fetch me the <obj> please" ,
"bring the <obj> over here" , "bring the <obj> over to me" , "bring a <obj> to me" , "carry the <obj> to me" ,
"you bring me <obj>" , "you bring <obj> please" , "bring <obj> to me" , "bring me <obj> please" , "bring here the <obj>" ,
"go fetch the <obj>" , "go grab me a <obj>" , "grab me a <obj>" , "grab me the <obj>" , "fetch <obj>" , "brung me the <obj>" ,
"bring mi the <obj>" , "<obj> please bring" ,
"<obj> 가져와 봐" , "<obj> 가져다 줄래?" , "<obj> 갖다 줄래요?" , "<obj> 좀 가져다 줘" , "<obj> 좀 가져와 줘" ,
"<obj> 가져와 주세요" , "<obj> 갖다 주실래요?" , "<obj> 가져다 주시겠어요?" , "<obj> 가져오십시오" , "<obj> 갖다 주십시오" ,
"<obj> 가져오거라" , "<obj> 갖다 주게" , "<obj> 가 온나" , "<obj> 퍼뜩 가 온나" , "<obj> 가져와 보이소" , "<obj> 갖다 주이소" ,
"<obj> 가져와 부러" , "<obj> 갖다 줘 잉" , "<obj> 가져와유" , "<obj> 갖다 줘유" , "<obj> 가져와 줘용" , "<obj> 갖다 주라" ,
"<obj> 챙겨 와" , "<obj> 챙겨 와 줘" , "<obj> 좀 챙겨다 줘" , "나한테 <obj> 갖다 줘" , "저한테 <obj> 좀 가져다 주세요" ,
"<obj> 여기로 갖다 줘" , "<obj> 이리 가져와" , "<obj> 가지고 와 주세요" , "<obj> 가져와 줄 수 있어?" ,
"<obj> 브링 해 줘" , "<obj> 갖고 와 please" , "<obj> fetch 해" , "<obj> 가저다 줘" , "<obj> 가져와조" ,
]
NO += [
"my robot at home follows me" , "my dog follows me everywhere" , "the kids waved at you" , "you waved so nicely" ,
"i like how you turn" , "your arm reaches far" , "can you reach that high?" , "do you pick things up often?" ,
"is your hand strong?" , "how many cups can you hold?" , "can it bring me coffee?" , "does it come when called?" ,
"우리 집 강아지는 날 따라와" , "애들이 손 흔들었어" , "팔 진짜 길다" , "손 힘 세?" , "컵 몇 개 들 수 있어?" ,
"커피도 가져다 줄 수 있나?" , "부르면 오나?" , "로봇이 날 따라왔어" , "손 흔드는 거 귀엽다" , "고개 돌리는 거 신기해" ,
"bring your own cup" , "bring it home" , "come as you are" , "come to think of it" , "look at that" , "look at this" ,
"look at them" , "follow the money" , "turn the page" , "pick your battles" , "fetch the ball, boy" ,
"그거 봐 봐" , "다시 출발해" , "다시 출발해 주세요" , "can you see what's on your right?" , "what do you see on your left?" , "see anything up there?" , "오른쪽에 뭐 보여?" , "위에 뭐 있어?" , "다시 가" , "다시 가 봐" , "저거 봐" , "저것 좀 봐" , "이것 좀 봐" , "얘들아 저거 봐" , "바이바이" , "빠이빠이" , "잘 가" , "안녕히 가세요" ,
]
2026-10-22 20:29:40 +09:00
KINDS = { "go_to" : GO , "come" : COME , "follow" : FOLLOW , "come_back" : COME_BACK , "move" : MOVE , "turn" : TURN , "look" : LOOK ,
"lift" : LIFT , "wave" : WAVE , "arm_reach" : ARM_REACH , "arm_fold" : ARM_FOLD , "arm_open" : ARM_OPEN ,
"arm_close" : ARM_CLOSE , "pick" : PICK , "put" : PUT , "fetch" : FETCH , "receive" : RECEIVE , "give" : GIVE , "no" : NO }
2026-10-26 05:43:03 +09:00
for _k , _t in __import__ ( "assistant.bank_words" , fromlist = [ "merged" ]) . merged ( "INTENT" ) . items ():
KINDS [ _k ] = KINDS . get ( _k , []) + [ t for t in _t if t not in KINDS . get ( _k , [])] # assistant/bank_words/*.py
2026-10-22 20:29:40 +09:00
ACTS = set ( KINDS ) - { "put" , "receive" , "give" , "no" } # the kinds the bank acts on; the hand's (put down, take, hand
# over) are brain.hand_request's or the LLM's
def _fill ( t , slot , en , ko ):
if slot not in t :
return [ t ]
pool = ko if re . search ( r "[가-힣]" , t . replace ( slot , "" )) else en
2026-10-22 22:09:53 +09:00
r = random . Random ( zlib . crc32 ( t . encode ())) # the same fills for a wording whatever is added around it
if slot == "<place>" : # a named marker is embedded as CANON_PLACE (core): always one fill
return [ t . replace ( slot , f ) for f in [ CANON_PLACE ] + r . sample ([ f for f in pool if f != CANON_PLACE ], FILLS - 1 )]
canon = "컵" if pool is ko else "cup" # an object is embedded as this one (core): always one fill
return [ t . replace ( slot , f ) for f in [ canon ] + r . sample ([ f for f in pool if f != canon ], FILLS - 1 )]
2026-10-22 20:29:40 +09:00
def examples ():
2026-10-26 05:43:03 +09:00
"""[(text, kind)]: the bank with its <place> / <obj> slots filled (FILLS each, a fixed seed), Korean endings as
plain() reads them (wording.ko_plain: "가 주세요" is stored as "가 줘"), each once."""
from assistant import wording
2026-10-22 20:29:40 +09:00
out = []
for kind , texts in KINDS . items ():
for t in texts :
for a in _fill ( t , "<place>" , PLACE_EN , PLACE_KO ):
2026-10-26 05:43:03 +09:00
out += [( wording . ko_plain ( b ), kind ) for b in _fill ( a , "<obj>" , OBJ_EN , OBJ_KO )]
return list ( dict . fromkeys ( out ))
2026-10-22 20:29:40 +09:00
_bank = None
def _load ():
2026-10-26 05:43:03 +09:00
"""(vectors, kinds) of the bank; embeddings kept per wording in the cache (bank_words.vectors)."""
2026-10-22 20:29:40 +09:00
global _bank
if _bank is None :
2026-10-26 05:43:03 +09:00
from assistant import bank_words
2026-10-22 20:29:40 +09:00
ex = examples ()
2026-10-26 05:43:03 +09:00
_bank = ( bank_words . vectors ([ t for t , _ in ex ], CACHE ), np . array ([ k for _ , k in ex ]))
2026-10-22 20:29:40 +09:00
return _bank
POLITE = re . compile ( r "\bif you don'?t mind\b|\b(?:it'?d|it would|that would|that'?d) be (?:great|nice|good|lovely|awesome|"
2026-10-27 08:13:59 +09:00
r "cool|helpful) if you(?: could)?\b|^\W*go ahead and\b|\bfor a (?:sec|second|moment|bit)\b|\bif you please\b|"
r ",?\s*if you (?:would|could|can|will)\s*[.!?]*$|\bwhy don'?t (?:you|u)\b|\bi don'?t suppose (?:you|u) could\b|"
r "\b(?:is it|would it be) (?:okay|ok|alright) (?:if (?:you|u)|to|for (?:you|u) to)\b|"
r "\bis there any way (?:you|u) could\b|\b(?:could|can|may) i ask (?:you|u) to\b" , re . I )
# "why don't you rotate left", "would it be okay to spin around": asked now, politely
2026-10-22 22:09:53 +09:00
SLANG = [( re . compile ( rf "(?<![\w가-힣]) { a } (?![\w가-힣])" , re . I ), b ) for a , b in (
2026-10-27 08:13:59 +09:00
( "wav" , "wave" ), ( "reech" , "reach" ), ( "urself" , "yourself" ), ( "ur" , "your" ), ( "u(?!-?turn)" , "you" ), ( "lemme" , "let me" ), ( "luk" , "look" ),
2026-10-22 22:09:53 +09:00
( "pickup" , "pick up" ), ( "plz|pls" , "please" ), ( "mister robot|hey robot|yo robot|bro|buddy|lol|beep boop" , "" ),
( "^ \\ W*robot" , "" ), ( ",? \\ s*robot(?= \\ s*[,.!?]| \\ s*$)" , "" ),
( "보이소|보시오|보시게|보십시오" , "봐" ), ( "주이소|주시게" , "주세요" ), ( "따라온나|따라오시게|따라오이소" , "따라와" ),
2026-10-27 08:13:59 +09:00
( "왼짝|웬쪽|왼 쪽" , "왼쪽" ), ( "오른짝|오른 쪽" , "오른쪽" ), ( "뒤루" , "뒤로" ), ( "도라" , "돌아" ), ( "오른쪽바" , "오른쪽 봐" ), ( "왼쪽바" , "왼쪽 봐" ),
2026-10-22 22:09:53 +09:00
( "얘(?= ?,? ?(?:로봇|루미))" , "" ), ( "로봇아|로봇 양반|로봇씨" , "" ), ( "어이|ㅋ+" , "" ))]
# slang, whisper's spellings, dialect endings and calls: read as the plain word (the bank and the slots)
2026-10-22 20:29:40 +09:00
LEAD = re . compile ( r "^\W*(?:(?:excuse me|okay so|ok so|so|uh+|um+|yo|hi|hey|hello|alright|all right|okay|ok|well|listen|"
2026-10-27 08:13:59 +09:00
r "ah+|oh+|wow|hmm+|buddy|lumi|robot|hey robot|로봇(?=[\s,.!])|루미아|누미야|루미루미|로봇 ?(?:씨|님|친구야?)|로봇아|로봇야|이봐요?|이보게|이보세요|"
2026-10-26 05:43:03 +09:00
r "실례지만|실례합니다|아가|얘야|있잖아요?|여보세요|루미 ?군|루미 ?선생|루미 ?씨|루미야|루미씨|루미|저기요|저기|자|야(?=\s*,?\s*(?:루미|로봇))|음|어|좋아|이제|그럼|근데|그런데|아|like)\b[\s,.!~]*)+" , re . I )
2026-10-22 20:29:40 +09:00
AMOUNT = [( re . compile ( r "\b\d+(?:\.\d+)?\s*(?:degrees?|도)(?![a-z])|\b\d+(?:\.\d+)?도" , re . I ), "90 degrees" ),
( re . compile ( r "\b\d+(?:\.\d+)?\s*(?:m|meters?|metres?|cm|centimet(?:er|re)s?|mm|millimet(?:er|re)s?|"
r "미터|센티(?:미터)?|센치|밀리)(?![a-z])" , re . I ), "1 meter" )] # embedded as one amount
def plain ( text ):
"""The words without polite frames ("if you don't mind", "it'd be great if you could") and calls before."""
2026-10-26 05:43:03 +09:00
from assistant import wording
2026-10-27 08:13:59 +09:00
text = re . sub ( r "(?<=[가-힣])(?:시|으시)?면 (?:좋겠|감사하겠|고맙겠)(?:어요|습니다|어|네요|는데요?)?|(?<=[가-힣]) 주면 땡큐" , "세요" ,
text or "" ) # "몸 내리시면 좋겠어요", "follow 모드 해 주면 땡큐": asked now
2026-10-26 07:36:03 +09:00
t = POLITE . sub ( " " , wording . polite ( wording . ko_plain ( wording . now_not_later ( text ))))
2026-10-22 22:09:53 +09:00
for rx , word in SLANG :
t = rx . sub ( word , t )
2026-10-27 08:13:59 +09:00
t = re . sub ( r "(?<=[a-zA-Z] {2} )(?=[가-힣])" , " " , t )
t = re . sub ( r "(?:^|(?<=\s))[^\s—]+—\s*(?=\S)" , "" , t ) # a word cut off and said again: "열려 있— 있어?" # "right로 턴", "body up해 줘": the English word apart
t = re . sub ( r "(?<=[가-힣]) (?:쥬|도고|도가)(?=\s*[!.~]*$)" , " 줘" , t ) # "손 흔들어 쥬", "컵 갖다 도고" (했쥬? stays)
t = re . sub ( r "[,\s]+자네\s*([!.~]*)$" , r "\1" , t ) # "팔 접어 주게, 자네": a call after
2026-10-22 22:09:53 +09:00
t = re . sub ( r "\s+([,.!?])" , r "\1" , re . sub ( r "^[\s,.!?~]+" , "" , t ))
2026-10-22 20:29:40 +09:00
t = LEAD . sub ( "" , t ) . strip ()
return re . sub ( r "\s{2,}" , " " , t ) or ( text or "" ) . strip ()
def guarded ( text ):
"""Why the bank does not read these words, or None."""
from assistant import brain
t = text . strip ()
2026-10-26 05:43:03 +09:00
if len ( t ) + len ( re . findall ( r "[가-힣]" , t )) < MIN_CHARS or len ( t . split ()) > MAX_WORDS : # a Hangul syllable counts twice
2026-10-22 20:29:40 +09:00
return "length"
for name , rx in (( "negation" , NEGATION ), ( "later" , LATER ), ( "ability" , ABILITY ), ( "question" , QUESTION ),
( "self" , SELF_TALK ), ( "several" , SEVERAL ), ( "hand" , HAND_WORDS ), ( "other sense" , OTHER_SENSE ),
2026-10-27 00:21:00 +09:00
( "repeat" , REPEAT ), ( "group" , GROUP_CALL ), ( "past" , PAST_EN ), ( "tag" , TAG ), ( "wonder" , WONDER ), ( "not to lumi" , NOT_TO_LUMI )):
2026-10-22 20:29:40 +09:00
if rx . search ( t ):
return name
if brain . LATER . search ( t ):
return "later"
2026-10-22 22:09:53 +09:00
if past_ko ( t ):
return "past"
2026-10-26 05:43:03 +09:00
if told_ko ( t ):
return "told"
2026-10-22 20:29:40 +09:00
name = NAME_CALL . match ( t )
if brain . to_someone_else ( t ) or brain . to_someone_else ( brain . CALLING . sub ( "" , t )) or name and name . group ( 1 ) . lower () not in NOT_A_NAME :
return "someone else"
if brain . is_closing ( t ) or brain . BACKCHANNEL . match ( t ):
return "closing"
return None
def nearest ( text , k = 5 ):
"""[(similarity, kind, wording)] of the k closest bank wordings (one embed call)."""
from assistant import knowledge
vecs , kinds = _load ()
q = knowledge . embed ([ text ])[ 0 ]
sims = vecs @ q
top = np . argsort ( - sims )[: k ]
texts = [ t for t , _ in examples ()] if k else []
return [( float ( sims [ i ]), str ( kinds [ i ]), texts [ i ]) for i in top ], sims , kinds
2026-10-22 22:09:53 +09:00
TAIL = re . compile ( r "(?:[\s,.!?~]+(?:please|thanks|thank you|for me|now|right now|real quick|real fast|if you can|lumi|okay|"
r "yo|my friend|you|thank|"
2026-10-26 05:43:03 +09:00
r "고마워|고마워요|감사합니다|감사해요|부탁해|부탁해요|부탁합니다|루미야|제발|허허|하하|헤헤|호호|ㅎㅎ+|ㅋㅋ+))+[\s,.!?~]*$" , re . I )
2026-10-22 20:29:40 +09:00
CANON_PLACE = "p3" # a named marker is embedded as this one: the bank's wordings know it, any map's names work
def core ( text , markers = ()):
"""The words the bank compares: calls and fillers before ("hey Lumi, um"), politeness after ("please",
"감사합니다") cut, and the one marker named written as CANON_PLACE ("go to the coffee corner" -> "go to p3")."""
from assistant import brain
t = TAIL . sub ( "" , brain . CALLING . sub ( "" , plain ( text ))) . strip ( " ,.!?~" ) or text
2026-10-26 15:30:06 +09:00
t = re . sub ( r "(?<![가-힣])좀\s+(?=[가-힣])" , "" , t ) # "뒤로 좀 돌아 줘": a softener, not a word to compare
2026-10-22 20:29:40 +09:00
named = [ m for m in markers if brain . named_place ( t , m , markers )]
2026-10-27 08:13:59 +09:00
if len ( named ) == 1 and not re . search ( rf "(?:\bhands?|\barms?|손|팔)\W+(?:\w+\W+)? { re . escape ( named [ 0 ]) } " , t , re . I ):
2026-10-22 20:29:40 +09:00
low = brain . _norm ( t , markers )
swapped = re . sub ( rf "(?<![a-z0-9])(?:the )? { re . escape ( named [ 0 ] . lower ()) } (?![a-z0-9])" , CANON_PLACE , low )
if swapped != low :
t = swapped
2026-10-22 22:09:53 +09:00
obj = re . compile ( rf "(?:(?: { brain . _COL } )\s*)?(?<![a-z])(?: { brain . _OBJ } )s?(?![a-z])" , re . I )
t = obj . sub ( lambda m : "컵" if re . search ( r "[가-힣]" , m . group ( 0 )) else "cup" , t ) # any object as "cup": the verb decides
t = re . sub ( r "컵를" , "컵을" , re . sub ( r "컵가(?![가-힣])" , "컵이" , re . sub ( r "컵는" , "컵은" , t )))
2026-10-22 20:29:40 +09:00
for rx , canon in AMOUNT :
t = rx . sub ( canon , t )
2026-10-22 22:09:53 +09:00
t = SAID . sub ( lambda m : " 90 degrees" if re . search ( r "(?:degrees?|도|°)$" , m . group ( 0 )) else " 1 meter" , t )
return re . sub ( r "\s+" , " " , t ) . strip ()
2026-10-22 20:29:40 +09:00
def kind_of ( text , markers = ()):
"""The bank's kind for these words (a QUICK kind or "arm_*"), or None when it is not sure or it is "no"."""
from assistant import knowledge
vecs , kinds = _load ()
try :
q = knowledge . embed ([ core ( text , markers )])[ 0 ]
except OSError as e : # no embedding server: the LLM decides
print ( f "intent bank: { e } " )
return None
2026-10-26 05:43:03 +09:00
best , top , margin , agree , second = _top ( vecs @ q , _codes ())
if best not in ACTS or top < SIM_MIN or not agree or margin < MARGIN_WORDS :
2026-10-22 20:29:40 +09:00
return None
2026-10-26 05:43:03 +09:00
return best if margin >= MARGIN else ( best , second ) # close to another motion: the words decide (read)
_kind_codes = None
def _codes ():
"""(names, int code per bank row): kinds compared as numbers, fetch read as pick (the words decide, _slot)."""
global _kind_codes
if _kind_codes is None :
kinds = np . where ( _load ()[ 1 ] == "fetch" , "pick" , _load ()[ 1 ])
names , codes = np . unique ( kinds , return_inverse = True )
_kind_codes = ([ str ( n ) for n in names ], codes )
return _kind_codes
def _top ( sims , named , k = AGREE_K ):
"""(kind of the closest row, its similarity, its lead over the closest row of any other kind, whether the k
closest rows are all of that kind, that other kind): one pass over the bank, no sort of it."""
names , codes = named
top = np . argpartition ( sims , - k )[ - k :]
top = top [ np . argsort ( - sims [ top ])]
best = codes [ top [ 0 ]]
others = np . where ( codes != best , sims , - 1.0 )
second = int ( np . argmax ( others ))
return ( names [ best ], float ( sims [ top [ 0 ]]), float ( sims [ top [ 0 ]] - others [ second ]), bool (( codes [ top ] == best ) . all ()),
names [ codes [ second ]])
2026-10-22 20:29:40 +09:00
# ---------- slots: what the words themselves say ----------
2026-10-22 22:09:53 +09:00
DIR = { "forward" : r "\b(?:forward|forwards|forword|ahead|straight)\b|\bto the front\b|앞으로|앞쪽|^\s*앞|forward로" ,
2026-10-22 20:29:40 +09:00
"back" : r "\b(?:back|backward|backwards|reverse|bak)\b|뒤로|후진|뒤쪽|물러" ,
2026-10-26 05:43:03 +09:00
"left" : r "\bleft|\blef\b|왼쪽|왼편|좌측|좌회전|(?:^|\s)좌로|좌향" , "right" : r "\bright\b|\brite\b|오른쪽|오른편|우측|우회전|(?:^|\s)우로|우향" }
2026-10-22 20:29:40 +09:00
CARRY = ( r "\b(?:bring(?! yourself)|fetch|deliver|carry)\b|\bget me\b|\b(?:to|for) me\b(?=.*\b(?:bring|get|fetch|hand|pass)\b)|"
2026-10-27 08:13:59 +09:00
r "\bget(?:ting)?\b.*\bfrom\b|\bgo get\b|브링|가져|갖다|가지고 ?와|가져다|챙겨 ?(?:와|다)|갖고 ?와" ) # words that bring a thing to someone
2026-10-26 15:30:06 +09:00
COME_SAID = ( r "\bcome\b|\bcum\b|\bkum\b|\bget over\b|\bapproach|\bcloser\b|\bhither\b|\bnear me\b|"
r "\bget closer\b|\broll over\b|\bdrive over\b|\bmy side\b|\bnext to me\b|\bto me\b|와|오세요|오십시오|오시|올래|"
r "(?<![가-힣])컴(?= ?히어|(?![가-힣]))" ) # Konglish "컴 히어 해 줘", "이리 컴"
2026-10-27 05:03:46 +09:00
PREV_SPOT = r "원래|아까|처음|출발|원위치|\bwhere you (?:were|started|came from|stood)\b|\b(?:original|previous|starting|old) " # where
HOME_SAID = r "\b(?:home|dock|charger|charging)\b|집|충전|도크|홈" # it stood before; brain.named_place reads a bare "go back"
# / "돌아가" as home (and the test sets read "go back to your spot" as home), so home counts only when said
2026-10-22 22:09:53 +09:00
LIFT_SAID_MAX_M = 0.3 # m; a longer lift amount said is no lift request ("grow to three meters tall")
LIFT_BODY = ( r "\b(?:yourself|your (?:body|torso|upper body)|body|make you|taller|shorter|smaller|small|tall|high|lift|rise|grow|"
2026-10-22 20:29:40 +09:00
r "shrink|come down|go up|go down|move up|move down|raise up|lower down|come up|sink down|elevate|squat|height|"
r "stretch up|drop down|going down|going up)\b|위로|아래로|낮아|높아|"
2026-10-26 05:43:03 +09:00
r "키|몸|리프트|상체|높게|낮게|높이|커져|작아져|올라|내려가|업\b|다운|늘려" )
2026-10-22 20:29:40 +09:00
MOVE_VERB = ( r "\b(?:move|go|step|back up|backup|scoot|slide|shift|drive|roll|reverse|inch|come|forward|backward|ahead|"
2026-11-02 03:44:30 +09:00
r "moov|moove|bak)|가|이동|움직|물러|비켜|후진|전진|나가|와|빠져|걸음|발짝|move|back|go" ) # a bare "왼쪽으로" may be a look
2026-10-22 20:29:40 +09:00
2026-10-26 05:43:03 +09:00
LOOK_DIR = { "left" : r "\bleft|왼|레프트|(?:^|\s)좌로|좌측" , "right" : r "\bright|\brite\b|오른|라이트|(?:^|\s)우로|우측" ,
2026-11-02 03:44:30 +09:00
"up" : r "\bup|\bupward|\bceiling|\bsky\b|\bhigher\b|천장|하늘|(?<!원)위|고개\S* ?드(?:세요|십시오|시오|시게)" , "down" : r "\bdown|\bfloor|\bground|\bfeet\b|\bbow\b|바닥|땅|아래|밑" }
2026-10-22 20:29:40 +09:00
LOOK_ME = ( r "\b(?:at|on|to|toward|towards) (?:me|us|나)\b|\bthis way\b|\bover here\b|\bmy way\b|\bhere\b|\bwatch me\b|"
2026-10-27 08:13:59 +09:00
r "\bme in the eye|\bmy face\b|\bme (?=봐|보)|\blook (?:여기|here|me)\b|(?:제|내) 얼굴|나한테|저한테|쳐다봐|(?:^|\s)(?:여기|이쪽|저|나|날|절)(?:를|을)?\s*(?:(?:좀|한 ?번|잠깐|잠시|다시)\s*)*(?:바라|쳐다)?(?:봐|보세요|look)" )
2026-10-22 20:29:40 +09:00
2026-10-22 22:09:53 +09:00
EN_NUM = { w : i for i , w in enumerate ( "zero one two three four five six seven eight nine ten eleven twelve thirteen "
"fourteen fifteen sixteen seventeen eighteen nineteen" . split ())}
EN_NUM . update ({ w : 10 * i for i , w in enumerate ( "twenty thirty forty fifty sixty seventy eighty ninety" . split (), 2 )})
KO_DIGIT = dict ( zip ( "일이삼사오육칠팔구" , range ( 1 , 10 )))
UNIT = [( r "m|meters?|metres?|미터" , 1.0 ), ( r "cm|centimet(?:er|re)s?|센티(?:미터)?|센치" , 0.01 ),
( r "mm|millimet(?:er|re)s?|밀리(?:미터)?" , 0.001 )] # feet / inches: asked (driving.read refuses them)
_EN_WORDS = "|" . join ( sorted ( EN_NUM , key = len , reverse = True )) + "|hundred|and|a|point"
SAID = re . compile ( rf "((?:\d+(?:\.\d+)?|(?:(?: { _EN_WORDS } )[\s-]*)+|[일이삼사오육칠팔구십백]+))\s*"
rf "(?: { '|' . join ( u for u , _ in UNIT ) } |degrees?|도|°)(?=만|[^a-z가-힣]|$)" , re . I )
def _number ( words ):
"""'eight' / 'a hundred and eighty' / '삼십' / '12.5' -> the number, or None."""
w = words . strip () . lower ()
if re . fullmatch ( r "\d+(?:\.\d+)?" , w ):
return float ( w )
if re . fullmatch ( r "[일이삼사오육칠팔구십백]+" , w ):
total , digit = 0 , 0
for c in w :
if c in KO_DIGIT :
digit = KO_DIGIT [ c ]
else :
total += ( digit or 1 ) * ( 10 if c == "십" else 100 )
digit = 0
return float ( total + digit )
if re . search ( r "\bpoint\b" , w ): # "point five", "one point five"
whole , _ , frac = w . partition ( "point" )
a = _number ( whole ) if whole . strip () else 0.0
b = [ _number ( x ) for x in frac . split ()]
if a is None or not b or None in b or any ( x > 9 for x in b ):
return None
return a + float ( "0." + "" . join ( f " { x : g } " for x in b ))
total , cur = 0 , 0
for x in re . split ( r "[\s-]+" , w ):
if x in EN_NUM :
cur += EN_NUM [ x ]
elif x == "hundred" :
cur = ( cur or 1 ) * 100
elif x not in ( "and" , "a" , "" ):
return None
total += cur
return float ( total ) if total or re . search ( r "\bzero\b" , w ) else None
def said_amount ( text ):
"""(metres, degrees) said with a unit, numbers in digits or words ("a quarter of a meter", "eight centimetres",
"오십 센티", "a hundred and eighty degrees", "삼십 도"); each None when not said."""
2026-10-23 12:58:04 +09:00
from assistant import wording
t = wording . numbers ( re . sub ( r "\b(?:a )?quarter of an? (?:meter|metre)\b" , "0.25 m" , " " + ( text or "" ) . lower () + " " )) # "사 십오 도", "마흔다섯 도", "일 점 오 미터" as digits
2026-10-22 22:09:53 +09:00
metres = degrees = None
if re . search ( r "\bquarter of an? (?:meter|metre)\b" , t ):
metres = 0.25
elif re . search ( r "\bhalf an? (?:meter|metre)\b|(?:^|\s)반 ?미터" , t ):
metres = 0.5
2026-10-23 02:08:43 +09:00
parts = [] # (metres, unit factor) in the order said
2026-10-22 22:09:53 +09:00
for m in SAID . finditer ( t ):
n = _number ( re . sub ( r "^(?:a|and)\s+" , "" , m . group ( 1 ) . strip ()) or m . group ( 1 ))
unit = t [ m . end ( 1 ): m . end ()] . strip ()
if n is None :
continue
if re . fullmatch ( r "degrees?|도|°" , unit ):
degrees = n
else :
2026-10-23 02:08:43 +09:00
f = next ( f for u , f in UNIT if re . fullmatch ( u , unit ))
parts . append (( n * f , f ))
if parts : # "1미터 50센티": 1.5; "30 cm, sorry, 20 cm": not read (nan)
ok = all ( a [ 1 ] > b [ 1 ] for a , b in zip ( parts , parts [ 1 :]))
metres = sum ( x for x , _ in parts ) if ok else float ( "nan" )
2026-10-22 22:09:53 +09:00
if metres is not None and re . search ( r "\band a half\b|미터 ?반" , t ):
metres += 0.5
return metres , degrees
FOLLOW_WORD = ( r "\bfollow|\bfallow|\bfollo\b|\bwith (?:me|us)\b|\balong\b|\bbehind me\b|\bafter me\b|\bbeside me\b|\bmy side\b|"
r "\bwhere i go\b|\bwhere i walk\b|\bshadow\b|\bescort|\baccompany|\btrack me|\bkeep (?:up|close)|\bstick with|"
r "\bstay (?:with|behind|right behind)|\bnext to me\b|\bcoming with\b|\bgo with\b|따라|딸아|쫓아|같이|함께|팔로우|"
r "\bwalk together\b" )
LETTER = { "a" : "a" , "ay" : "a" , "에이" : "a" , "b" : "b" , "be" : "b" , "bee" : "b" , "비" : "b" , "c" : "c" , "see" : "c" , "sea" : "c" ,
"씨" : "c" , "d" : "d" , "dee" : "d" , "디" : "d" , "e" : "e" , "이" : "e" , "f" : "f" , "에프" : "f" }
def _other_suffix ( text , marker ):
"""The words name the marker's base with a different letter or number after it ("exit a" for Exit_B, "booth 13"
for Booth_12, "부스 13" for 부스12): a place that is not on the map, never the near marker."""
m = re . fullmatch ( r "(.+?)[\s_-]*([a-z]|\d+)" , marker . lower ())
if not m :
return False
base , suffix = m . groups ()
for x in re . finditer ( rf " { re . escape ( base ) } [\s_-]*(?:number\s+|no\.?\s*|넘버\s*)?([a-z0-9가-힣]+)" , text . lower ()):
tok = x . group ( 1 )
if re . match ( r "\d" , tok ):
said = re . match ( r "\d+" , tok ) . group ( 0 )
elif tok in LETTER and len ( suffix ) == 1 and not suffix . isdigit ():
said = LETTER [ tok ]
elif _number ( tok ) is not None and suffix . isdigit ():
said = f " { _number ( tok ) : g } "
else :
continue
if said != suffix :
return True
return False
def _to_person ( text ):
"""Someone other than the speaker named as who gets it or where they are: "안나한테 갖다줘", "사라는 부스 투에 있어",
"John is at p4, bring him a cup" (a mission: the rules / LLM)."""
from assistant import brain
for m in re . finditer ( r "([가-힣]+)(?:한테|에게|께)(?![가-힣])" , text ):
if m . group ( 1 ) not in ( "나" , "저" , "내" , "제" , "우리" , "저희" ):
return True
m = re . search ( r "([가-힣]+)(?:은|는)\s.*에\s*있" , text )
if m and m . group ( 1 ) not in brain . OBJECTS and not any ( m . group ( 1 ) . startswith ( o ) for o in brain . OBJECTS ):
return True
2026-10-23 02:08:43 +09:00
if re . search ( r "님(?![가-힣])|님(?:은|이|께|한테)|계셔|계시|계세요|드려|드리" , text ):
return True # "김 부장님 라운지에 계셔, 사과 좀 갖다 드려": to someone honoured
2026-10-22 22:09:53 +09:00
return bool ( re . search ( r "\b[A-Z][a-z]+(?: is|'s) (?:at|in|by|over)\b" , text ))
2026-10-22 20:29:40 +09:00
def _dirs ( t ):
2026-11-02 03:44:30 +09:00
t = t . replace ( "좌회전" , "왼쪽 회전" ) . replace ( "우회전" , "오른쪽 회전" ) # "좌회전 해 봐": a left turn
2026-10-22 20:29:40 +09:00
return [ d for d , rx in DIR . items () if re . search ( rx , t )]
def _slot ( kind , text , markers , holding ):
"""The (action, target) lumi.quick_command takes, or None when the words don't say it plainly."""
from assistant import brain , driving
t = brain . _norm ( text , markers )
2026-10-27 08:13:59 +09:00
if kind == "go_to" and re . search ( r "팔|손|\barm\b|\bhand\b" , t ) and re . search ( r "포지션|자세|\bposition\b|\bpose\b" , t ):
return None # "홈 포지션으로 팔": the arm's pose, not the marker home
2026-10-22 20:29:40 +09:00
if kind == "go_to" :
2026-10-26 05:43:03 +09:00
if brain . _mentions ( text , markers ) . get ( "object" ) or re . search ( r "\bfrom\b|에서|에 있는|\bface\b|\blook|\bpoint|"
2026-11-02 03:44:30 +09:00
r "(?<![가와해여] )(?<![가와해여])봐|" # "가 봐", "움직여 봐": try going
2026-10-22 22:09:53 +09:00
r "\bwith (?:me|us)\b|같이|함께|따라|"
2026-10-22 20:29:40 +09:00
+ CARRY + r "|\btake (?:it|this|that|them)\b" , t ):
return None # "get the bottle from booth two": a fetch, the rules' / LLM's
named = [ m for m in markers if brain . named_place ( text , m , markers )]
2026-10-23 02:08:43 +09:00
said = re . sub ( r "\bp\s+(?=\d)" , "p" , text . lower ())
if len ( named ) != 1 or _other_suffix ( text , named [ 0 ]) or re . search ( r "\bp\d+" , said ) and \
not re . search ( rf "(?<![a-z0-9]) { re . escape ( named [ 0 ] . lower ()) } (?![0-9])" , said ):
2026-10-22 22:09:53 +09:00
return None # "exit a" with only Exit_B, "booth 13" with Booth_12: asked
return ( "go_to" , named [ 0 ])
2026-10-27 00:21:00 +09:00
if kind == "come" and ( re . search ( CARRY + r "|따라|\bover there\b|\bpoint(?:ing|ed)?\b|\bthat way\b|저기|저쪽|거기|가리키" , t ) or
not re . search ( COME_SAID , t )):
2026-10-22 20:29:40 +09:00
return None # "나한테 가져와", "이리 줘": not a trip to the person
if kind == "come" and re . search ( r "\bwith (?:me|us)\b|함께|같이" , t ):
return ( "follow" , "" ) # "just come with me": walk along
2026-10-26 05:43:03 +09:00
if kind == "come" and ( driving . amount ( t )[ 1 ] or driving . amount ( t )[ 0 ] == "?" ): # "come 20 cm closer": a short
n , exact = driving . amount ( t ) # drive (A2)
return ( "move" , f "forward { n : g } " ) if exact and driving . MOVE_MIN_M <= n <= brain . MOVE_MAX_M else None
2026-10-22 22:09:53 +09:00
if kind == "come_back" and ( re . search ( r "\bpose\b|\barm\b|\bhead\b|팔|고개|\bpick|\bput\b|\bit\b|그거|놓|놔" , t ) or
2026-10-27 00:21:00 +09:00
any ( brain . named_place ( text , m , markers ) for m in markers
2026-10-27 05:03:46 +09:00
if m != "home" or not re . search ( PREV_SPOT , t ) or re . search ( HOME_SAID , t ))):
2026-10-22 20:29:40 +09:00
return None # "go back to your dock", "go back to your look pose": not here
2026-10-27 00:21:00 +09:00
if kind == "come_back" and re . search ( r "\b(?:back|over|right|come|get) here\b|\bto me\b|이리|여기|나한테|저한테" , t ):
2026-10-22 20:29:40 +09:00
return ( "come" , "" ) # "come back here": to the person, not to the old spot
2026-10-22 22:09:53 +09:00
if kind == "follow" and ( re . search ( r "\bfollow (?:you|him|her|them|it|that)\b" , t ) or not re . search ( FOLLOW_WORD , t )):
return None # "follow you": not "follow me"; "가자 이제": let's go, where?
2026-10-23 02:08:43 +09:00
if kind == "wave" and re . search ( r "\bto you\b|너한테|너에게" , t ):
return None # "wave to you": Lumi's own words back, or about Lumi
2026-10-22 20:29:40 +09:00
if kind == "wave" and ( holding () if callable ( holding ) else holding ):
return None # a wave with a cup in the hand: the LLM says why not
if kind in ( "come" , "follow" , "come_back" , "wave" ):
return ( kind , "" )
if kind == "move" :
if re . search ( r "\bturn|\brotat|\bspin|\bpivot|\bswivel|\bface\b|돌|회전|도세요|도십시오|(?:^|\s)돌?아(?:\s|$)" , t ) or \
not re . search ( MOVE_VERB , t ):
return None # "turn left a bit", "왼쪽으로 도세요": a turn, not a drive
if re . search ( r "\b(?:some|more than|less than|few|several|couple)\b|\b(?:to|too) (?:meters?|metres?|m)\b" , t ):
return None # "move back some", "forward to meters": how far? asked
2026-10-27 05:03:46 +09:00
d = _dirs ( re . sub ( r "\bright\s*," , " " , t ))
2026-10-22 22:09:53 +09:00
n = said_amount ( text )[ 0 ]
2026-10-23 02:08:43 +09:00
n = driving . amount ( re . sub ( r "(?:^|\s)좀(?=\s)" , " " , t ))[ 0 ] if n is None else n # "뒤로 좀 가": 좀 is "please"
2026-10-22 22:09:53 +09:00
if re . search ( r "\b(?:third|fourth)\b" , t ) or n is None and re . search ( r "\b(?:half|meters?|metres?|cm|centimet\w*|inch\w*|feet|foot|yards?)\b|미터|"
2026-10-22 20:29:40 +09:00
r "센티|\d" , t ):
return None # an amount the words say but driving.amount does not read
n = driving . DEFAULT_M if n is None else n
if len ( d ) != 1 or n == "?" or not driving . MOVE_MIN_M <= n <= brain . MOVE_MAX_M :
return None
return ( "move" , f " { d [ 0 ] } { n : g } " )
if kind == "turn" :
2026-11-02 03:44:30 +09:00
if re . search ( r "\blook|(?<![해려] )(?<![해려])(?<!돌아 )봐|\bhead\b|고개|\beyes\b|\btorso\b|\bwaist\b|\btwist|\bupper body\b|\bhips?\b|허리|상체|몸통|윗몸|"
2026-10-26 05:43:03 +09:00
r "\btrunk\b|\bwithout driving\b" , t ):
return None # "look the other way", "twist your torso": not the base
2026-10-27 08:13:59 +09:00
if re . search ( r "반 ?바퀴" , t ) and not re . search ( r "\d|한 ?바퀴" , t ):
return ( "turn" , "around 180" ) # "반 바퀴 돌아": half a turn, either way
if re . search ( r "\bquarter\b|\bhalf\b" , t ) and not re . search ( r "\d" , t ):
2026-10-26 05:43:03 +09:00
return None # "spin left a bit, like a quarter": not a full turn (A2)
2026-10-27 05:03:46 +09:00
if re . search ( r "\bspin\b|\ball (?:the|teh|da) way (?:a)?round\b|\b360\b|한 ?바퀴" , t ) and \
2026-10-22 22:09:53 +09:00
not re . search ( r "\bface\b|\bother (?:side|way)\b|\d+\s*(?:degrees?|도)" , t . replace ( "360" , "" )) and \
said_amount ( text )[ 1 ] in ( None , 360 ):
2026-10-22 20:29:40 +09:00
return ( "turn" , ( "right" if re . search ( r "\bright\b|오른쪽" , t ) else "left" ) + " 360" )
2026-10-27 08:13:59 +09:00
if re . search ( r "\bgo the other way\b" , t ):
return None # "go the other way around": a way round (detour), not a turn
2026-11-02 03:44:30 +09:00
if re . search ( r "\baround\b|\bu-?turn\b|\b(?:rotate|turn|spin) 180\b(?!\s*(?:degrees?|도))|유턴|뒤로 ?(?:(?:좀|한 ?번|얼른|빨리|확)\s*)?(?:돌|회전)|뒤돌|\bother way\b|\babout face\b|한 바퀴" , t ):
2026-10-22 20:29:40 +09:00
return None if re . search ( r "\bleft|\bright\b|왼|오른" , t ) else ( "turn" , "around 180" )
d = [ x for x in _dirs ( t ) if x in ( "left" , "right" )]
2026-10-22 22:09:53 +09:00
if not d and said_amount ( text )[ 1 ] == 180 :
return ( "turn" , "around 180" ) # "rotate a hundred and eighty degrees"
2026-10-22 20:29:40 +09:00
if len ( d ) != 1 :
return None
2026-10-22 22:09:53 +09:00
deg = re . search ( r "(\d+)\s*(?:degrees?|도|°)" , t )
words_deg = said_amount ( text )[ 1 ]
if not deg and words_deg :
return ( "turn" , f " { d [ 0 ] } { words_deg : g } " )
2026-11-02 03:44:30 +09:00
if not deg and re . search ( r "degree|[가-힣]\s*도(?:만)?(?:\s|[.,!?~])" , t + " " ) and not re . search ( r "(?:^|\s)(?:한|좀)\s" , t ):
2026-10-22 20:29:40 +09:00
return None # "삼십 도": a number the words don't give as digits
2026-10-23 02:08:43 +09:00
if not deg and re . search ( r "\d" , t ):
return None # "turn left 30.": a number with no unit, asked
2026-10-22 20:29:40 +09:00
return ( "turn" , f " { d [ 0 ] } { deg . group ( 1 ) if deg else 90 } " )
if kind == "look" :
2026-10-26 05:43:03 +09:00
if re . search ( r "\byour back\b|\bback to me\b|등 ?돌|놔|놓|\bput\b|\bdrop\b|\bplace\b" , t ):
2026-10-22 20:29:40 +09:00
return None # "turn your back to me": the base turns away
target = "center" if re . search ( r "원위치|원래대로|\breset\b" , t ) else brain . head_target ( t )
if target is None :
dirs = [ d for d , rx in LOOK_DIR . items () if re . search ( rx , t )]
if re . search ( r "\baway\b|\bavert|딴 ?데|다른 ?데|시선" , t ):
target = "away"
2026-10-27 08:13:59 +09:00
elif re . search ( r "\b(?:front|forward|center|centre|middle|reset|straighten)\b|프론트|원위치|원래대로|가운데|정면|앞에" , t ):
2026-10-22 20:29:40 +09:00
target = "center"
elif len ( dirs ) == 1 :
target = dirs [ 0 ] + ( " small" if brain . SMALL . search ( t ) else "" )
elif not dirs and re . search ( LOOK_ME , t ):
target = "me"
return ( "look" , target ) if target else None
if kind == "lift" :
2026-10-27 05:03:46 +09:00
if not re . search ( LIFT_BODY , t ) or re . search ( r "\bto me\b|나한테|저한테" , t ): # "come up to me": come
2026-10-22 20:29:40 +09:00
return None # "go upstairs": no word about Lumi's own height
2026-10-27 08:13:59 +09:00
down = re . search ( r "\b(?:down|lower|shorter|smaller|small|sink|shrink|squat)\b|낮|줄여|작게|작아|내려|내리|아래|다운" , t )
up = re . search ( r "\b(?:up|higher|taller|tall|high|bigger|raise|rise|grow|elevate|stretch)\b|높(?:여|게|아|혀)|높이(?=게|세|십|시|어|자)|키워|올려|올리|늘려|"
2026-10-22 22:09:53 +09:00
r "커|올라|업" , t )
2026-10-22 20:29:40 +09:00
if bool ( down ) == bool ( up ):
return None # no direction, or both: asked
2026-10-22 22:09:53 +09:00
metres = said_amount ( text )[ 0 ]
if metres is not None :
2026-10-23 02:08:43 +09:00
if not metres <= LIFT_SAID_MAX_M : # also nan: two amounts said
2026-10-22 22:09:53 +09:00
return None # "grow to three meters tall": not a lift amount, the LLM answers
return ( "lift" , f " { 'down' if down else 'up' } { metres * 1000 : g } " )
2026-10-22 20:29:40 +09:00
target = brain . lift_target ( t ) . split ( " " , 1 )
return ( "lift" , " " . join ([ "down" if down else "up" ] + target [ 1 :]))
if kind . startswith ( "arm_" ):
pose = kind [ 4 :]
2026-10-22 22:09:53 +09:00
if pose == "reach" and re . search ( r "줘|주세요|주십시오|\bgive\b|\bhand\b|\bover\b|\bpass\b" , t ) and \
( holding () if callable ( holding ) else holding ):
return None # "손 줘" with a cup held: hand it over, the hand reader's
2026-10-26 05:43:03 +09:00
if pose in ( "open" , "close" ) and not re . search ( r "손|hand|grip|그리퍼|집게|finger|claw|주먹|fist|핸드|\bit\b" , t ):
return None # "문 열어 줘": a door, not the hand (A1)
if pose in ( "open" , "close" ) and re . search ( r "(?:^|\s)(?:창)?문|창문|뚜껑|병|\bdoor|\bwindow|\blid\b|\bbottle\b|"
r "\bbox\b|상자|박스|\beyes?\b|\bmouth\b|(?:^|\s)(?:눈|입)(?:을|\s|$)" , t ):
return None # "문 열어 줘", "close your eyes": not the gripper
2026-10-22 20:29:40 +09:00
if pose in ( "open" , "close" ):
held = holding () if callable ( holding ) else holding
if held :
return None # an open hand drops what it holds: brain.hand_request's
return ( "arm" , pose )
if kind in ( "pick" , "fetch" ):
got = brain . _mentions ( text , markers )
2026-10-23 02:08:43 +09:00
if not got . get ( "object" ) or re . search ( r "\b(?:a|one|two) (?:cup|glass|bottle) of\b|한 ?잔|두 ?잔|아메리카노|라떼|"
r "\b(?:americano|latte|coffee|tea|juice)\b|주스|음료|먹|마셔|마시|"
r "\b(?:throw|toss|kick|break|eat|drink|wash|clean|buy|sell|"
2026-10-22 22:09:53 +09:00
r "put|place|set|drop|leave|this|hold (?:this|my|it|on)|my)\b|놔|놓|내려" , t ) or \
not re . search ( CARRY , t ) and re . search ( r "\bfrom\b|\bgo get\b|에서" , t ) or \
2026-10-27 08:13:59 +09:00
( holding () if callable ( holding ) else holding ) or re . search ( r "\breturn\b|돌려|반납|반환|바닥|\bfloor\b|\bground\b" , t ):
2026-10-27 00:21:00 +09:00
return None # "put the banana on the table", "hold this apple": the hand's;
# "return the cup", "컵 돌려줘": give back, not a pick
2026-10-22 20:29:40 +09:00
if re . search ( r "\b(?:give|hand|pass)\b|건네" , t ) or \
2026-10-27 08:13:59 +09:00
re . search ( r "줘|주세요|주실|줄래" , t ) and not re . search ( r "집|잡|들어|쥐|픽|그랩|테이크|pick|grab|take|" + CARRY , t ):
2026-10-22 20:29:40 +09:00
return None # "컵 좀 줘": bring it to me, a mission (pick, then give)
2026-10-22 22:09:53 +09:00
if re . search ( CARRY , t ): # "bring me the cup", "컵 가져와": a fetch
2026-10-27 08:13:59 +09:00
if re . search ( r "\b(?:him|her|them)\b|가져가|갖고 ?가|가지고 ?가|\d+ ?층|\bfloor\b|upstairs|downstairs" , t ) or \
_to_person ( text ) or \
2026-10-22 22:09:53 +09:00
"source" in got and got [ "source" ] is None or "dest" in got and got [ "dest" ] is None or \
re . search ( r "\bgo\b|가서|\bwhere\b" , t ):
return None # "from the cafeteria" (not on the map), "go home, bring it": asked
return ( "fetch" , text )
if got . get ( "source" ) or got . get ( "dest" ) or any ( brain . named_place ( text , m , markers ) for m in markers ) or \
2026-10-27 00:21:00 +09:00
re . search ( r "\b(?:to|at|ask|tell|say|pass\w*|want|need|is on|are on)\b|(?<!테이블에 )(?<!위에 )(?<!저기 )"
r "(?<!거기 )(?<!^)있는|옮겨|에게|한테|께" , t ) or got . get ( "prefer" ):
return None # a side or size said ("왼쪽 컵", "the smaller one"): the
# quick pick takes none, the rules / LLM read it;
# "take the cup to p4", "I want the mug, the one at the entrance"
2026-10-22 20:29:40 +09:00
return ( "pick" , f " { got [ 'colour' ] } { got [ 'object' ] } " if got . get ( "colour" ) else got [ "object" ])
if kind == "put" :
if not ( holding () if callable ( holding ) else holding ):
return None # nothing held: lumi says the hand is empty (rules / LLM)
if brain . place_on ( t ) or re . search ( r "\b(?:on|onto|in|into) (?:the|a|my)\b|위에|에다" , t ):
return None # "put it on the table": a place, the hand reader's
return ( "put" , "back" if re . search ( r "\bback\b|제자리|원래|다시|도로" , t ) else "down" )
return None
def read ( text , markers = (), holding = False ):
"""(action, target) as brain.intent gives it, when the bank is sure; else None (the LLM reads it)."""
2026-10-26 07:36:03 +09:00
from assistant import brain
2026-10-22 22:09:53 +09:00
said , text = text , plain ( text )
2026-10-27 08:13:59 +09:00
if guarded ( text ) or brain . not_an_order ( said , asked = False ) or brain . held_back ( said ) or \
re . search ( r "(?<!줄)(?<!주실)(?<=[가-힣]) 수 ?있으(?:세요|신가요|십니까|신지요)\s*[?? ]?\s*$" , said or "" ):
# "팔 접을 수 있으세요?" (ko_plain makes it "접어 줘?"): asked
2026-10-26 07:36:03 +09:00
return None # lumi.route holds these before the bank too: a later time, a
# quote, "it's going to ...", "for the demo, let's have it ..."
2026-10-27 20:22:32 +09:00
if brain . ARM_POSE_OTHER . search (( said or "" ) . lower ()) and not brain . ARM_POSE . search (( said or "" ) . lower ()):
return None # "arm in tuck position": a pose not taught, the model asks
2026-10-22 20:29:40 +09:00
kind = kind_of ( text , markers )
2026-10-26 05:43:03 +09:00
if isinstance ( kind , tuple ): # two motions close: only when the words fit one of them
kind , other = kind
2026-10-26 15:30:06 +09:00
if other == "put" and not holding and not PUT_VERB . search ( text ):
pass # "원래 자리로 가 줘": no put verb, nothing held: the trip back
elif other not in ACTS or _slot ( other , text , markers , holding ) is not None :
2026-10-26 05:43:03 +09:00
return None
2026-10-26 15:30:06 +09:00
if kind and _verb_conflict ( kind , text , holding ):
return None
2026-10-22 22:09:53 +09:00
got = _slot ( kind , text , markers , holding ) if kind else None
return ( "fetch" , said ) if got and got [ 0 ] == "fetch" else got
2026-10-22 20:29:40 +09:00
2026-10-27 00:21:00 +09:00
PICK_VERB = re . compile ( r "집|잡|들어|들고|가져|갖다|갖고|챙겨|픽업|\b(?:pick|grab|take|get|fetch|bring|hold)\b" , re . I )
2026-10-26 15:30:06 +09:00
LOOK_VERB = re . compile ( r "봐|보세|쳐다|바라|\b(?:look|see|watch)\b" , re . I )
PUT_VERB = re . compile ( r "놓|놔|둬|두|내려|\b(?:put|place|drop|set|leave)\b" , re . I )
BACK_VERB = re . compile ( r "돌아|복귀|컴백|리턴|가|와|\b(?:return|go|come|head|back)\b" , re . I )
POINTED = re . compile ( r "저기 ?저|저 ?자리|(?<!아까 )그 ?자리로|\bthat (?:spot|place|position)\b|\bover there\b" , re . I )
def _verb_conflict ( kind , text , holding ):
"""The bank's kind against the verb said: "저 컵 봐" is no pick, "바닥에 있는 거 집어 줘" no look, "저기 저 자리로 가"
a pointed place, not back; holding a thing, the hand words are the hand reader's ("손 펴", "제자리 좀")."""
if kind in ( "pick" , "fetch" ) and LOOK_VERB . search ( text ) and not PICK_VERB . search ( text ):
return True
if kind == "look" and PICK_VERB . search ( text ) and not LOOK_VERB . search ( text ) and not HEAD_WORD . search ( text ):
return True
2026-10-27 05:03:46 +09:00
if kind == "come_back" and ( POINTED . search ( text ) or not BACK_VERB . search ( text ) or not RETURN_WORD . search ( text ) or
re . search ( r "제자리에서|바퀴|자세|포즈" , text )):
return True # "다시 가 주세요" (go again), "제자리에서 한 바퀴", "원래 자세로"
if kind == "come_back" and not TRAVEL . search ( re . sub ( r "\bback\s+해" , "" , text )):
2026-10-26 15:30:06 +09:00
return True
if kind in ( "turn" , "move" ) and ( HEAD_WORD . search ( text ) or re . search ( r "돌아 ?보|허리|\bwaa*i*st\b|\btorso\b" , text , re . I )):
return True # "머리 왼쪽으로 15도 돌려": the head
if kind == "look" and BODY_WORD . search ( text ) and not HEAD_WORD . search ( text ):
return True # "본체를 오른쪽으로 돌려", "torso 정면": the body
if kind == "look" and GO_VERB . search ( text ) and not HEAD_WORD . search ( text ) and not LOOK_VERB . search ( text ):
return True # "라이트로 살짝 가 줘": a drive
if kind == "arm_reach" and ( HAND_SHAPE . search ( text ) or COME_VERB . search ( text ) and not ARM_WORD . search ( text )):
return True # "손 펴 주시겠어요" (open), "할머니한테 와 줘" (come)
2026-10-27 00:21:00 +09:00
if kind == "look" and re . search ( r "\bcome\b(?! on\b)|오세요|오십시오|(?<![가-힣])와(?: ?줘| ?주|\s|$)" , text , re . I ) and \
not HEAD_WORD . search ( text ):
return True # "I'd love to see you come this way": come, not a look
if kind in ( "arm_reach" , "arm_fold" ) and BODY_WORD . search ( text ) and not ARM_WORD . search ( text ):
return True # "you must straighten your waist": the waist, not the arm
if kind == "arm_open" and not OPEN_WORD . search ( text ) or kind == "arm_close" and not CLOSE_WORD . search ( text ):
return True # "grip immediately": no open word, no gripper opening
2026-10-27 05:03:46 +09:00
if kind in ( "pick" , "fetch" ) and not TAKE_WORD . search ( text ):
return True # "컵을 바 주라" (봐 heard as 바): no take verb
2026-10-27 08:13:59 +09:00
if kind == "go_to" and re . search ( r "놔|놓|둬|\b(?:put|place|drop off|set down)\b" , text , re . I ):
return True # "p3에 내려놔": a place for what it holds, not a drive
if kind == "arm_reach" and re . search ( r "\bhand (?:me|it|over|that|this|them)\b|손 ?여" , text , re . I ):
return True # "hand me that" (give), "손 여실래요" (open)
if kind == "arm_fold" and re . search ( r "뻗|내밀|\b(?:reach|extend|stretch)|\b(?:hold|stick|put|hand) (?:\w+ ){0,2}out\b" , text , re . I ):
return True # "팔 뻗어라 카이": the arm out, not folded
2026-10-27 05:03:46 +09:00
if kind == "arm_reach" and not ARM_WORD . search ( text ) and not REACH_WORD . search ( text ):
return True # "그거 주시게", "건네시겠어요": a hand-over, not the arm out
2026-10-27 08:13:59 +09:00
if kind == "wave" and re . search ( r "(?:막|마구|미친 ?듯이?|세게) ?흔들|꾸벅|숙여|숙이|(?<![가-힣])절|\bbow" , text , re . I ):
return True # "팔 막 흔들어" (flail), "꾸벅 인사" (a bow): no wave
if kind in ( "arm_open" , "arm_close" ) and re . search ( r "(?:한|두|세|네|다섯|\d) ?개|\b(?:one|two|three|four|five) fingers?\b" , text , re . I ):
return True # "손가락 세 개 펴": fingers counted, not the gripper
2026-10-26 15:30:06 +09:00
if kind == "wave" and not WAVE_VERB . search ( text ):
return True # "손 벌려 줘", "손 쥐어 빨리", "손 좀 주이소"
return holding and kind in ( "arm_open" , "arm_fold" , "arm_reach" , "arm_close" )
HEAD_WORD = re . compile ( r "머리|고개|얼굴|시선|\b(?:head|eyes|(?<!about )face|gaze)\b" , re . I )
BODY_WORD = re . compile ( r "본체|몸|허리|상체|몸통|\b(?:body|torso|waist|upper body|yourself)\b" , re . I )
GO_VERB = re . compile ( r "(?<![가-힣])가(?: ?줘| ?주|$|\s)|이동|움직|무브|\b(?:move|go|drive|roll|scoot)\b" , re . I )
HAND_SHAPE = re . compile ( r "펴|펼|쥐|주먹|넣|접|내려|오므|놔|놓|\b(?:open|close|fist|tuck|fold|lower)\b" , re . I )
COME_VERB = re . compile ( r "(?<![가-힣])와(?![가-힣])|와 ?(?:줘|주)|오세요|오십시오|\bcome\b" , re . I )
ARM_WORD = re . compile ( r "손|팔|\b(?:hand|arm)\b" , re . I )
2026-10-27 00:21:00 +09:00
WAVE_VERB = re . compile ( r "흔들|흔드|악수|인사|빠이|바이|웨이브|하이|\b(?:wave|waving|hello|hi|hey|shake|greet|bye)\b|"
2026-10-27 08:13:59 +09:00
r "handshake|shaking|goodbye|핸드셰이크|쉐이크|셰이크|웨이빙" , re . I )
2026-10-27 05:03:46 +09:00
TAKE_WORD = re . compile ( r "집|잡|들어|들고|가져|갖|가지고|가저|가 ?온나|챙|쥐|픽|그랩|브링|겟|캐치|홀드|지버|테이크|옮겨|"
r "\b(?:pick|grab|take|took|get|fetch|bring|brin|brung|hold|snatch|lift|nab|seize|collect|snag|"
r "scoop|pluck|grasp|grip|carry|deliver|hand|pass|gimme|obtain|retrieve|go for|pic|grap|pik|peek up|reach for|"
r "fech|need the|like the|taking|move the)|자바" , re . I )
RETURN_WORD = re . compile ( r "(?:다시|도로) ?와|도라|돌아|복귀|원래|제자리|원위치|아까|처음|출발|컴백|리턴|\b(?:back|return|comeback|bak)\b" , re . I )
TRAVEL = re . compile ( r "돌아|도라|복귀|원위치|가|와|오|컴백|리턴|\bback to\b|\bcoming\b|\b(?:come|go|return|head|drive|move|get|cum|comeback|roll)\b" , re . I )
REACH_WORD = re . compile ( r "내밀|뻗|리치|핸드|(?<![가-힣])암(?![가-힣])|아웃|\bpaw\b|\b(?:reach|extend|stretch|out)\b" , re . I )
2026-10-27 00:21:00 +09:00
OPEN_WORD = re . compile ( r "펴|펼|벌려|벌리|열|오픈|풀어|놔|놓|\b(?:open|release|let go|loosen|unclench|spread|relax|widen|"
2026-10-27 08:13:59 +09:00
r "opn|apart|unclamp)" , re . I )
2026-10-27 00:21:00 +09:00
CLOSE_WORD = re . compile ( r "쥐|닫|오므|모아|모으|주먹|클로즈|꽉|잡|\b(?:close|clos|shut|grip|clench|fist|squeeze|tighten|grasp|curl|"
r "pinch|together)" , re . I )
2026-10-26 15:30:06 +09:00
2026-10-22 20:29:40 +09:00
if __name__ == "__main__" :
if sys . argv [ 1 :] == [ "build" ]:
n = len ( _load ()[ 1 ])
print ( f " { n } wordings -> { CACHE } " )
else :
from tests.conversation_check import markers as _markers
for said in sys . argv [ 1 :]:
2026-10-26 05:43:03 +09:00
print ( said , "| guard:" , guarded ( said ), "| kind:" , kind_of ( plain ( said )), "| read:" , read ( said , _markers ()))
2026-10-22 20:29:40 +09:00
for s , k , w in nearest ( said )[ 0 ]:
print ( f " { s : .3f } { k : 10 } { w } " )