mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-06 23:32:08 +00:00
kinship: use partner in english
Signed-off-by: Arc676/Alessandro Vinciguerra <alesvinciguerra@gmail.com>
This commit is contained in:
1 parent
e596887a44
commit
e2468f6d39
2 files changed
+3
-3
No files matched your search
@@ -6,8 +6,8 @@ const g = (sex, male, female, neutral) => (sex === 'male' ? male : sex === 'fema
|
||||
export default function nameEn(path) {
|
||||
const { ups, downs, hasSpouse, sex } = kinshipFacts(path)
|
||||
|
||||
// « Spouse » reste neutre : husband et wife supposeraient un mariage
|
||||
if (hasSpouse && ups === 0 && downs === 0) return 'Spouse'
|
||||
// « Partner » reste neutre au lieu de supposer un mariage
|
||||
if (hasSpouse && ups === 0 && downs === 0) return 'Partner'
|
||||
|
||||
if (hasSpouse) {
|
||||
// L'anglais distingue l'ordre : le parent du conjoint (in-law) n'est pas le conjoint du parent (step)
|
||||
|
||||
@@ -65,7 +65,7 @@ describe('nommage anglais', () => {
|
||||
expect(bothEn(['spouse', 'down'])).toEqual(['Stepson', 'Stepdaughter', 'Stepchild'])
|
||||
expect(bothEn(['down', 'spouse'])).toEqual(['Son-in-law', 'Daughter-in-law', 'Child-in-law'])
|
||||
expect(bothEn(['spouse', 'sibling'])).toEqual(['Brother-in-law', 'Sister-in-law', 'Brother/sister-in-law'])
|
||||
expect(bothEn(['spouse'])).toEqual(['Spouse', 'Spouse', 'Spouse'])
|
||||
expect(bothEn(['spouse'])).toEqual(['Partner', 'Partner', 'Partner'])
|
||||
expect(bothEn(['up', 'sibling', 'down'])).toEqual(['First cousin', 'First cousin', 'First cousin'])
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user