updated 区分伯侄和叔侄关系

This commit is contained in:
PASSER-BY 2023-02-24 23:42:23 +08:00
parent 84ad926d9a
commit fbbd224d4f
4 changed files with 7 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

@ -16,8 +16,10 @@ export default {
'h,f#s,w':['翁媳'], 'h,f#s,w':['翁媳'],
'h,m#s,w':['婆媳'], 'h,m#s,w':['婆媳'],
'[f|m],[f|m]#[s|d],[s|d]':['祖孙'], '[f|m],[f|m]#[s|d],[s|d]':['祖孙'],
'f,xb#xb,[s|d]':['叔侄'], 'f,ob#lb,[s|d]':['伯侄'],
'f,xb,w#h,xb,[s|d]':['婶侄'], 'f,ob,w#h,lb,[s|d]':['伯侄'],
'f,lb#ob,[s|d]':['叔侄'],
'f,lb,w#h,ob,[s|d]':['婶侄'],
'f,xs#xb,[s|d]':['姑侄'], 'f,xs#xb,[s|d]':['姑侄'],
'f,xs,h#w,xb,[s|d]':['姑侄'], 'f,xs,h#w,xb,[s|d]':['姑侄'],
'm,xb#xs,[s|d]':['舅甥'], 'm,xb#xs,[s|d]':['舅甥'],

View File

@ -51,7 +51,7 @@ test('[type:pair]', function (t) {
t.deepEqual(relationship({text:'舅妈',target:'哥哥',type:'pair'}),['舅甥']); t.deepEqual(relationship({text:'舅妈',target:'哥哥',type:'pair'}),['舅甥']);
t.deepEqual(relationship({text:'舅妈',target:'外婆',type:'pair'}),['婆媳']); t.deepEqual(relationship({text:'舅妈',target:'外婆',type:'pair'}),['婆媳']);
t.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['叔嫂','夫妻']); t.deepEqual(relationship({text:'舅妈',target:'二舅',type:'pair'}),['叔嫂','夫妻']);
t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['叔侄','父子']); t.deepEqual(relationship({text:'堂哥',target:'叔叔',type:'pair'}),['伯侄', '叔侄', '父子']);
t.end(); t.end();
}); });
test('[age]', function (t) { test('[age]', function (t) {