fix: 多语言墙复数形态(precios/preços/Цены/أسعار)+葡语çã路由+阿语词字节修复
spec审查加固两项 + 会话中断导致的ثمن词损坏字节级修复。 223 passed 全绿,对抗样本双向验证通过。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,11 @@ MULTILINGUAL_PRICE_HITS = [
|
||||
"500 dólares", # 数字+货币词后缀
|
||||
"Delivery in 15 días", # 西语时间承诺
|
||||
"Срок 2 недели", # 俄语时间承诺
|
||||
# 复数/变格形态(spec 审查加固: 单数 \b 形态天然排除复数)
|
||||
"los precios son 500", # 西语复数
|
||||
"preços 500", # 葡语复数
|
||||
"Цены: 1200", # 俄语复数
|
||||
"الأسعار 500 دولار", # 阿语复数(定冠词+复数)
|
||||
]
|
||||
|
||||
# 建材规格形态: 不得误杀
|
||||
@@ -284,6 +289,9 @@ def test_deflection_and_pivot_spanish_routing():
|
||||
)
|
||||
assert deflection_for("¿Cuánto cuesta?") in DEFLECTIONS_ES
|
||||
assert deflection_for("¿Cuánto cuesta?", has_contact=True) in DEFLECTIONS_ES_CONTACT
|
||||
# 葡语 ç/ã 特征加固(spec 审查: "qual o preço?" 纯 ç,曾路由到 EN 池)
|
||||
assert deflection_for("qual o preço?") in DEFLECTIONS_ES
|
||||
assert pivot_for("qual o preço?") in PIVOTS_ES
|
||||
assert pivot_for("¿Me pasas el precio?") in PIVOTS_ES
|
||||
assert pivot_for("¿Me pasas el precio?", has_contact=True) in PIVOTS_ES_CONTACT
|
||||
# 既有二分支路由不回归: 汉字→ZH, 无西语特征→EN
|
||||
|
||||
Reference in New Issue
Block a user