updated 自然语言表达调整

This commit is contained in:
PASSER-BY 2022-11-16 17:29:42 +08:00
parent f30975cb63
commit 43196a265c
3 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -13,10 +13,10 @@ export default [
}) })
}, },
{ {
exp:/^(\S+?)是(谁|什么亲戚|啥亲戚|什么辈分|啥辈分)?$/, exp:/^(\S+?)是(谁|什么|什么亲戚|啥亲戚|什么人|什么辈分|啥辈分)?$/,
opt:match=>({ opt:match=>({
text:match[1], text:match[1],
type:match[0].indexOf('的')>-1?'default':'chain' type:match[1].indexOf('的')>-1?'default':'chain'
}) })
}, },
{ {
@ -37,7 +37,8 @@ export default [
exp:/^(\S+?)是(\S+?)的(谁|什么|什么亲戚|啥亲戚|什么人)?$/, exp:/^(\S+?)是(\S+?)的(谁|什么|什么亲戚|啥亲戚|什么人)?$/,
opt:match=>({ opt:match=>({
text:match[1], text:match[1],
target:match[2] target:match[2],
type:match[1].indexOf('的')>-1?'default':'chain'
}) })
}, },
{ {