updated 区分伯媳和叔嫂关系的差异
This commit is contained in:
parent
074c314604
commit
bd71b41d16
2
dist/relationship.min.js
vendored
2
dist/relationship.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/relationship.zh-HK.min.js
vendored
2
dist/relationship.zh-HK.min.js
vendored
File diff suppressed because one or more lines are too long
@ -15,7 +15,9 @@ export default {
|
||||
'w,m#d,h':['母婿'],
|
||||
'h,f#s,w':['翁媳'],
|
||||
'h,m#s,w':['婆媳'],
|
||||
'[f|m],[f|m]#[s|d],[s|d]':['祖孙'],
|
||||
'f,[f|m]#s,[s|d]':['祖孙'],
|
||||
'm,f#d,[s|d]':['公孙'],
|
||||
'm,m#d,[s|d]':['婆孙'],
|
||||
'f,ob#lb,[s|d]':['伯侄'],
|
||||
'f,ob,w#h,lb,[s|d]':['伯侄'],
|
||||
'f,lb#ob,[s|d]':['叔侄'],
|
||||
@ -48,7 +50,8 @@ export default {
|
||||
'w,ls#os,h':['襟兄妹'],
|
||||
'xs,h#w,xb':['郎舅'],
|
||||
'xs,h#w,xs':['郎姨'],
|
||||
'xb,w#h,xb':['叔嫂'],
|
||||
'lb,w#h,ob':['伯媳'],
|
||||
'ob,w#h,lb':['叔嫂'],
|
||||
'xb,w#h,xs':['姑嫂'],
|
||||
'd,h,[f|m]#s,w,[f|m]':['儿女亲家'],
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ test('[type:chain]', function (t) {
|
||||
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.end();
|
||||
});
|
||||
@ -62,7 +62,7 @@ test('[age]', function (t) {
|
||||
t.deepEqual(relationship({text:'姑姑',target:'叔叔',optimal:true}),['姐姐','妹妹']);
|
||||
t.deepEqual(relationship({text:'大舅',target:'二舅的儿子'}),['伯父']);
|
||||
t.deepEqual(relationship({text:'二舅妈',target:'二舅',type:'pair'}),['夫妻']);
|
||||
t.deepEqual(relationship({text:'二舅妈',target:'大舅',type:'pair'}),['叔嫂']);
|
||||
t.deepEqual(relationship({text:'二舅妈',target:'大舅',type:'pair'}),['伯媳']);
|
||||
t.end();
|
||||
});
|
||||
test('[expression]', function (t) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user