Improve command, cup task and talk understanding in English and Korean

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-26 15:30:06 +09:00
co-authored by Claude Opus 5.5
parent e3a1c123c9
commit e3fcfd30ab
23 changed files with 1380 additions and 167 deletions
+4
View File
@@ -113,6 +113,10 @@ def read(text, markers=(), goal=None):
ends = [m.end() for r in (_BACK_UP_RE, _AROUND, _BACK, _RETRY) for m in r.finditer(t)]
if not ends or _NOT_ORDER.search(t):
return None
if brain.to_someone_else(text) or brain.held_back(re.sub(r"(?:포기하|멈추|그만두)지 ?마\w*|\bdon.?t (?:give up|stop)\b", " ", text)) or brain.ARM_TALK.search(text) or \
re.search(r"(?:라고|자고|하라고|가라고) ?(?:했|하더|그러)|(?:나|니|까|냐|어)\s+(?![루누]미|로봇)[가-힣]{2}(?:아|야)\s*\?\s*$|봤(?:냐|니|어요?|나요)\s*\?|(?<![가-힣])아까(?![가-힣])|\b(?:also|too)\W*$", text):
return None # "아까 저 아저씨가 다시 가라고 했어", "재시도해부러" said after "-믄", "Maria, you go back",
# "다른 길 있나 민수야?" (asked to Minsu), "여러분, 돌아와 보세요"
if _TAKEN_BACK.search(t, max(ends)) or _FIXED.search(t, max(ends)):
return None # "try again. never mind", "go around— no, not need"
fixed = list(_FIXED.finditer(t))