updated 判定关系调整

This commit is contained in:
PASSER-BY
2022-11-16 17:58:32 +08:00
parent 83d65d8445
commit bfebad6ef4
3 changed files with 21 additions and 21 deletions

View File

@@ -1,24 +1,5 @@
// 自然语言表达
export default [
{
exp:/^(\S+?)(应该|得)?(称呼|叫|喊)(什么|啥)?$/,
opt:match=>({
text:match[1]
})
},
{
exp:/^(\S+?)(应该|得)?(如何|怎么)(称呼|叫|喊)?$/,
opt:match=>({
text:match[1]
})
},
{
exp:/^(\S+?)是(谁|什么|什么亲戚|啥亲戚|什么人|什么辈分|啥辈分)?$/,
opt:match=>({
text:match[1],
type:match[1].indexOf('的')>-1?'default':'chain'
})
},
{
exp:/^(\S+?)(应该|得)?(称呼|叫|喊)(\S+?)(什么|啥)?$/,
opt:match=>({
@@ -71,4 +52,23 @@ export default [
type:'chain'
})
},
{
exp:/^(\S+?)(应该|得)?(称呼|叫|喊)(什么|啥)?$/,
opt:match=>({
text:match[1]
})
},
{
exp:/^(\S+?)(应该|得)?(如何|怎么)(称呼|叫|喊)?$/,
opt:match=>({
text:match[1]
})
},
{
exp:/^(\S+?)是(谁|什么|什么亲戚|啥亲戚|什么人|什么辈分|啥辈分)?$/,
opt:match=>({
text:match[1],
type:match[1].indexOf('的')>-1?'default':'chain'
})
},
];