updated bue修复及功能添加

修复两者称谓性别判断s和xs逻辑问题,及关系链输出性别参数带出等问题;
添加合称功能
This commit is contained in:
PASSER-BY
2022-08-23 02:26:05 +08:00
parent 0a707df25b
commit 72d0eef45d
8 changed files with 232 additions and 131 deletions

View File

@@ -27,5 +27,6 @@ test('relationship.js show to be tested', function (t) {
t.deepEqual(relationship({text:'我',target:'爸爸'}),['儿子','女儿']);
t.deepEqual(relationship({text:'爱人',target:'娘家侄子'}),['姑丈']);
t.deepEqual(relationship({text:'岳母的配偶的孩子的爸爸'}),['岳父']);
t.deepEqual(relationship({text:'舅妈',target:'外婆',type:'pair'}),['婆媳']);
t.end();
});