lib/Genealogy/Relationship/Name.pm

filter: Statementstmt 100% 87 / 87 Branchbran 94.4% 17 / 18 Conditioncond 78.5% 11 / 14 MC/DCmcdc 37.5% 3 / 8 Subroutinesub 100% 13 / 13 Podpod 100% 4 / 4 totaltotal 93.7% 135 / 144 CC 17 SCAR 18.1
CC
17
Cov
97%
name
12.0
new
4.0
supported_languages
2.0
CRAP 6.1
↑ Summary
1 package Genealogy::Relationship::Name;
2  
3 # Genealogy::Relationship::Name - Return the name of a genealogical relationship
4 # given step counts to and from a common ancestor, the sex of person B, and a language.
5 #
6 # Author: Nigel Horne <njh@nigelhorne.com>
7 # Licence: GPL v2
8  
9 7 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use autodie qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 7 ▶use Carp qw(croak carp);
Subroutine BEGIN: called CC=1 SCAR=0.0
15 7 ▶use Object::Configure;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 7 ▶use Params::Get;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 7 ▶use Params::Validate::Strict 0.31;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 7 ▶use Readonly;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 7 our $VERSION = '0.04';
21  
22 # ---------------------------------------------------------------------------
23 # Constants – relationship table keys
24 # ---------------------------------------------------------------------------
25  
26 # Supported language codes
27 7 Readonly::Array my @SUPPORTED_LANGUAGES => qw(de de_ch en es fa fr la);
28  
29 # Default language when none supplied
30 7 Readonly::Scalar my $DEFAULT_LANGUAGE => 'en';
31  
32 # Sex constants
33 7 Readonly::Scalar my $SEX_MALE => 'M';
34 7 Readonly::Scalar my $SEX_FEMALE => 'F';
35  
36 # ---------------------------------------------------------------------------
37 # English relationship tables
38 # Key: "$steps1,$steps2" where steps1 = steps from A to ancestor,
39 # steps2 = steps from B to ancestor
40 # ---------------------------------------------------------------------------
41  
42 7 Readonly::Hash my %EN_MALE_RELATIONSHIPS => (
43 '0,0' => 'self',
44 '0,1' => 'son',
45 '0,2' => 'grandson',
46 '0,3' => 'great-grandson',
47 '0,4' => 'great-great-grandson',
48 '0,5' => 'great-great-great-grandson',
49 '0,6' => 'great-great-great-great-grandson',
50 '0,7' => 'great-great-great-great-great-grandson',
51 '0,8' => 'great-great-great-great-great-great-grandson',
52 '0,9' => 'great-great-great-great-great-great-great-grandson',
53 '0,10' => 'great-great-great-great-great-great-great-great-grandson',
54 '1,0' => 'father',
55 '1,1' => 'brother',
56 '1,2' => 'nephew',
57 '1,3' => 'great-nephew',
58 '1,4' => 'great-great-nephew',
59 '1,5' => 'great-great-great-nephew',
60 '1,6' => 'great-great-great-great-nephew',
61 '1,7' => 'great-great-great-great-great-nephew',
62 '1,8' => 'great-great-great-great-great-great-nephew',
63 '1,9' => 'great-great-great-great-great-great-great-nephew',
64 '1,10' => 'great-great-great-great-great-great-great-great-nephew',
65 '2,0' => 'grandfather',
66 '2,1' => 'uncle',
67 '2,2' => 'first cousin',
68 '2,3' => 'first cousin once-removed',
69 '2,4' => 'first cousin twice-removed',
70 '2,5' => 'first cousin three-times-removed',
71 '2,6' => 'first cousin four-times-removed',
72 '2,7' => 'first cousin five-times-removed',
73 '2,8' => 'first cousin six-times-removed',
74 '2,9' => 'first cousin seven-times-removed',
75 '2,10' => 'first cousin eight-times-removed',
76 '3,0' => 'great-grandfather',
77 '3,1' => 'great-uncle',
78 '3,2' => 'first cousin once-removed',
79 '3,3' => 'second cousin',
80 '3,4' => 'second cousin once-removed',
81 '3,5' => 'second cousin twice-removed',
82 '3,6' => 'second cousin three-times-removed',
83 '3,7' => 'second cousin four-times-removed',
84 '3,8' => 'second cousin five-times-removed',
85 '3,9' => 'second cousin six-times-removed',
86 '3,10' => 'second cousin seven-times-removed',
87 '4,0' => 'great-great-grandfather',
88 '4,1' => 'great-great-uncle',
89 '4,2' => 'first cousin twice-removed',
90 '4,3' => 'second cousin once-removed',
91 '4,4' => 'third cousin',
92 '4,5' => 'third cousin once-removed',
93 '4,6' => 'third cousin twice-removed',
94 '4,7' => 'third cousin three-times-removed',
95 '4,8' => 'third cousin four-times-removed',
96 '4,9' => 'third cousin five-times-removed',
97 '4,10' => 'third cousin six-times-removed',
98 '5,0' => 'great-great-great-grandfather',
99 '5,1' => 'great-great-great-uncle',
100 '5,2' => 'first cousin three-times-removed',
101 '5,3' => 'second cousin twice-removed',
102 '5,4' => 'third cousin once-removed',
103 '5,5' => 'fourth cousin',
104 '5,6' => 'fourth cousin once-removed',
105 '5,7' => 'fourth cousin twice-removed',
106 '5,8' => 'fourth cousin three-times-removed',
107 '5,9' => 'fourth cousin four-times-removed',
108 '5,10' => 'fourth cousin five-times-removed',
109 '6,0' => 'great-great-great-great-grandfather',
110 '6,1' => 'great-great-great-great-uncle',
111 '6,2' => 'first cousin four-times-removed',
112 '6,3' => 'second cousin three-times-removed',
113 '6,4' => 'third cousin twice-removed',
114 '6,5' => 'fourth cousin once-removed',
115 '6,6' => 'fifth cousin',
116 '6,7' => 'fifth cousin once-removed',
117 '6,8' => 'fifth cousin twice-removed',
118 '6,9' => 'fifth cousin three-times-removed',
119 '6,10' => 'fifth cousin four-times-removed',
120 '7,0' => 'great-great-great-great-great-grandfather',
121 '7,1' => 'great-great-great-great-great-uncle',
122 '7,2' => 'first cousin five-times-removed',
123 '7,3' => 'second cousin four-times-removed',
124 '7,4' => 'third cousin three-times-removed',
125 '7,5' => 'fourth cousin twice-removed',
126 '7,6' => 'fifth cousin once-removed',
127 '7,7' => 'sixth cousin',
128 '7,8' => 'sixth cousin once-removed',
129 '7,9' => 'sixth cousin twice-removed',
130 '7,10' => 'sixth cousin three-times-removed',
131 '8,0' => 'great-great-great-great-great-great-grandfather',
132 '8,1' => 'great-great-great-great-great-great-uncle',
133 '8,2' => 'first cousin six-times-removed',
134 '8,3' => 'second cousin five-times-removed',
135 '8,4' => 'third cousin four-times-removed',
136 '8,5' => 'fourth cousin three-times-removed',
137 '8,6' => 'fifth cousin twice-removed',
138 '8,7' => 'sixth cousin once-removed',
139 '8,8' => 'seventh cousin',
140 '8,9' => 'seventh cousin once-removed',
141 '8,10' => 'seventh cousin twice-removed',
142 '9,0' => 'great-great-great-great-great-great-great-grandfather',
143 '9,1' => 'great-great-great-great-great-great-great-uncle',
144 '9,2' => 'first cousin seven-times-removed',
145 '9,3' => 'second cousin six-times-removed',
146 '9,4' => 'third cousin five-times-removed',
147 '9,5' => 'fourth cousin four-times-removed',
148 '9,6' => 'fifth cousin three-times-removed',
149 '9,7' => 'sixth cousin twice-removed',
150 '9,8' => 'seventh cousin once-removed',
151 '9,9' => 'eighth cousin',
152 '9,10' => 'eighth cousin once-removed',
153 '10,0' => 'great-great-great-great-great-great-great-great-grandfather',
154 '10,1' => 'great-great-great-great-great-great-great-great-uncle',
155 '10,2' => 'first cousin eight-times-removed',
156 '10,3' => 'second cousin seven-times-removed',
157 '10,4' => 'third cousin six-times-removed',
158 '10,5' => 'fourth cousin five-times-removed',
159 '10,6' => 'fifth cousin four-times-removed',
160 '10,7' => 'sixth cousin three-times-removed',
161 '10,8' => 'seventh cousin twice-removed',
162 '10,9' => 'eighth cousin once-removed',
163 '10,10' => 'ninth cousin',
164 '11,1' => 'eighth great-uncle',
165 '12,1' => 'ninth great-uncle',
166 '13,1' => 'tenth great-uncle',
167 '14,1' => 'eleventh great-uncle',
168 '15,1' => 'twelfth great-uncle',
169 '16,1' => 'thirteenth great-uncle',
170 '17,1' => 'fourteenth great-uncle',
171 '18,1' => 'fifteenth great-uncle',
172 );
173  
174 7 Readonly::Hash my %EN_FEMALE_RELATIONSHIPS => (
175 '0,0' => 'self',
176 '0,1' => 'daughter',
177 '0,2' => 'granddaughter',
178 '0,3' => 'great-granddaughter',
179 '0,4' => 'great-great-granddaughter',
180 '0,5' => 'great-great-great-granddaughter',
181 '0,6' => 'great-great-great-great-granddaughter',
182 '0,7' => 'great-great-great-great-great-granddaughter',
183 '0,8' => 'great-great-great-great-great-great-granddaughter',
184 '0,9' => 'great-great-great-great-great-great-great-granddaughter',
185 '0,10' => 'great-great-great-great-great-great-great-great-granddaughter',
186 '1,0' => 'mother',
187 '1,1' => 'sister',
188 '1,2' => 'niece',
189 '1,3' => 'great-niece',
190 '1,4' => 'great-great-niece',
191 '1,5' => 'great-great-great-niece',
192 '1,6' => 'great-great-great-great-niece',
193 '1,7' => 'great-great-great-great-great-niece',
194 '1,8' => 'great-great-great-great-great-great-niece',
195 '1,9' => 'great-great-great-great-great-great-great-niece',
196 '1,10' => 'great-great-great-great-great-great-great-great-niece',
197 '2,0' => 'grandmother',
198 '2,1' => 'aunt',
199 '2,2' => 'first cousin',
200 '2,3' => 'first cousin once-removed',
201 '2,4' => 'first cousin twice-removed',
202 '2,5' => 'first cousin three-times-removed',
203 '2,6' => 'first cousin four-times-removed',
204 '2,7' => 'first cousin five-times-removed',
205 '2,8' => 'first cousin six-times-removed',
206 '2,9' => 'first cousin seven-times-removed',
207 '2,10' => 'first cousin eight-times-removed',
208 '3,0' => 'great-grandmother',
209 '3,1' => 'great-aunt',
210 '3,2' => 'first cousin once-removed',
211 '3,3' => 'second cousin',
212 '3,4' => 'second cousin once-removed',
213 '3,5' => 'second cousin twice-removed',
214 '3,6' => 'second cousin three-times-removed',
215 '3,7' => 'second cousin four-times-removed',
216 '3,8' => 'second cousin five-times-removed',
217 '3,9' => 'second cousin six-times-removed',
218 '3,10' => 'second cousin seven-times-removed',
219 '4,0' => 'great-great-grandmother',
220 '4,1' => 'great-great-aunt',
221 '4,2' => 'first cousin twice-removed',
222 '4,3' => 'second cousin once-removed',
223 '4,4' => 'third cousin',
224 '4,5' => 'third cousin once-removed',
225 '4,6' => 'third cousin twice-removed',
226 '4,7' => 'third cousin three-times-removed',
227 '4,8' => 'third cousin four-times-removed',
228 '4,9' => 'third cousin five-times-removed',
229 '4,10' => 'third cousin six-times-removed',
230 '5,0' => 'great-great-great-grandmother',
231 '5,1' => 'great-great-great-aunt',
232 '5,2' => 'first cousin three-times-removed',
233 '5,3' => 'second cousin twice-removed',
234 '5,4' => 'third cousin once-removed',
235 '5,5' => 'fourth cousin',
236 '5,6' => 'fourth cousin once-removed',
237 '5,7' => 'fourth cousin twice-removed',
238 '5,8' => 'fourth cousin three-times-removed',
239 '5,9' => 'fourth cousin four-times-removed',
240 '5,10' => 'fourth cousin five-times-removed',
241 '6,0' => 'great-great-great-great-grandmother',
242 '6,1' => 'great-great-great-great-aunt',
243 '6,2' => 'first cousin four-times-removed',
244 '6,3' => 'second cousin three-times-removed',
245 '6,4' => 'third cousin twice-removed',
246 '6,5' => 'fourth cousin once-removed',
247 '6,6' => 'fifth cousin',
248 '6,7' => 'fifth cousin once-removed',
249 '6,8' => 'fifth cousin twice-removed',
250 '6,9' => 'fifth cousin three-times-removed',
251 '6,10' => 'fifth cousin four-times-removed',
252 '7,0' => 'great-great-great-great-great-grandmother',
253 '7,1' => 'great-great-great-great-great-aunt',
254 '7,2' => 'first cousin five-times-removed',
255 '7,3' => 'second cousin four-times-removed',
256 '7,4' => 'third cousin three-times-removed',
257 '7,5' => 'fourth cousin twice-removed',
258 '7,6' => 'fifth cousin once-removed',
259 '7,7' => 'sixth cousin',
260 '7,8' => 'sixth cousin once-removed',
261 '7,9' => 'sixth cousin twice-removed',
262 '7,10' => 'sixth cousin three-times-removed',
263 '8,0' => 'great-great-great-great-great-great-grandmother',
264 '8,1' => 'great-great-great-great-great-great-aunt',
265 '8,2' => 'first cousin six-times-removed',
266 '8,3' => 'second cousin five-times-removed',
267 '8,4' => 'third cousin four-times-removed',
268 '8,5' => 'fourth cousin three-times-removed',
269 '8,6' => 'fifth cousin twice-removed',
270 '8,7' => 'sixth cousin once-removed',
271 '8,8' => 'seventh cousin',
272 '8,9' => 'seventh cousin once-removed',
273 '8,10' => 'seventh cousin twice-removed',
274 '9,0' => 'great-great-great-great-great-great-great-grandmother',
275 '9,1' => 'great-great-great-great-great-great-great-aunt',
276 '9,2' => 'first cousin seven-times-removed',
277 '9,3' => 'second cousin six-times-removed',
278 '9,4' => 'third cousin five-times-removed',
279 '9,5' => 'fourth cousin four-times-removed',
280 '9,6' => 'fifth cousin three-times-removed',
281 '9,7' => 'sixth cousin twice-removed',
282 '9,8' => 'seventh cousin once-removed',
283 '9,9' => 'eighth cousin',
284 '9,10' => 'eighth cousin once-removed',
285 '10,0' => 'great-great-great-great-great-great-great-great-grandmother',
286 '10,1' => 'great-great-great-great-great-great-great-great-aunt',
287 '10,2' => 'first cousin eight-times-removed',
288 '10,3' => 'second cousin seven-times-removed',
289 '10,4' => 'third cousin six-times-removed',
290 '10,5' => 'fourth cousin five-times-removed',
291 '10,6' => 'fifth cousin four-times-removed',
292 '10,7' => 'sixth cousin three-times-removed',
293 '10,8' => 'seventh cousin twice-removed',
294 '10,9' => 'eighth cousin once-removed',
295 '10,10' => 'ninth cousin',
296 '11,1' => 'eighth great-aunt',
297 '12,1' => 'ninth great-aunt',
298 '13,1' => 'tenth great-aunt',
299 '14,1' => 'eleventh great-aunt',
300 '15,1' => 'twelfth great-aunt',
301 '16,1' => 'thirteenth great-aunt',
302 '17,1' => 'fourteenth great-aunt',
303 '18,1' => 'fifteenth great-aunt',
304 );
305  
306 # ---------------------------------------------------------------------------
307 # French relationship tables
308 # ---------------------------------------------------------------------------
309  
310 7 Readonly::Hash my %FR_MALE_RELATIONSHIPS => (
311 '0,0' => 'soi-meme',
312 '0,1' => 'fils',
313 '0,2' => 'petit-fils',
314 '0,3' => 'arriere-petit-fils',
315 '0,4' => 'arriere-arriere-petit-fils',
316 '0,5' => 'arriere-arriere-arriere-petit-fils',
317 '0,6' => 'arriere-arriere-arriere-arriere-petit-fils',
318 '0,7' => 'arriere-arriere-arriere-arriere-arriere-petit-fils',
319 '0,8' => 'arriere-arriere-arriere-arriere-arriere-arriere-petit-fils',
320 '0,9' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-petit-fils',
321 '0,10' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-arriere-petit-fils',
322 '1,0' => 'pere',
323 '1,1' => "fr\N{U+00E8}re",
324 '1,2' => 'neveu',
325 '1,3' => 'grand-neveu',
326 '1,4' => 'arriere-grand-neveu',
327 '1,5' => 'arriere-arriere-grand-neveu',
328 '1,6' => 'arriere-arriere-arriere-grand-neveu',
329 '1,7' => 'arriere-arriere-arriere-arriere-grand-neveu',
330 '1,8' => 'arriere-arriere-arriere-arriere-arriere-grand-neveu',
331 '1,9' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-neveu',
332 '1,10' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-neveu',
333 '2,0' => 'grand-pere',
334 '2,1' => 'oncle',
335 '2,2' => 'cousin germain',
336 '2,3' => "cousin germain \N{U+00E9}loign\N{U+00E9} au 1er degr\N{U+00E9}",
337 '2,4' => 'cousin germain deux fois eloigne',
338 '2,5' => 'cousin germain trois fois eloigne',
339 '2,6' => 'cousin germain quatre fois eloigne',
340 '2,7' => 'cousin germain cinq fois eloigne',
341 '2,8' => 'cousin germain six fois eloigne',
342 '2,9' => 'cousin germain sept fois eloigne',
343 '2,10' => 'cousin germain huit fois eloigne',
344 '3,0' => 'arriere-grand-pere',
345 '3,1' => 'grand-oncle',
346 '3,2' => "cousin germain \N{U+00E9}loign\N{U+00E9} au 1er degr\N{U+00E9}",
347 '3,3' => 'cousin issu de germain',
348 '3,4' => 'cousin issu de germain une fois eloigne',
349 '3,5' => "cousin issu de germains \N{U+00E9}loign\N{U+00E9} au 2e degr\N{U+00E9}",
350 '3,6' => 'cousin issu de germain trois fois eloigne',
351 '3,7' => 'cousin issu de germain quatre fois eloigne',
352 '3,8' => 'cousin issu de germain cinq fois eloigne',
353 '3,9' => 'cousin issu de germain six fois eloigne',
354 '3,10' => 'cousin issu de germain sept fois eloigne',
355 '4,0' => 'arriere-arriere-grand-pere',
356 '4,1' => 'arriere-grand-oncle',
357 '4,2' => 'cousin germain deux fois eloigne',
358 '4,3' => 'cousin issu de germain une fois eloigne',
359 '4,4' => 'cousin au quatrieme degre',
360 '4,5' => 'cousin au quatrieme degre une fois eloigne',
361 '4,6' => 'cousin au quatrieme degre deux fois eloigne',
362 '4,7' => "petit-cousin \N{U+00E9}loign\N{U+00E9} au 3e degr\N{U+00E9}",
363 '4,8' => 'cousin au quatrieme degre quatre fois eloigne',
364 '4,9' => 'cousin au quatrieme degre cinq fois eloigne',
365 '4,10' => 'cousin au quatrieme degre six fois eloigne',
366 '5,0' => 'arriere-arriere-arriere-grand-pere',
367 '5,1' => 'arriere-arriere-grand-oncle',
368 '5,2' => 'cousin germain trois fois eloigne',
369 '5,3' => "cousin issu de germains \N{U+00E9}loign\N{U+00E9} au 2e degr\N{U+00E9}",
370 '5,4' => 'cousin au quatrieme degre une fois eloigne',
371 '5,5' => 'cousin au cinquieme degre',
372 '5,6' => "arri\N{U+00E8}re-petit-cousin \N{U+00E9}loign\N{U+00E9} au 1er degr\N{U+00E9}",
373 '5,7' => "arri\N{U+00E8}re-petit-cousin \N{U+00E9}loign\N{U+00E9} au 2e degr\N{U+00E9}",
374 '5,8' => 'cousin au cinquieme degre trois fois eloigne',
375 '5,9' => 'cousin au cinquieme degre quatre fois eloigne',
376 '5,10' => 'cousin au cinquieme degre cinq fois eloigne',
377 '6,0' => 'arriere-arriere-arriere-arriere-grand-pere',
378 '6,1' => 'arriere-arriere-arriere-grand-oncle',
379 '6,2' => 'cousin germain quatre fois eloigne',
380 '6,3' => 'cousin issu de germain trois fois eloigne',
381 '6,4' => 'cousin au quatrieme degre deux fois eloigne',
382 '6,5' => "arri\N{U+00E8}re-petit-cousin \N{U+00E9}loign\N{U+00E9} au 1er degr\N{U+00E9}",
383 '6,6' => "arri\N{U+00E8}re-arri\N{U+00E8}re-petit-cousin",
384 '6,7' => 'cousin au sixieme degre une fois eloigne',
385 '6,8' => 'cousin au sixieme degre deux fois eloigne',
386 '6,9' => 'cousin au sixieme degre trois fois eloigne',
387 '6,10' => 'cousin au sixieme degre quatre fois eloigne',
388 '7,0' => 'arriere-arriere-arriere-arriere-arriere-grand-pere',
389 '7,1' => 'arriere-arriere-arriere-arriere-grand-oncle',
390 '7,2' => 'cousin germain cinq fois eloigne',
391 '7,3' => 'cousin issu de germain quatre fois eloigne',
392 '7,4' => "petit-cousin \N{U+00E9}loign\N{U+00E9} au 3e degr\N{U+00E9}",
393 '7,5' => "arri\N{U+00E8}re-petit-cousin \N{U+00E9}loign\N{U+00E9} au 2e degr\N{U+00E9}",
394 '7,6' => 'cousin au sixieme degre une fois eloigne',
395 '7,7' => "sixi\N{U+00E8}me cousin",
396 '7,8' => "sixi\N{U+00E8}me cousin une fois \N{U+00E9}loign\N{U+00E9}",
397 '7,9' => 'cousin au septieme degre deux fois eloigne',
398 '7,10' => 'cousin au septieme degre trois fois eloigne',
399 '8,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-pere',
400 '8,1' => 'arriere-arriere-arriere-arriere-arriere-grand-oncle',
401 '8,2' => 'cousin germain six fois eloigne',
402 '8,3' => 'cousin issu de germain cinq fois eloigne',
403 '8,4' => 'cousin au quatrieme degre quatre fois eloigne',
404 '8,5' => 'cousin au cinquieme degre trois fois eloigne',
405 '8,6' => 'cousin au sixieme degre deux fois eloigne',
406 '8,7' => "sixi\N{U+00E8}me cousin une fois \N{U+00E9}loign\N{U+00E9}",
407 '8,8' => 'cousin au huitieme degre',
408 '8,9' => 'cousin au huitieme degre une fois eloigne',
409 '8,10' => 'cousin au huitieme degre deux fois eloigne',
410 '9,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-pere',
411 '9,1' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-oncle',
412 '9,2' => 'cousin germain sept fois eloigne',
413 '9,3' => 'cousin issu de germain six fois eloigne',
414 '9,4' => 'cousin au quatrieme degre cinq fois eloigne',
415 '9,5' => 'cousin au cinquieme degre quatre fois eloigne',
416 '9,6' => 'cousin au sixieme degre trois fois eloigne',
417 '9,7' => 'cousin au septieme degre deux fois eloigne',
418 '9,8' => 'cousin au huitieme degre une fois eloigne',
419 '9,9' => 'cousin au neuvieme degre',
420 '9,10' => 'cousin au neuvieme degre une fois eloigne',
421 '10,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-pere',
422 '10,1' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-oncle',
423 '10,2' => 'cousin germain huit fois eloigne',
424 '10,3' => 'cousin issu de germain sept fois eloigne',
425 '10,4' => 'cousin au quatrieme degre six fois eloigne',
426 '10,5' => 'cousin au cinquieme degre cinq fois eloigne',
427 '10,6' => 'cousin au sixieme degre quatre fois eloigne',
428 '10,7' => 'cousin au septieme degre trois fois eloigne',
429 '10,8' => 'cousin au huitieme degre deux fois eloigne',
430 '10,9' => 'cousin au neuvieme degre une fois eloigne',
431 '10,10' => 'cousin au dixieme degre',
432 '11,1' => "huiti\N{U+00E8}me grand-oncle",
433 '12,1' => "neuvi\N{U+00E8}me grand-oncle",
434 '13,1' => "dixi\N{U+00E8}me grand-oncle",
435 '14,1' => "onzi\N{U+00E8}me grand-oncle",
436 '15,1' => "douzi\N{U+00E8}me grand-oncle",
437 '16,1' => "treizi\N{U+00E8}me grand-oncle",
438 '17,1' => "quatorzi\N{U+00E8}me grand-oncle",
439 '18,1' => "quinzi\N{U+00E8}me grand-oncle",
440 );
441  
442 7 Readonly::Hash my %FR_FEMALE_RELATIONSHIPS => (
443 '0,0' => 'soi-meme',
444 '0,1' => 'fille',
445 '0,2' => 'petite-fille',
446 '0,3' => 'arriere-petite-fille',
447 '0,4' => 'arriere-arriere-petite-fille',
448 '0,5' => 'arriere-arriere-arriere-petite-fille',
449 '0,6' => 'arriere-arriere-arriere-arriere-petite-fille',
450 '0,7' => 'arriere-arriere-arriere-arriere-arriere-petite-fille',
451 '0,8' => 'arriere-arriere-arriere-arriere-arriere-arriere-petite-fille',
452 '0,9' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-petite-fille',
453 '0,10' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-arriere-petite-fille',
454 '1,0' => 'mere',
455 '1,1' => "s\N{U+0153}ur",
456 '1,2' => "ni\N{U+00E8}ce",
457 '1,3' => 'grand-niece',
458 '1,4' => 'arriere-grand-niece',
459 '1,5' => 'arriere-arriere-grand-niece',
460 '1,6' => 'arriere-arriere-arriere-grand-niece',
461 '1,7' => 'arriere-arriere-arriere-arriere-grand-niece',
462 '1,8' => 'arriere-arriere-arriere-arriere-arriere-grand-niece',
463 '1,9' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-niece',
464 '1,10' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-niece',
465 '2,0' => 'grand-mere',
466 '2,1' => 'tante',
467 '2,2' => 'cousine germaine',
468 '2,3' => "cousine germaine \N{U+00E9}loign\N{U+00E9}e au 1er degr\N{U+00E9}",
469 '2,4' => 'cousine germaine deux fois eloignee',
470 '2,5' => 'cousine germaine trois fois eloignee',
471 '2,6' => 'cousine germaine quatre fois eloignee',
472 '2,7' => 'cousine germaine cinq fois eloignee',
473 '2,8' => 'cousine germaine six fois eloignee',
474 '2,9' => 'cousine germaine sept fois eloignee',
475 '2,10' => 'cousine germaine huit fois eloignee',
476 '3,0' => 'arriere-grand-mere',
477 '3,1' => 'grand-tante',
478 '3,2' => "cousine germaine \N{U+00E9}loign\N{U+00E9}e au 1er degr\N{U+00E9}",
479 '3,3' => 'cousine issue de germaine',
480 '3,4' => 'cousine issue de germaine une fois eloignee',
481 '3,5' => "cousine issue de germains \N{U+00E9}loign\N{U+00E9}e au 2e degr\N{U+00E9}",
482 '3,6' => 'cousine issue de germaine trois fois eloignee',
483 '3,7' => 'cousine issue de germaine quatre fois eloignee',
484 '3,8' => 'cousine issue de germaine cinq fois eloignee',
485 '3,9' => 'cousine issue de germaine six fois eloignee',
486 '3,10' => 'cousine issue de germaine sept fois eloignee',
487 '4,0' => 'arriere-arriere-grand-mere',
488 '4,1' => 'arriere-grand-tante',
489 '4,2' => 'cousine germaine deux fois eloignee',
490 '4,3' => 'cousine issue de germaine une fois eloignee',
491 '4,4' => 'cousine au quatrieme degre',
492 '4,5' => 'cousine au quatrieme degre une fois eloignee',
493 '4,6' => 'cousine au quatrieme degre deux fois eloignee',
494 '4,7' => "petite-cousine \N{U+00E9}loign\N{U+00E9}e au 3e degr\N{U+00E9}",
495 '4,8' => 'cousine au quatrieme degre quatre fois eloignee',
496 '4,9' => 'cousine au quatrieme degre cinq fois eloignee',
497 '4,10' => 'cousine au quatrieme degre six fois eloignee',
498 '5,0' => 'arriere-arriere-arriere-grand-mere',
499 '5,1' => 'arriere-arriere-grand-tante',
500 '5,2' => 'cousine germaine trois fois eloignee',
501 '5,3' => "cousine issue de germains \N{U+00E9}loign\N{U+00E9}e au 2e degr\N{U+00E9}",
502 '5,4' => 'cousine au quatrieme degre une fois eloignee',
503 '5,5' => 'cousine au cinquieme degre',
504 '5,6' => "arri\N{U+00E8}re-petite-cousine \N{U+00E9}loign\N{U+00E9}e au 1er degr\N{U+00E9}",
505 '5,7' => "arri\N{U+00E8}re-petite-cousine \N{U+00E9}loign\N{U+00E9}e au 2e degr\N{U+00E9}",
506 '5,8' => 'cousine au cinquieme degre trois fois eloignee',
507 '5,9' => 'cousine au cinquieme degre quatre fois eloignee',
508 '5,10' => 'cousine au cinquieme degre cinq fois eloignee',
509 '6,0' => 'arriere-arriere-arriere-arriere-grand-mere',
510 '6,1' => 'arriere-arriere-arriere-grand-tante',
511 '6,2' => 'cousine germaine quatre fois eloignee',
512 '6,3' => 'cousine issue de germaine trois fois eloignee',
513 '6,4' => 'cousine au quatrieme degre deux fois eloignee',
514 '6,5' => "arri\N{U+00E8}re-petite-cousine \N{U+00E9}loign\N{U+00E9}e au 1er degr\N{U+00E9}",
515 '6,6' => "arri\N{U+00E8}re-arri\N{U+00E8}re-petite-cousine",
516 '6,7' => 'cousine au sixieme degre une fois eloignee',
517 '6,8' => 'cousine au sixieme degre deux fois eloignee',
518 '6,9' => 'cousine au sixieme degre trois fois eloignee',
519 '6,10' => 'cousine au sixieme degre quatre fois eloignee',
520 '7,0' => 'arriere-arriere-arriere-arriere-arriere-grand-mere',
521 '7,1' => 'arriere-arriere-arriere-arriere-grand-tante',
522 '7,2' => 'cousine germaine cinq fois eloignee',
523 '7,3' => 'cousine issue de germaine quatre fois eloignee',
524 '7,4' => "petite-cousine \N{U+00E9}loign\N{U+00E9}e au 3e degr\N{U+00E9}",
525 '7,5' => "arri\N{U+00E8}re-petite-cousine \N{U+00E9}loign\N{U+00E9}e au 2e degr\N{U+00E9}",
526 '7,6' => 'cousine au sixieme degre une fois eloignee',
527 '7,7' => "sixi\N{U+00E8}me cousine",
528 '7,8' => "sixi\N{U+00E8}me cousine une fois \N{U+00E9}loign\N{U+00E9}e",
529 '7,9' => 'cousine au septieme degre deux fois eloignee',
530 '7,10' => 'cousine au septieme degre trois fois eloignee',
531 '8,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-mere',
532 '8,1' => 'arriere-arriere-arriere-arriere-arriere-grand-tante',
533 '8,2' => 'cousine germaine six fois eloignee',
534 '8,3' => 'cousine issue de germaine cinq fois eloignee',
535 '8,4' => 'cousine au quatrieme degre quatre fois eloignee',
536 '8,5' => 'cousine au cinquieme degre trois fois eloignee',
537 '8,6' => 'cousine au sixieme degre deux fois eloignee',
538 '8,7' => "sixi\N{U+00E8}me cousine une fois \N{U+00E9}loign\N{U+00E9}e",
539 '8,8' => 'cousine au huitieme degre',
540 '8,9' => 'cousine au huitieme degre une fois eloignee',
541 '8,10' => 'cousine au huitieme degre deux fois eloignee',
542 '9,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-mere',
543 '9,1' => 'arriere-arriere-arriere-arriere-arriere-arriere-grand-tante',
544 '9,2' => 'cousine germaine sept fois eloignee',
545 '9,3' => 'cousine issue de germaine six fois eloignee',
546 '9,4' => 'cousine au quatrieme degre cinq fois eloignee',
547 '9,5' => 'cousine au cinquieme degre quatre fois eloignee',
548 '9,6' => 'cousine au sixieme degre trois fois eloignee',
549 '9,7' => 'cousine au septieme degre deux fois eloignee',
550 '9,8' => 'cousine au huitieme degre une fois eloignee',
551 '9,9' => 'cousine au neuvieme degre',
552 '9,10' => 'cousine au neuvieme degre une fois eloignee',
553 '10,0' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-mere',
554 '10,1' => 'arriere-arriere-arriere-arriere-arriere-arriere-arriere-grand-tante',
555 '10,2' => 'cousine germaine huit fois eloignee',
556 '10,3' => 'cousine issue de germaine sept fois eloignee',
557 '10,4' => 'cousine au quatrieme degre six fois eloignee',
558 '10,5' => 'cousine au cinquieme degre cinq fois eloignee',
559 '10,6' => 'cousine au sixieme degre quatre fois eloignee',
560 '10,7' => 'cousine au septieme degre trois fois eloignee',
561 '10,8' => 'cousine au huitieme degre deux fois eloignee',
562 '10,9' => 'cousine au neuvieme degre une fois eloignee',
563 '10,10' => 'cousine au dixieme degre',
564 '11,1' => "huiti\N{U+00E8}me grand-tante",
565 '12,1' => "neuvi\N{U+00E8}me grand-tante",
566 '13,1' => "dixi\N{U+00E8}me grand-tante",
567 '14,1' => "onzi\N{U+00E8}me grand-tante",
568 '15,1' => "douzi\N{U+00E8}me grand-tante",
569 '16,1' => "treizi\N{U+00E8}me grand-tante",
570 '17,1' => "quatorzi\N{U+00E8}me grand-tante",
571 '18,1' => "quinzi\N{U+00E8}me grand-tante",
572 );
573  
574 # ---------------------------------------------------------------------------
575 # German relationship tables
576 # ---------------------------------------------------------------------------
577  
578 7 Readonly::Hash my %DE_MALE_RELATIONSHIPS => (
579 '0,0' => 'sich selbst',
580 '0,1' => 'Sohn',
581 '0,2' => 'Enkel',
582 '0,3' => 'Urenkel',
583 '0,4' => 'Ururenkel',
584 '0,5' => 'Urururenkel',
585 '0,6' => 'Ururururenkel',
586 '0,7' => 'Urururururenkel',
587 '0,8' => 'Ururururururenkel',
588 '0,9' => 'Urururururururenkel',
589 '0,10' => 'Ururururururururenkel',
590 '1,0' => 'Vater',
591 '1,1' => 'Bruder',
592 '1,2' => 'Neffe',
593 '1,3' => "Gro\N{U+00DF}neffe",
594 '1,4' => 'Urgrossneffe',
595 '1,5' => 'Ururgrossneffe',
596 '1,6' => 'Urururgrossneffe',
597 '1,7' => 'Ururururgrossneffe',
598 '1,8' => 'Urururururgrossneffe',
599 '1,9' => 'Ururururururgrossneffe',
600 '1,10' => 'Urururururururgrossneffe',
601 '2,0' => "Gro\N{U+00DF}vater",
602 '2,1' => 'Onkel',
603 '2,2' => 'Cousin',
604 '2,3' => 'Cousin einmal entfernt',
605 '2,4' => 'Cousin zweimal entfernt',
606 '2,5' => 'Cousin dreimal entfernt',
607 '2,6' => 'Cousin viermal entfernt',
608 '2,7' => 'Cousin fuenfmal entfernt',
609 '2,8' => 'Cousin sechsmal entfernt',
610 '2,9' => 'Cousin siebenmal entfernt',
611 '2,10' => 'Cousin achtmal entfernt',
612 '3,0' => 'Urgrossvater',
613 '3,1' => "Gro\N{U+00DF}onkel",
614 '3,2' => 'Cousin einmal entfernt',
615 '3,3' => 'Cousin zweiten Grades',
616 '3,4' => 'Cousin zweiten Grades einmal entfernt',
617 '3,5' => 'Cousin zweiten Grades zweimal entfernt',
618 '3,6' => 'Cousin zweiten Grades dreimal entfernt',
619 '3,7' => 'Cousin zweiten Grades viermal entfernt',
620 '3,8' => 'Cousin zweiten Grades fuenfmal entfernt',
621 '3,9' => 'Cousin zweiten Grades sechsmal entfernt',
622 '3,10' => 'Cousin zweiten Grades siebenmal entfernt',
623 '4,0' => 'Ururgrossvater',
624 '4,1' => 'Urgrossonkel',
625 '4,2' => 'Cousin zweimal entfernt',
626 '4,3' => 'Cousin zweiten Grades einmal entfernt',
627 '4,4' => 'Cousin dritten Grades',
628 '4,5' => 'Cousin dritten Grades einmal entfernt',
629 '4,6' => 'Cousin dritten Grades zweimal entfernt',
630 '4,7' => 'Cousin dritten Grades dreimal entfernt',
631 '4,8' => 'Cousin dritten Grades viermal entfernt',
632 '4,9' => 'Cousin dritten Grades fuenfmal entfernt',
633 '4,10' => 'Cousin dritten Grades sechsmal entfernt',
634 '5,0' => 'Urururgrossvater',
635 '5,1' => 'Ururgrossonkel',
636 '5,2' => 'Cousin dreimal entfernt',
637 '5,3' => 'Cousin zweiten Grades zweimal entfernt',
638 '5,4' => 'Cousin dritten Grades einmal entfernt',
639 '5,5' => 'Cousin vierten Grades',
640 '5,6' => 'Cousin vierten Grades einmal entfernt',
641 '5,7' => 'Cousin vierten Grades zweimal entfernt',
642 '5,8' => 'Cousin vierten Grades dreimal entfernt',
643 '5,9' => 'Cousin vierten Grades viermal entfernt',
644 '5,10' => 'Cousin vierten Grades fuenfmal entfernt',
645 '6,0' => 'Ururururgrossvater',
646 '6,1' => 'Urururgrossonkel',
647 '6,2' => 'Cousin viermal entfernt',
648 '6,3' => 'Cousin zweiten Grades dreimal entfernt',
649 '6,4' => 'Cousin dritten Grades zweimal entfernt',
650 '6,5' => 'Cousin vierten Grades einmal entfernt',
651 '6,6' => 'Cousin fuenften Grades',
652 '6,7' => 'Cousin fuenften Grades einmal entfernt',
653 '6,8' => 'Cousin fuenften Grades zweimal entfernt',
654 '6,9' => 'Cousin fuenften Grades dreimal entfernt',
655 '6,10' => 'Cousin fuenften Grades viermal entfernt',
656 '7,0' => 'Urururururgrossvater',
657 '7,1' => 'Ururururgrossonkel',
658 '7,2' => 'Cousin fuenfmal entfernt',
659 '7,3' => 'Cousin zweiten Grades viermal entfernt',
660 '7,4' => 'Cousin dritten Grades dreimal entfernt',
661 '7,5' => 'Cousin vierten Grades zweimal entfernt',
662 '7,6' => 'Cousin fuenften Grades einmal entfernt',
663 '7,7' => 'Cousin sechsten Grades',
664 '7,8' => 'Cousin sechsten Grades einmal entfernt',
665 '7,9' => 'Cousin sechsten Grades zweimal entfernt',
666 '7,10' => 'Cousin sechsten Grades dreimal entfernt',
667 '8,0' => 'Ururururururgrossvater',
668 '8,1' => 'Urururururgrossonkel',
669 '8,2' => 'Cousin sechsmal entfernt',
670 '8,3' => 'Cousin zweiten Grades fuenfmal entfernt',
671 '8,4' => 'Cousin dritten Grades viermal entfernt',
672 '8,5' => 'Cousin vierten Grades dreimal entfernt',
673 '8,6' => 'Cousin fuenften Grades zweimal entfernt',
674 '8,7' => 'Cousin sechsten Grades einmal entfernt',
675 '8,8' => 'Cousin siebten Grades',
676 '8,9' => 'Cousin siebten Grades einmal entfernt',
677 '8,10' => 'Cousin siebten Grades zweimal entfernt',
678 '9,0' => 'Urururururururgrossvater',
679 '9,1' => 'Ururururururgrossonkel',
680 '9,2' => 'Cousin siebenmal entfernt',
681 '9,3' => 'Cousin zweiten Grades sechsmal entfernt',
682 '9,4' => 'Cousin dritten Grades fuenfmal entfernt',
683 '9,5' => 'Cousin vierten Grades viermal entfernt',
684 '9,6' => 'Cousin fuenften Grades dreimal entfernt',
685 '9,7' => 'Cousin sechsten Grades zweimal entfernt',
686 '9,8' => 'Cousin siebten Grades einmal entfernt',
687 '9,9' => 'Cousin achten Grades',
688 '9,10' => 'Cousin achten Grades einmal entfernt',
689 '10,0' => 'Ururururururururgrossvater',
690 '10,1' => 'Urururururururgrossonkel',
691 '10,2' => 'Cousin achtmal entfernt',
692 '10,3' => 'Cousin zweiten Grades siebenmal entfernt',
693 '10,4' => 'Cousin dritten Grades sechsmal entfernt',
694 '10,5' => 'Cousin vierten Grades fuenfmal entfernt',
695 '10,6' => 'Cousin fuenften Grades viermal entfernt',
696 '10,7' => 'Cousin sechsten Grades dreimal entfernt',
697 '10,8' => 'Cousin siebten Grades zweimal entfernt',
698 '10,9' => 'Cousin achten Grades einmal entfernt',
699 '10,10' => 'Cousin neunten Grades',
700 '11,1' => 'achtens grossonkel',
701 '12,1' => 'neuntens grossonkel',
702 '13,1' => 'zehntens grossonkel',
703 '14,1' => 'elftens grossonkel',
704 '15,1' => 'zwoelftens grossonkel',
705 '16,1' => 'dreizehntens grossonkel',
706 '17,1' => 'vierzehntens grossonkel',
707 '18,1' => 'fuenfzehntens grossonkel',
708 );
709  
710 7 Readonly::Hash my %DE_FEMALE_RELATIONSHIPS => (
711 '0,0' => 'sich selbst',
712 '0,1' => 'Tochter',
713 '0,2' => 'Enkelin',
714 '0,3' => 'Urenkelin',
715 '0,4' => 'Ururenkelin',
716 '0,5' => 'Urururenkelin',
717 '0,6' => 'Ururururenkelin',
718 '0,7' => 'Urururururenkelin',
719 '0,8' => 'Ururururururenkelin',
720 '0,9' => 'Urururururururenkelin',
721 '0,10' => 'Ururururururururenkelin',
722 '1,0' => 'Mutter',
723 '1,1' => 'Schwester',
724 '1,2' => 'Nichte',
725 '1,3' => "Gro\N{U+00DF}nichte",
726 '1,4' => 'Urgrossnichte',
727 '1,5' => 'Ururgrossnichte',
728 '1,6' => 'Urururgrossnichte',
729 '1,7' => 'Ururururgrossnichte',
730 '1,8' => 'Urururururgrossnichte',
731 '1,9' => 'Ururururururgrossnichte',
732 '1,10' => 'Urururururururgrossnichte',
733 '2,0' => "Gro\N{U+00DF}mutter",
734 '2,1' => 'Tante',
735 '2,2' => 'Cousine',
736 '2,3' => 'Cousine einmal entfernt',
737 '2,4' => 'Cousine zweimal entfernt',
738 '2,5' => 'Cousine dreimal entfernt',
739 '2,6' => 'Cousine viermal entfernt',
740 '2,7' => 'Cousine fuenfmal entfernt',
741 '2,8' => 'Cousine sechsmal entfernt',
742 '2,9' => 'Cousine siebenmal entfernt',
743 '2,10' => 'Cousine achtmal entfernt',
744 '3,0' => 'Urgrossmutter',
745 '3,1' => "Gro\N{U+00DF}tante",
746 '3,2' => 'Cousine einmal entfernt',
747 '3,3' => 'Cousine zweiten Grades',
748 '3,4' => 'Cousine zweiten Grades einmal entfernt',
749 '3,5' => 'Cousine zweiten Grades zweimal entfernt',
750 '3,6' => 'Cousine zweiten Grades dreimal entfernt',
751 '3,7' => 'Cousine zweiten Grades viermal entfernt',
752 '3,8' => 'Cousine zweiten Grades fuenfmal entfernt',
753 '3,9' => 'Cousine zweiten Grades sechsmal entfernt',
754 '3,10' => 'Cousine zweiten Grades siebenmal entfernt',
755 '4,0' => 'Ururgrossmutter',
756 '4,1' => 'Urgrosstante',
757 '4,2' => 'Cousine zweimal entfernt',
758 '4,3' => 'Cousine zweiten Grades einmal entfernt',
759 '4,4' => 'Cousine dritten Grades',
760 '4,5' => 'Cousine dritten Grades einmal entfernt',
761 '4,6' => 'Cousine dritten Grades zweimal entfernt',
762 '4,7' => 'Cousine dritten Grades dreimal entfernt',
763 '4,8' => 'Cousine dritten Grades viermal entfernt',
764 '4,9' => 'Cousine dritten Grades fuenfmal entfernt',
765 '4,10' => 'Cousine dritten Grades sechsmal entfernt',
766 '5,0' => 'Urururgrossmutter',
767 '5,1' => 'Ururgrosstante',
768 '5,2' => 'Cousine dreimal entfernt',
769 '5,3' => 'Cousine zweiten Grades zweimal entfernt',
770 '5,4' => 'Cousine dritten Grades einmal entfernt',
771 '5,5' => 'Cousine vierten Grades',
772 '5,6' => 'Cousine vierten Grades einmal entfernt',
773 '5,7' => 'Cousine vierten Grades zweimal entfernt',
774 '5,8' => 'Cousine vierten Grades dreimal entfernt',
775 '5,9' => 'Cousine vierten Grades viermal entfernt',
776 '5,10' => 'Cousine vierten Grades fuenfmal entfernt',
777 '6,0' => 'Ururururgrossmutter',
778 '6,1' => 'Urururgrosstante',
779 '6,2' => 'Cousine viermal entfernt',
780 '6,3' => 'Cousine zweiten Grades dreimal entfernt',
781 '6,4' => 'Cousine dritten Grades zweimal entfernt',
782 '6,5' => 'Cousine vierten Grades einmal entfernt',
783 '6,6' => 'Cousine fuenften Grades',
784 '6,7' => 'Cousine fuenften Grades einmal entfernt',
785 '6,8' => 'Cousine fuenften Grades zweimal entfernt',
786 '6,9' => 'Cousine fuenften Grades dreimal entfernt',
787 '6,10' => 'Cousine fuenften Grades viermal entfernt',
788 '7,0' => 'Urururururgrossmutter',
789 '7,1' => 'Ururururgrosstante',
790 '7,2' => 'Cousine fuenfmal entfernt',
791 '7,3' => 'Cousine zweiten Grades viermal entfernt',
792 '7,4' => 'Cousine dritten Grades dreimal entfernt',
793 '7,5' => 'Cousine vierten Grades zweimal entfernt',
794 '7,6' => 'Cousine fuenften Grades einmal entfernt',
795 '7,7' => 'Cousine sechsten Grades',
796 '7,8' => 'Cousine sechsten Grades einmal entfernt',
797 '7,9' => 'Cousine sechsten Grades zweimal entfernt',
798 '7,10' => 'Cousine sechsten Grades dreimal entfernt',
799 '8,0' => 'Ururururururgrossmutter',
800 '8,1' => 'Urururururgrosstante',
801 '8,2' => 'Cousine sechsmal entfernt',
802 '8,3' => 'Cousine zweiten Grades fuenfmal entfernt',
803 '8,4' => 'Cousine dritten Grades viermal entfernt',
804 '8,5' => 'Cousine vierten Grades dreimal entfernt',
805 '8,6' => 'Cousine fuenften Grades zweimal entfernt',
806 '8,7' => 'Cousine sechsten Grades einmal entfernt',
807 '8,8' => 'Cousine siebten Grades',
808 '8,9' => 'Cousine siebten Grades einmal entfernt',
809 '8,10' => 'Cousine siebten Grades zweimal entfernt',
810 '9,0' => 'Urururururururgrossmutter',
811 '9,1' => 'Ururururururgrosstante',
812 '9,2' => 'Cousine siebenmal entfernt',
813 '9,3' => 'Cousine zweiten Grades sechsmal entfernt',
814 '9,4' => 'Cousine dritten Grades fuenfmal entfernt',
815 '9,5' => 'Cousine vierten Grades viermal entfernt',
816 '9,6' => 'Cousine fuenften Grades dreimal entfernt',
817 '9,7' => 'Cousine sechsten Grades zweimal entfernt',
818 '9,8' => 'Cousine siebten Grades einmal entfernt',
819 '9,9' => 'Cousine achten Grades',
820 '9,10' => 'Cousine achten Grades einmal entfernt',
821 '10,0' => 'Ururururururururgrossmutter',
822 '10,1' => 'Urururururururgrosstante',
823 '10,2' => 'Cousine achtmal entfernt',
824 '10,3' => 'Cousine zweiten Grades siebenmal entfernt',
825 '10,4' => 'Cousine dritten Grades sechsmal entfernt',
826 '10,5' => 'Cousine vierten Grades fuenfmal entfernt',
827 '10,6' => 'Cousine fuenften Grades viermal entfernt',
828 '10,7' => 'Cousine sechsten Grades dreimal entfernt',
829 '10,8' => 'Cousine siebten Grades zweimal entfernt',
830 '10,9' => 'Cousine achten Grades einmal entfernt',
831 '10,10' => 'Cousine neunten Grades',
832 '11,1' => 'achtens grosstante',
833 '12,1' => 'neuntens grosstante',
834 '13,1' => 'zehntens grosstante',
835 '14,1' => 'elftens grosstante',
836 '15,1' => 'zwoelftens grosstante',
837 '16,1' => 'dreizehntens grosstante',
838 '17,1' => 'vierzehntens grosstante',
839 '18,1' => 'fuenfzehntens grosstante',
840 );
841  
842 # ---------------------------------------------------------------------------
843 # Swiss German (de-CH) relationship tables
844 # Uses 'ss' instead of Eszett (\N{U+00DF}); Switzerland abolished ß in 1934
845 # ---------------------------------------------------------------------------
846  
847 7 Readonly::Hash my %DE_CH_MALE_RELATIONSHIPS => (
848 '0,0' => 'sich selbst',
849 '0,1' => 'Sohn',
850 '0,2' => 'Enkel',
851 '0,3' => 'Urenkel',
852 '0,4' => 'Ururenkel',
853 '0,5' => 'Urururenkel',
854 '0,6' => 'Ururururenkel',
855 '0,7' => 'Urururururenkel',
856 '0,8' => 'Ururururururenkel',
857 '0,9' => 'Urururururururenkel',
858 '0,10' => 'Ururururururururenkel',
859 '1,0' => 'Vater',
860 '1,1' => 'Bruder',
861 '1,2' => 'Neffe',
862 '1,3' => 'Grossneffe',
863 '1,4' => 'Urgrossneffe',
864 '1,5' => 'Ururgrossneffe',
865 '1,6' => 'Urururgrossneffe',
866 '1,7' => 'Ururururgrossneffe',
867 '1,8' => 'Urururururgrossneffe',
868 '1,9' => 'Ururururururgrossneffe',
869 '1,10' => 'Urururururururgrossneffe',
870 '2,0' => 'Grossvater',
871 '2,1' => 'Onkel',
872 '2,2' => 'Cousin',
873 '2,3' => 'Cousin einmal entfernt',
874 '2,4' => 'Cousin zweimal entfernt',
875 '2,5' => 'Cousin dreimal entfernt',
876 '2,6' => 'Cousin viermal entfernt',
877 '2,7' => 'Cousin fuenfmal entfernt',
878 '2,8' => 'Cousin sechsmal entfernt',
879 '2,9' => 'Cousin siebenmal entfernt',
880 '2,10' => 'Cousin achtmal entfernt',
881 '3,0' => 'Urgrossvater',
882 '3,1' => 'Grossonkel',
883 '3,2' => 'Cousin einmal entfernt',
884 '3,3' => 'Cousin zweiten Grades',
885 '3,4' => 'Cousin zweiten Grades einmal entfernt',
886 '3,5' => 'Cousin zweiten Grades zweimal entfernt',
887 '3,6' => 'Cousin zweiten Grades dreimal entfernt',
888 '3,7' => 'Cousin zweiten Grades viermal entfernt',
889 '3,8' => 'Cousin zweiten Grades fuenfmal entfernt',
890 '3,9' => 'Cousin zweiten Grades sechsmal entfernt',
891 '3,10' => 'Cousin zweiten Grades siebenmal entfernt',
892 '4,0' => 'Ururgrossvater',
893 '4,1' => 'Urgrossonkel',
894 '4,2' => 'Cousin zweimal entfernt',
895 '4,3' => 'Cousin zweiten Grades einmal entfernt',
896 '4,4' => 'Cousin dritten Grades',
897 '4,5' => 'Cousin dritten Grades einmal entfernt',
898 '4,6' => 'Cousin dritten Grades zweimal entfernt',
899 '4,7' => 'Cousin dritten Grades dreimal entfernt',
900 '4,8' => 'Cousin dritten Grades viermal entfernt',
901 '4,9' => 'Cousin dritten Grades fuenfmal entfernt',
902 '4,10' => 'Cousin dritten Grades sechsmal entfernt',
903 '5,0' => 'Urururgrossvater',
904 '5,1' => 'Ururgrossonkel',
905 '5,2' => 'Cousin dreimal entfernt',
906 '5,3' => 'Cousin zweiten Grades zweimal entfernt',
907 '5,4' => 'Cousin dritten Grades einmal entfernt',
908 '5,5' => 'Cousin vierten Grades',
909 '5,6' => 'Cousin vierten Grades einmal entfernt',
910 '5,7' => 'Cousin vierten Grades zweimal entfernt',
911 '5,8' => 'Cousin vierten Grades dreimal entfernt',
912 '5,9' => 'Cousin vierten Grades viermal entfernt',
913 '5,10' => 'Cousin vierten Grades fuenfmal entfernt',
914 '6,0' => 'Ururururgrossvater',
915 '6,1' => 'Urururgrossonkel',
916 '6,2' => 'Cousin viermal entfernt',
917 '6,3' => 'Cousin zweiten Grades dreimal entfernt',
918 '6,4' => 'Cousin dritten Grades zweimal entfernt',
919 '6,5' => 'Cousin vierten Grades einmal entfernt',
920 '6,6' => 'Cousin fuenften Grades',
921 '6,7' => 'Cousin fuenften Grades einmal entfernt',
922 '6,8' => 'Cousin fuenften Grades zweimal entfernt',
923 '6,9' => 'Cousin fuenften Grades dreimal entfernt',
924 '6,10' => 'Cousin fuenften Grades viermal entfernt',
925 '7,0' => 'Urururururgrossvater',
926 '7,1' => 'Ururururgrossonkel',
927 '7,2' => 'Cousin fuenfmal entfernt',
928 '7,3' => 'Cousin zweiten Grades viermal entfernt',
929 '7,4' => 'Cousin dritten Grades dreimal entfernt',
930 '7,5' => 'Cousin vierten Grades zweimal entfernt',
931 '7,6' => 'Cousin fuenften Grades einmal entfernt',
932 '7,7' => 'Cousin sechsten Grades',
933 '7,8' => 'Cousin sechsten Grades einmal entfernt',
934 '7,9' => 'Cousin sechsten Grades zweimal entfernt',
935 '7,10' => 'Cousin sechsten Grades dreimal entfernt',
936 '8,0' => 'Ururururururgrossvater',
937 '8,1' => 'Urururururgrossonkel',
938 '8,2' => 'Cousin sechsmal entfernt',
939 '8,3' => 'Cousin zweiten Grades fuenfmal entfernt',
940 '8,4' => 'Cousin dritten Grades viermal entfernt',
941 '8,5' => 'Cousin vierten Grades dreimal entfernt',
942 '8,6' => 'Cousin fuenften Grades zweimal entfernt',
943 '8,7' => 'Cousin sechsten Grades einmal entfernt',
944 '8,8' => 'Cousin siebten Grades',
945 '8,9' => 'Cousin siebten Grades einmal entfernt',
946 '8,10' => 'Cousin siebten Grades zweimal entfernt',
947 '9,0' => 'Urururururururgrossvater',
948 '9,1' => 'Ururururururgrossonkel',
949 '9,2' => 'Cousin siebenmal entfernt',
950 '9,3' => 'Cousin zweiten Grades sechsmal entfernt',
951 '9,4' => 'Cousin dritten Grades fuenfmal entfernt',
952 '9,5' => 'Cousin vierten Grades viermal entfernt',
953 '9,6' => 'Cousin fuenften Grades dreimal entfernt',
954 '9,7' => 'Cousin sechsten Grades zweimal entfernt',
955 '9,8' => 'Cousin siebten Grades einmal entfernt',
956 '9,9' => 'Cousin achten Grades',
957 '9,10' => 'Cousin achten Grades einmal entfernt',
958 '10,0' => 'Ururururururururgrossvater',
959 '10,1' => 'Urururururururgrossonkel',
960 '10,2' => 'Cousin achtmal entfernt',
961 '10,3' => 'Cousin zweiten Grades siebenmal entfernt',
962 '10,4' => 'Cousin dritten Grades sechsmal entfernt',
963 '10,5' => 'Cousin vierten Grades fuenfmal entfernt',
964 '10,6' => 'Cousin fuenften Grades viermal entfernt',
965 '10,7' => 'Cousin sechsten Grades dreimal entfernt',
966 '10,8' => 'Cousin siebten Grades zweimal entfernt',
967 '10,9' => 'Cousin achten Grades einmal entfernt',
968 '10,10' => 'Cousin neunten Grades',
969 '11,1' => 'achtens grossonkel',
970 '12,1' => 'neuntens grossonkel',
971 '13,1' => 'zehntens grossonkel',
972 '14,1' => 'elftens grossonkel',
973 '15,1' => 'zwoelftens grossonkel',
974 '16,1' => 'dreizehntens grossonkel',
975 '17,1' => 'vierzehntens grossonkel',
976 '18,1' => 'fuenfzehntens grossonkel',
977 );
978  
979 7 Readonly::Hash my %DE_CH_FEMALE_RELATIONSHIPS => (
980 '0,0' => 'sich selbst',
981 '0,1' => 'Tochter',
982 '0,2' => 'Enkelin',
983 '0,3' => 'Urenkelin',
984 '0,4' => 'Ururenkelin',
985 '0,5' => 'Urururenkelin',
986 '0,6' => 'Ururururenkelin',
987 '0,7' => 'Urururururenkelin',
988 '0,8' => 'Ururururururenkelin',
989 '0,9' => 'Urururururururenkelin',
990 '0,10' => 'Ururururururururenkelin',
991 '1,0' => 'Mutter',
992 '1,1' => 'Schwester',
993 '1,2' => 'Nichte',
994 '1,3' => 'Grossnichte',
995 '1,4' => 'Urgrossnichte',
996 '1,5' => 'Ururgrossnichte',
997 '1,6' => 'Urururgrossnichte',
998 '1,7' => 'Ururururgrossnichte',
999 '1,8' => 'Urururururgrossnichte',
1000 '1,9' => 'Ururururururgrossnichte',
1001 '1,10' => 'Urururururururgrossnichte',
1002 '2,0' => 'Grossmutter',
1003 '2,1' => 'Tante',
1004 '2,2' => 'Cousine',
1005 '2,3' => 'Cousine einmal entfernt',
1006 '2,4' => 'Cousine zweimal entfernt',
1007 '2,5' => 'Cousine dreimal entfernt',
1008 '2,6' => 'Cousine viermal entfernt',
1009 '2,7' => 'Cousine fuenfmal entfernt',
1010 '2,8' => 'Cousine sechsmal entfernt',
1011 '2,9' => 'Cousine siebenmal entfernt',
1012 '2,10' => 'Cousine achtmal entfernt',
1013 '3,0' => 'Urgrossmutter',
1014 '3,1' => 'Grosstante',
1015 '3,2' => 'Cousine einmal entfernt',
1016 '3,3' => 'Cousine zweiten Grades',
1017 '3,4' => 'Cousine zweiten Grades einmal entfernt',
1018 '3,5' => 'Cousine zweiten Grades zweimal entfernt',
1019 '3,6' => 'Cousine zweiten Grades dreimal entfernt',
1020 '3,7' => 'Cousine zweiten Grades viermal entfernt',
1021 '3,8' => 'Cousine zweiten Grades fuenfmal entfernt',
1022 '3,9' => 'Cousine zweiten Grades sechsmal entfernt',
1023 '3,10' => 'Cousine zweiten Grades siebenmal entfernt',
1024 '4,0' => 'Ururgrossmutter',
1025 '4,1' => 'Urgrosstante',
1026 '4,2' => 'Cousine zweimal entfernt',
1027 '4,3' => 'Cousine zweiten Grades einmal entfernt',
1028 '4,4' => 'Cousine dritten Grades',
1029 '4,5' => 'Cousine dritten Grades einmal entfernt',
1030 '4,6' => 'Cousine dritten Grades zweimal entfernt',
1031 '4,7' => 'Cousine dritten Grades dreimal entfernt',
1032 '4,8' => 'Cousine dritten Grades viermal entfernt',
1033 '4,9' => 'Cousine dritten Grades fuenfmal entfernt',
1034 '4,10' => 'Cousine dritten Grades sechsmal entfernt',
1035 '5,0' => 'Urururgrossmutter',
1036 '5,1' => 'Ururgrosstante',
1037 '5,2' => 'Cousine dreimal entfernt',
1038 '5,3' => 'Cousine zweiten Grades zweimal entfernt',
1039 '5,4' => 'Cousine dritten Grades einmal entfernt',
1040 '5,5' => 'Cousine vierten Grades',
1041 '5,6' => 'Cousine vierten Grades einmal entfernt',
1042 '5,7' => 'Cousine vierten Grades zweimal entfernt',
1043 '5,8' => 'Cousine vierten Grades dreimal entfernt',
1044 '5,9' => 'Cousine vierten Grades viermal entfernt',
1045 '5,10' => 'Cousine vierten Grades fuenfmal entfernt',
1046 '6,0' => 'Ururururgrossmutter',
1047 '6,1' => 'Urururgrosstante',
1048 '6,2' => 'Cousine viermal entfernt',
1049 '6,3' => 'Cousine zweiten Grades dreimal entfernt',
1050 '6,4' => 'Cousine dritten Grades zweimal entfernt',
1051 '6,5' => 'Cousine vierten Grades einmal entfernt',
1052 '6,6' => 'Cousine fuenften Grades',
1053 '6,7' => 'Cousine fuenften Grades einmal entfernt',
1054 '6,8' => 'Cousine fuenften Grades zweimal entfernt',
1055 '6,9' => 'Cousine fuenften Grades dreimal entfernt',
1056 '6,10' => 'Cousine fuenften Grades viermal entfernt',
1057 '7,0' => 'Urururururgrossmutter',
1058 '7,1' => 'Ururururgrosstante',
1059 '7,2' => 'Cousine fuenfmal entfernt',
1060 '7,3' => 'Cousine zweiten Grades viermal entfernt',
1061 '7,4' => 'Cousine dritten Grades dreimal entfernt',
1062 '7,5' => 'Cousine vierten Grades zweimal entfernt',
1063 '7,6' => 'Cousine fuenften Grades einmal entfernt',
1064 '7,7' => 'Cousine sechsten Grades',
1065 '7,8' => 'Cousine sechsten Grades einmal entfernt',
1066 '7,9' => 'Cousine sechsten Grades zweimal entfernt',
1067 '7,10' => 'Cousine sechsten Grades dreimal entfernt',
1068 '8,0' => 'Ururururururgrossmutter',
1069 '8,1' => 'Urururururgrosstante',
1070 '8,2' => 'Cousine sechsmal entfernt',
1071 '8,3' => 'Cousine zweiten Grades fuenfmal entfernt',
1072 '8,4' => 'Cousine dritten Grades viermal entfernt',
1073 '8,5' => 'Cousine vierten Grades dreimal entfernt',
1074 '8,6' => 'Cousine fuenften Grades zweimal entfernt',
1075 '8,7' => 'Cousine sechsten Grades einmal entfernt',
1076 '8,8' => 'Cousine siebten Grades',
1077 '8,9' => 'Cousine siebten Grades einmal entfernt',
1078 '8,10' => 'Cousine siebten Grades zweimal entfernt',
1079 '9,0' => 'Urururururururgrossmutter',
1080 '9,1' => 'Ururururururgrosstante',
1081 '9,2' => 'Cousine siebenmal entfernt',
1082 '9,3' => 'Cousine zweiten Grades sechsmal entfernt',
1083 '9,4' => 'Cousine dritten Grades fuenfmal entfernt',
1084 '9,5' => 'Cousine vierten Grades viermal entfernt',
1085 '9,6' => 'Cousine fuenften Grades dreimal entfernt',
1086 '9,7' => 'Cousine sechsten Grades zweimal entfernt',
1087 '9,8' => 'Cousine siebten Grades einmal entfernt',
1088 '9,9' => 'Cousine achten Grades',
1089 '9,10' => 'Cousine achten Grades einmal entfernt',
1090 '10,0' => 'Ururururururururgrossmutter',
1091 '10,1' => 'Urururururururgrosstante',
1092 '10,2' => 'Cousine achtmal entfernt',
1093 '10,3' => 'Cousine zweiten Grades siebenmal entfernt',
1094 '10,4' => 'Cousine dritten Grades sechsmal entfernt',
1095 '10,5' => 'Cousine vierten Grades fuenfmal entfernt',
1096 '10,6' => 'Cousine fuenften Grades viermal entfernt',
1097 '10,7' => 'Cousine sechsten Grades dreimal entfernt',
1098 '10,8' => 'Cousine siebten Grades zweimal entfernt',
1099 '10,9' => 'Cousine achten Grades einmal entfernt',
1100 '10,10' => 'Cousine neunten Grades',
1101 '11,1' => 'achtens grosstante',
1102 '12,1' => 'neuntens grosstante',
1103 '13,1' => 'zehntens grosstante',
1104 '14,1' => 'elftens grosstante',
1105 '15,1' => 'zwoelftens grosstante',
1106 '16,1' => 'dreizehntens grosstante',
1107 '17,1' => 'vierzehntens grosstante',
1108 '18,1' => 'fuenfzehntens grosstante',
1109 );
1110  
1111 # ---------------------------------------------------------------------------
1112 # Spanish relationship tables
1113 # ---------------------------------------------------------------------------
1114  
1115 7 Readonly::Hash my %ES_MALE_RELATIONSHIPS => (
1116 '0,0' => 'uno mismo',
1117 '0,1' => 'hijo',
1118 '0,2' => 'nieto',
1119 '0,3' => 'bisnieto',
1120 '0,4' => 'tataranieto',
1121 '0,5' => 'chozno',
1122 '0,6' => 'bisnieto quinto',
1123 '0,7' => 'descendiente lejano',
1124 '0,8' => 'descendiente lejano',
1125 '0,9' => 'descendiente lejano',
1126 '0,10' => 'descendiente lejano',
1127 '1,0' => 'padre',
1128 '1,1' => 'hermano',
1129 '1,2' => 'sobrino',
1130 '1,3' => 'sobrino nieto',
1131 '1,4' => 'sobrino bisnieto',
1132 '1,5' => 'sobrino tataranieto',
1133 '1,6' => 'sobrino lejano',
1134 '1,7' => 'sobrino lejano',
1135 '1,8' => 'sobrino lejano',
1136 '1,9' => 'sobrino lejano',
1137 '1,10' => 'sobrino lejano',
1138 '2,0' => 'abuelo',
1139 '2,1' => 'tio',
1140 '2,2' => 'primo hermano',
1141 '2,3' => 'primo hermano una vez removido',
1142 '2,4' => 'primo hermano dos veces removido',
1143 '2,5' => 'primo hermano tres veces removido',
1144 '2,6' => 'primo hermano cuatro veces removido',
1145 '2,7' => 'primo hermano cinco veces removido',
1146 '2,8' => 'primo hermano seis veces removido',
1147 '2,9' => 'primo hermano siete veces removido',
1148 '2,10' => 'primo hermano ocho veces removido',
1149 '3,0' => 'bisabuelo',
1150 '3,1' => 'tio abuelo',
1151 '3,2' => 'primo hermano una vez removido',
1152 '3,3' => 'primo segundo',
1153 '3,4' => 'primo segundo una vez removido',
1154 '3,5' => 'primo segundo dos veces removido',
1155 '3,6' => 'primo segundo tres veces removido',
1156 '3,7' => 'primo segundo cuatro veces removido',
1157 '3,8' => 'primo segundo cinco veces removido',
1158 '3,9' => 'primo segundo seis veces removido',
1159 '3,10' => 'primo segundo siete veces removido',
1160 '4,0' => 'tatarabuelo',
1161 '4,1' => 'tio bisabuelo',
1162 '4,2' => 'primo hermano dos veces removido',
1163 '4,3' => 'primo segundo una vez removido',
1164 '4,4' => 'primo tercero',
1165 '4,5' => 'primo tercero una vez removido',
1166 '4,6' => 'primo tercero dos veces removido',
1167 '4,7' => 'primo tercero tres veces removido',
1168 '4,8' => 'primo tercero cuatro veces removido',
1169 '4,9' => 'primo tercero cinco veces removido',
1170 '4,10' => 'primo tercero seis veces removido',
1171 '5,0' => 'chozno',
1172 '5,1' => 'tio tatarabuelo',
1173 '5,2' => 'primo hermano tres veces removido',
1174 '5,3' => 'primo segundo dos veces removido',
1175 '5,4' => 'primo tercero una vez removido',
1176 '5,5' => 'primo cuarto',
1177 '5,6' => 'primo cuarto una vez removido',
1178 '5,7' => 'primo cuarto dos veces removido',
1179 '5,8' => 'primo cuarto tres veces removido',
1180 '5,9' => 'primo cuarto cuatro veces removido',
1181 '5,10' => 'primo cuarto cinco veces removido',
1182 '6,0' => 'bisabuelo quinto',
1183 '6,1' => 'tio lejano',
1184 '6,2' => 'primo hermano cuatro veces removido',
1185 '6,3' => 'primo segundo tres veces removido',
1186 '6,4' => 'primo tercero dos veces removido',
1187 '6,5' => 'primo cuarto una vez removido',
1188 '6,6' => 'primo quinto',
1189 '6,7' => 'primo quinto una vez removido',
1190 '6,8' => 'primo quinto dos veces removido',
1191 '6,9' => 'primo quinto tres veces removido',
1192 '6,10' => 'primo quinto cuatro veces removido',
1193 '7,0' => 'antepasado lejano',
1194 '7,1' => 'tio lejano',
1195 '7,2' => 'primo hermano cinco veces removido',
1196 '7,3' => 'primo segundo cuatro veces removido',
1197 '7,4' => 'primo tercero tres veces removido',
1198 '7,5' => 'primo cuarto dos veces removido',
1199 '7,6' => 'primo quinto una vez removido',
1200 '7,7' => 'primo sexto',
1201 '7,8' => 'primo sexto una vez removido',
1202 '7,9' => 'primo sexto dos veces removido',
1203 '7,10' => 'primo sexto tres veces removido',
1204 '8,0' => 'antepasado lejano',
1205 '8,1' => 'tio lejano',
1206 '8,2' => 'primo hermano seis veces removido',
1207 '8,3' => 'primo segundo cinco veces removido',
1208 '8,4' => 'primo tercero cuatro veces removido',
1209 '8,5' => 'primo cuarto tres veces removido',
1210 '8,6' => 'primo quinto dos veces removido',
1211 '8,7' => 'primo sexto una vez removido',
1212 '8,8' => 'primo septimo',
1213 '8,9' => 'primo septimo una vez removido',
1214 '8,10' => 'primo septimo dos veces removido',
1215 '9,0' => 'antepasado lejano',
1216 '9,1' => 'tio lejano',
1217 '9,2' => 'primo hermano siete veces removido',
1218 '9,3' => 'primo segundo seis veces removido',
1219 '9,4' => 'primo tercero cinco veces removido',
1220 '9,5' => 'primo cuarto cuatro veces removido',
1221 '9,6' => 'primo quinto tres veces removido',
1222 '9,7' => 'primo sexto dos veces removido',
1223 '9,8' => 'primo septimo una vez removido',
1224 '9,9' => 'primo octavo',
1225 '9,10' => 'primo octavo una vez removido',
1226 '10,0' => 'antepasado lejano',
1227 '10,1' => 'tio lejano',
1228 '10,2' => 'primo hermano ocho veces removido',
1229 '10,3' => 'primo segundo siete veces removido',
1230 '10,4' => 'primo tercero seis veces removido',
1231 '10,5' => 'primo cuarto cinco veces removido',
1232 '10,6' => 'primo quinto cuatro veces removido',
1233 '10,7' => 'primo sexto tres veces removido',
1234 '10,8' => 'primo septimo dos veces removido',
1235 '10,9' => 'primo octavo una vez removido',
1236 '10,10' => 'primo noveno',
1237 '11,1' => 'tio lejano',
1238 '12,1' => 'tio lejano',
1239 '13,1' => 'tio lejano',
1240 '14,1' => 'tio lejano',
1241 '15,1' => 'tio lejano',
1242 '16,1' => 'tio lejano',
1243 '17,1' => 'tio lejano',
1244 '18,1' => 'tio lejano',
1245 );
1246  
1247 7 Readonly::Hash my %ES_FEMALE_RELATIONSHIPS => (
1248 '0,0' => 'una misma',
1249 '0,1' => 'hija',
1250 '0,2' => 'nieta',
1251 '0,3' => 'bisnieta',
1252 '0,4' => 'tataranieta',
1253 '0,5' => 'chozna',
1254 '0,6' => 'bisnieta quinta',
1255 '0,7' => 'descendiente lejana',
1256 '0,8' => 'descendiente lejana',
1257 '0,9' => 'descendiente lejana',
1258 '0,10' => 'descendiente lejana',
1259 '1,0' => 'madre',
1260 '1,1' => 'hermana',
1261 '1,2' => 'sobrina',
1262 '1,3' => 'sobrina nieta',
1263 '1,4' => 'sobrina bisnieta',
1264 '1,5' => 'sobrina tataranieta',
1265 '1,6' => 'sobrina lejana',
1266 '1,7' => 'sobrina lejana',
1267 '1,8' => 'sobrina lejana',
1268 '1,9' => 'sobrina lejana',
1269 '1,10' => 'sobrina lejana',
1270 '2,0' => 'abuela',
1271 '2,1' => 'tia',
1272 '2,2' => 'prima hermana',
1273 '2,3' => 'prima hermana una vez removida',
1274 '2,4' => 'prima hermana dos veces removida',
1275 '2,5' => 'prima hermana tres veces removida',
1276 '2,6' => 'prima hermana cuatro veces removida',
1277 '2,7' => 'prima hermana cinco veces removida',
1278 '2,8' => 'prima hermana seis veces removida',
1279 '2,9' => 'prima hermana siete veces removida',
1280 '2,10' => 'prima hermana ocho veces removida',
1281 '3,0' => 'bisabuela',
1282 '3,1' => 'tia abuela',
1283 '3,2' => 'prima hermana una vez removida',
1284 '3,3' => 'prima segunda',
1285 '3,4' => 'prima segunda una vez removida',
1286 '3,5' => 'prima segunda dos veces removida',
1287 '3,6' => 'prima segunda tres veces removida',
1288 '3,7' => 'prima segunda cuatro veces removida',
1289 '3,8' => 'prima segunda cinco veces removida',
1290 '3,9' => 'prima segunda seis veces removida',
1291 '3,10' => 'prima segunda siete veces removida',
1292 '4,0' => 'tatarabuela',
1293 '4,1' => 'tia bisabuela',
1294 '4,2' => 'prima hermana dos veces removida',
1295 '4,3' => 'prima segunda una vez removida',
1296 '4,4' => 'prima tercera',
1297 '4,5' => 'prima tercera una vez removida',
1298 '4,6' => 'prima tercera dos veces removida',
1299 '4,7' => 'prima tercera tres veces removida',
1300 '4,8' => 'prima tercera cuatro veces removida',
1301 '4,9' => 'prima tercera cinco veces removida',
1302 '4,10' => 'prima tercera seis veces removida',
1303 '5,0' => 'chozna',
1304 '5,1' => 'tia tatarabuela',
1305 '5,2' => 'prima hermana tres veces removida',
1306 '5,3' => 'prima segunda dos veces removida',
1307 '5,4' => 'prima tercera una vez removida',
1308 '5,5' => 'prima cuarta',
1309 '5,6' => 'prima cuarta una vez removida',
1310 '5,7' => 'prima cuarta dos veces removida',
1311 '5,8' => 'prima cuarta tres veces removida',
1312 '5,9' => 'prima cuarta cuatro veces removida',
1313 '5,10' => 'prima cuarta cinco veces removida',
1314 '6,0' => 'bisabuela quinta',
1315 '6,1' => 'tia lejana',
1316 '6,2' => 'prima hermana cuatro veces removida',
1317 '6,3' => 'prima segunda tres veces removida',
1318 '6,4' => 'prima tercera dos veces removida',
1319 '6,5' => 'prima cuarta una vez removida',
1320 '6,6' => 'prima quinta',
1321 '6,7' => 'prima quinta una vez removida',
1322 '6,8' => 'prima quinta dos veces removida',
1323 '6,9' => 'prima quinta tres veces removida',
1324 '6,10' => 'prima quinta cuatro veces removida',
1325 '7,0' => 'antepasada lejana',
1326 '7,1' => 'tia lejana',
1327 '7,2' => 'prima hermana cinco veces removida',
1328 '7,3' => 'prima segunda cuatro veces removida',
1329 '7,4' => 'prima tercera tres veces removida',
1330 '7,5' => 'prima cuarta dos veces removida',
1331 '7,6' => 'prima quinta una vez removida',
1332 '7,7' => 'prima sexta',
1333 '7,8' => 'prima sexta una vez removida',
1334 '7,9' => 'prima sexta dos veces removida',
1335 '7,10' => 'prima sexta tres veces removida',
1336 '8,0' => 'antepasada lejana',
1337 '8,1' => 'tia lejana',
1338 '8,2' => 'prima hermana seis veces removida',
1339 '8,3' => 'prima segunda cinco veces removida',
1340 '8,4' => 'prima tercera cuatro veces removida',
1341 '8,5' => 'prima cuarta tres veces removida',
1342 '8,6' => 'prima quinta dos veces removida',
1343 '8,7' => 'prima sexta una vez removida',
1344 '8,8' => 'prima septima',
1345 '8,9' => 'prima septima una vez removida',
1346 '8,10' => 'prima septima dos veces removida',
1347 '9,0' => 'antepasada lejana',
1348 '9,1' => 'tia lejana',
1349 '9,2' => 'prima hermana siete veces removida',
1350 '9,3' => 'prima segunda seis veces removida',
1351 '9,4' => 'prima tercera cinco veces removida',
1352 '9,5' => 'prima cuarta cuatro veces removida',
1353 '9,6' => 'prima quinta tres veces removida',
1354 '9,7' => 'prima sexta dos veces removida',
1355 '9,8' => 'prima septima una vez removida',
1356 '9,9' => 'prima octava',
1357 '9,10' => 'prima octava una vez removida',
1358 '10,0' => 'antepasada lejana',
1359 '10,1' => 'tia lejana',
1360 '10,2' => 'prima hermana ocho veces removida',
1361 '10,3' => 'prima segunda siete veces removida',
1362 '10,4' => 'prima tercera seis veces removida',
1363 '10,5' => 'prima cuarta cinco veces removida',
1364 '10,6' => 'prima quinta cuatro veces removida',
1365 '10,7' => 'prima sexta tres veces removida',
1366 '10,8' => 'prima septima dos veces removida',
1367 '10,9' => 'prima octava una vez removida',
1368 '10,10' => 'prima novena',
1369 '11,1' => 'tia lejana',
1370 '12,1' => 'tia lejana',
1371 '13,1' => 'tia lejana',
1372 '14,1' => 'tia lejana',
1373 '15,1' => 'tia lejana',
1374 '16,1' => 'tia lejana',
1375 '17,1' => 'tia lejana',
1376 '18,1' => 'tia lejana',
1377 );
1378  
1379 # ---------------------------------------------------------------------------
1380 # Farsi (Persian) relationship tables
1381 # Values use \N{U+XXXX} Unicode escapes (right-to-left script)
1382 # Side-specific keys: "s1,s2,paternal" / "s1,s2,maternal"
1383 # ---------------------------------------------------------------------------
1384  
1385 7 Readonly::Hash my %FA_MALE_RELATIONSHIPS => (
1386 '0,0' => "\N{U+062E}\N{U+0648}\N{U+062F}",
1387 '0,1' => "\N{U+067E}\N{U+0633}\N{U+0631}",
1388 '0,2' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1389 '0,3' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1390 '0,4' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1391 '0,5' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1392 '0,6' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1393 '0,7' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1394 '0,8' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1395 '0,9' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1396 '0,10' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1397 '1,0' => "\N{U+067E}\N{U+062F}\N{U+0631}",
1398 '1,1' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}",
1399 '1,2' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1400 '1,3' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1401 '1,4' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1402 '1,5' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1403 '1,6' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1404 '1,7' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1405 '1,8' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1406 '1,9' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1407 '1,10' => "\N{U+0628}\N{U+0631}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1408 '2,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1409 '2,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1410 '2,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1411 '2,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1412 '2,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1413 '2,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1414 '2,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1415 '2,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1416 '2,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1417 '2,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1418 '2,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1419 '3,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1420 '3,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1421 '3,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1422 '3,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1423 '3,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1424 '3,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1425 '3,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1426 '3,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1427 '3,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1428 '3,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1429 '3,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1430 '4,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1431 '4,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1432 '4,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1433 '4,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1434 '4,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1435 '4,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1436 '4,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1437 '4,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1438 '4,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1439 '4,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1440 '4,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1441 '5,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1442 '5,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1443 '5,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1444 '5,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1445 '5,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1446 '5,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1447 '5,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1448 '5,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1449 '5,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1450 '5,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1451 '5,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1452 '6,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1453 '6,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1454 '6,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1455 '6,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1456 '6,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1457 '6,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1458 '6,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1459 '6,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1460 '6,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1461 '6,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1462 '6,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1463 '7,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1464 '7,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1465 '7,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1466 '7,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1467 '7,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1468 '7,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1469 '7,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1470 '7,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1471 '7,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1472 '7,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1473 '7,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1474 '8,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1475 '8,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1476 '8,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1477 '8,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1478 '8,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1479 '8,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1480 '8,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1481 '8,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1482 '8,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1483 '8,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1484 '8,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1485 '9,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1486 '9,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1487 '9,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1488 '9,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1489 '9,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1490 '9,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1491 '9,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1492 '9,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1493 '9,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1494 '9,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1495 '9,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1496 '10,0' => "\N{U+067E}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1497 '10,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1498 '10,2' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1499 '10,3' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1500 '10,4' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1501 '10,5' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1502 '10,6' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1503 '10,7' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1504 '10,8' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1505 '10,9' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1506 '10,10' => "\N{U+067E}\N{U+0633}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1507 '11,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1508 '12,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1509 '13,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1510 '14,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1511 '15,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1512 '16,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1513 '17,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1514 '18,1' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1515 '2,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1516 '2,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1517 '3,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1518 '3,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1519 '4,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1520 '4,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1521 '5,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1522 '5,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1523 '6,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1524 '6,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1525 '7,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1526 '7,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1527 '8,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1528 '8,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1529 '9,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1530 '9,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1531 '10,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1532 '10,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1533 '11,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1534 '11,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1535 '12,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1536 '12,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1537 '13,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1538 '13,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1539 '14,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1540 '14,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1541 '15,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1542 '15,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1543 '16,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1544 '16,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1545 '17,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1546 '17,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1547 '18,1,maternal' => "\N{U+062F}\N{U+0627}\N{U+06CC}\N{U+06CC}",
1548 '18,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0648}",
1549 );
1550  
1551 7 Readonly::Hash my %FA_FEMALE_RELATIONSHIPS => (
1552 '0,0' => "\N{U+062E}\N{U+0648}\N{U+062F}",
1553 '0,1' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}",
1554 '0,2' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1555 '0,3' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1556 '0,4' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1557 '0,5' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1558 '0,6' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1559 '0,7' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1560 '0,8' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1561 '0,9' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1562 '0,10' => "\N{U+0646}\N{U+0648}\N{U+0647}",
1563 '1,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}",
1564 '1,1' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}",
1565 '1,2' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1566 '1,3' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1567 '1,4' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1568 '1,5' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1569 '1,6' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1570 '1,7' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1571 '1,8' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1572 '1,9' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1573 '1,10' => "\N{U+062E}\N{U+0648}\N{U+0627}\N{U+0647}\N{U+0631}\N{U+0632}\N{U+0627}\N{U+062F}\N{U+0647}",
1574 '2,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1575 '2,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1576 '2,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1577 '2,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1578 '2,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1579 '2,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1580 '2,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1581 '2,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1582 '2,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1583 '2,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1584 '2,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1585 '3,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1586 '3,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1587 '3,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1588 '3,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1589 '3,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1590 '3,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1591 '3,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1592 '3,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1593 '3,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1594 '3,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1595 '3,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1596 '4,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1597 '4,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1598 '4,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1599 '4,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1600 '4,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1601 '4,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1602 '4,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1603 '4,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1604 '4,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1605 '4,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1606 '4,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1607 '5,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1608 '5,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1609 '5,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1610 '5,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1611 '5,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1612 '5,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1613 '5,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1614 '5,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1615 '5,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1616 '5,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1617 '5,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1618 '6,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1619 '6,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1620 '6,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1621 '6,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1622 '6,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1623 '6,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1624 '6,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1625 '6,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1626 '6,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1627 '6,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1628 '6,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1629 '7,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1630 '7,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1631 '7,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1632 '7,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1633 '7,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1634 '7,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1635 '7,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1636 '7,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1637 '7,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1638 '7,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1639 '7,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1640 '8,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1641 '8,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1642 '8,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1643 '8,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1644 '8,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1645 '8,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1646 '8,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1647 '8,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1648 '8,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1649 '8,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1650 '8,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1651 '9,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1652 '9,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1653 '9,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1654 '9,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1655 '9,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1656 '9,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1657 '9,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1658 '9,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1659 '9,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1660 '9,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1661 '9,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1662 '10,0' => "\N{U+0645}\N{U+0627}\N{U+062F}\N{U+0631}\N{U+0628}\N{U+0632}\N{U+0631}\N{U+06AF}",
1663 '10,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1664 '10,2' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1665 '10,3' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1666 '10,4' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1667 '10,5' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1668 '10,6' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1669 '10,7' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1670 '10,8' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1671 '10,9' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1672 '10,10' => "\N{U+062F}\N{U+062E}\N{U+062A}\N{U+0631}\N{U+0639}\N{U+0645}\N{U+0648}",
1673 '11,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1674 '12,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1675 '13,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1676 '14,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1677 '15,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1678 '16,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1679 '17,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1680 '18,1' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1681 '2,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1682 '2,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1683 '3,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1684 '3,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1685 '4,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1686 '4,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1687 '5,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1688 '5,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1689 '6,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1690 '6,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1691 '7,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1692 '7,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1693 '8,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1694 '8,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1695 '9,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1696 '9,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1697 '10,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1698 '10,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1699 '11,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1700 '11,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1701 '12,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1702 '12,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1703 '13,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1704 '13,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1705 '14,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1706 '14,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1707 '15,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1708 '15,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1709 '16,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1710 '16,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1711 '17,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1712 '17,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1713 '18,1,maternal' => "\N{U+062E}\N{U+0627}\N{U+0644}\N{U+0647}",
1714 '18,1,paternal' => "\N{U+0639}\N{U+0645}\N{U+0647}",
1715 );
1716  
1717 # ---------------------------------------------------------------------------
1718 # Classical Latin relationship tables
1719 # Many step-count combinations have no classical term; those keys are absent.
1720 # Side-specific keys: "s1,s2,paternal" / "s1,s2,maternal"
1721 # ---------------------------------------------------------------------------
1722  
1723 7 Readonly::Hash my %LA_MALE_RELATIONSHIPS => (
1724 '0,0' => 'ipse',
1725 '0,1' => 'filius',
1726 '0,2' => 'nepos',
1727 '0,3' => 'pronepos',
1728 '0,4' => 'abnepos',
1729 '0,5' => 'atnepos',
1730 '0,6' => 'trinepos',
1731 '1,0' => 'pater',
1732 '1,1' => 'frater',
1733 '1,2' => 'nepos',
1734 '2,0' => 'avus',
1735 '2,1' => 'patruus',
1736 '2,2' => 'consobrinus',
1737 '3,0' => 'proavus',
1738 '3,1' => 'patruus magnus',
1739 '4,0' => 'abavus',
1740 '4,1' => 'patruus maior',
1741 '5,0' => 'atavus',
1742 '5,1' => 'patruus maximus',
1743 '6,0' => 'tritavus',
1744 '2,1,maternal' => 'avunculus',
1745 '2,1,paternal' => 'patruus',
1746 '2,2,maternal' => 'consobrinus',
1747 '2,2,paternal' => 'patruelis',
1748 '3,1,maternal' => 'avunculus magnus',
1749 '3,1,paternal' => 'patruus magnus',
1750 '4,1,maternal' => 'avunculus maior',
1751 '4,1,paternal' => 'patruus maior',
1752 '5,1,maternal' => 'avunculus maximus',
1753 '5,1,paternal' => 'patruus maximus',
1754 );
1755  
1756 7 Readonly::Hash my %LA_FEMALE_RELATIONSHIPS => (
1757 '0,0' => 'ipsa',
1758 '0,1' => 'filia',
1759 '0,2' => 'neptis',
1760 '0,3' => 'proneptis',
1761 '0,4' => 'abneptis',
1762 '0,5' => 'atneptis',
1763 '0,6' => 'trineptis',
1764 '1,0' => 'mater',
1765 '1,1' => 'soror',
1766 '1,2' => 'neptis',
1767 '2,0' => 'avia',
1768 '2,1' => 'amita',
1769 '2,2' => 'consobrina',
1770 '3,0' => 'proavia',
1771 '3,1' => 'amita magna',
1772 '4,0' => 'abavia',
1773 '4,1' => 'amita maior',
1774 '5,0' => 'atavia',
1775 '5,1' => 'amita maxima',
1776 '6,0' => 'tritavia',
1777 '2,1,maternal' => 'matertera',
1778 '2,1,paternal' => 'amita',
1779 '2,2,maternal' => 'consobrina',
1780 '2,2,paternal' => 'patruelis',
1781 '3,1,maternal' => 'matertera magna',
1782 '3,1,paternal' => 'amita magna',
1783 '4,1,maternal' => 'matertera maior',
1784 '4,1,paternal' => 'amita maior',
1785 '5,1,maternal' => 'matertera maxima',
1786 '5,1,paternal' => 'amita maxima',
1787 );
1788  
1789 # ---------------------------------------------------------------------------
1790 # Master dispatch table: lang -> sex -> hashref
1791 # ---------------------------------------------------------------------------
1792  
1793 7 Readonly::Hash my %RELATIONSHIP_TABLES => (
1794 'en' => {
1795 $SEX_MALE => \%EN_MALE_RELATIONSHIPS,
1796 $SEX_FEMALE => \%EN_FEMALE_RELATIONSHIPS,
1797 }, 'es' => {
1798 $SEX_MALE => \%ES_MALE_RELATIONSHIPS,
1799 $SEX_FEMALE => \%ES_FEMALE_RELATIONSHIPS,
1800 }, 'fa' => {
1801 $SEX_MALE => \%FA_MALE_RELATIONSHIPS,
1802 $SEX_FEMALE => \%FA_FEMALE_RELATIONSHIPS,
1803 }, 'fr' => {
1804 $SEX_MALE => \%FR_MALE_RELATIONSHIPS,
1805 $SEX_FEMALE => \%FR_FEMALE_RELATIONSHIPS,
1806 }, 'de' => {
1807 $SEX_MALE => \%DE_MALE_RELATIONSHIPS,
1808 $SEX_FEMALE => \%DE_FEMALE_RELATIONSHIPS,
1809 }, 'de_ch' => {
1810 $SEX_MALE => \%DE_CH_MALE_RELATIONSHIPS,
1811 $SEX_FEMALE => \%DE_CH_FEMALE_RELATIONSHIPS,
1812 }, 'la' => {
1813 $SEX_MALE => \%LA_MALE_RELATIONSHIPS,
1814 $SEX_FEMALE => \%LA_FEMALE_RELATIONSHIPS,
1815 },
1816 );
1817 # ---------------------------------------------------------------------------
1818 # Constructor
1819 # ---------------------------------------------------------------------------
1820  
1821 =head1 NAME
1822  
1823 Genealogy::Relationship::Name - Return a genealogical relationship name from step counts
1824  
1825 =head1 VERSION
1826  
1827 Version 0.04
1828  
1829 =head1 SYNOPSIS
1830  
1831 use Genealogy::Relationship::Name;
1832  
1833 my $namer = Genealogy::Relationship::Name->new();
1834  
1835 my $name = $namer->name(
1836 steps_to_ancestor => 2,
1837 steps_from_ancestor => 3,
1838 sex => 'F',
1839 );
1840 # Returns 'first cousin once-removed'
1841  
1842 # With language
1843 my $name_fr = $namer->name(
1844 steps_to_ancestor => 2,
1845 steps_from_ancestor => 2,
1846 sex => 'M',
1847 language => 'fr',
1848 );
1849 # Returns 'cousin germain'
1850  
1851 =head1 DESCRIPTION
1852  
1853 C<Genealogy::Relationship::Name> maps a pair of step-counts (person A to common
1854 ancestor, common ancestor to person B) plus the sex of person B and an optional
1855 language code to a human-readable relationship name string.
1856  
1857 The relationship tables were originally embedded in the C<gedcom> and C<ged2site>
1858 distributions inside C<Gedcom::Individual::relationship_up()>; this module
1859 extracts them into a reusable, installable CPAN distribution.
1860  
1861 Supported languages: C<en> (English, default), C<de> (German), C<de_ch> (Swiss
1862 German), C<es> (Spanish), C<fa> (Farsi/Persian), C<fr> (French), C<la> (Classical Latin).
1863  
1864 =head1 METHODS
1865  
1866 =head2 new
1867  
1868 Constructor. Creates and returns a blessed C<Genealogy::Relationship::Name>
1869 object.
1870  
1871 =head3 PURPOSE
1872  
1873 Initialises the object with optional configuration: a default language for
1874 subsequent C<name()> calls, and an optional L<Log::Abstraction> object to
1875 use as the error logger. Configuration may also be loaded from an INI-style
1876 file via L<Object::Configure>.
1877  
1878 =head3 ARGUMENTS
1879  
1880 =over 4
1881  
1882 =item C<language> (string, optional)
1883  
1884 Default BCP-47 language tag (primary subtag only) for all C<name()> calls
1885 on this object. Supported values: C<en> (default), C<de>, C<de_ch> (Swiss
1886 German), C<es>, C<fa> (Farsi/Persian), C<fr>, C<la> (Classical Latin). May be
1887 overridden per-call by passing C<language> to C<name()>.
1888  
1889 =item C<logger>
1890  
1891 A pre-constructed loggining object. When a required argument is
1892 passed as C<undef> to C<name()>, the error is reported via
1893 C<< $logger->error($msg) >> rather than C<croak>. This allows
1894 programs to route errors through their own
1895 infrastructure with full C<ctx> context.
1896  
1897 See L<Log::Abstraction> and the L</CONFIGURATION> section for the
1898 recommended construction pattern.
1899  
1900 =item C<config_file> (string, optional)
1901  
1902 Path to an INI-style configuration file processed by L<Object::Configure>.
1903 Any keys it sets may be overridden by arguments passed directly to C<new()>.
1904  
1905 =back
1906  
1907 =head3 RETURNS
1908  
1909 A blessed C<Genealogy::Relationship::Name> object.
1910  
1911 =head3 SIDE EFFECTS
1912  
1913 Calls L<Object::Configure> C<configure()>, which may read from a
1914 configuration file on disk if C<config_file> is supplied or if a default
1915 configuration file exists for the class.
1916  
1917 =head3 NOTES
1918  
1919 L<Object::Configure> cannot handle object or coderef values (it treats
1920 unknown scalar values as configuration file paths). The C<logger> key is
1921 therefore stashed before the C<configure()> call and restored afterward.
1922 Any future object-valued constructor arguments must follow the same pattern.
1923  
1924 The C<language> argument is stored without validation at construction time.
1925 Validation (regex match + table lookup) occurs at the first C<name()> call.
1926 An invalid language passed to C<new()> will therefore not be detected until
1927 C<name()> is called. To catch the error earlier, call
1928 C<< $namer->name(..., language => $lang) >> with a test pair immediately
1929 after construction.
1930  
1931 =head3 EXAMPLE
1932  
1933 use Genealogy::Relationship::Name;
1934 use Log::Abstraction;
1935  
1936 # Minimal construction
1937 my $namer = Genealogy::Relationship::Name->new();
1938  
1939 # With a default language
1940 my $namer_fr = Genealogy::Relationship::Name->new(language => 'fr');
1941  
1942 # With a Log::Abstraction logger
1943 my $la = Log::Abstraction->new(
1944 logger => sub {
1945 my $args = shift;
1946 my $msg = $args->{ctx}
1947 ? $args->{ctx}->as_string() . ': ' . join('', @{$args->{message}})
1948 : join('', @{$args->{message}});
1949 complain({ message => $msg, person => $args->{ctx} });
1950 },
1951 ctx => $individual,
1952 );
1953 my $namer = Genealogy::Relationship::Name->new(language => 'en', logger => $la);
1954  
1955 =head3 API SPECIFICATION
1956  
1957 =head4 Input
1958  
1959 {
1960 language => { type => 'string', regex => qr/^(?:en|de(?:[-_]ch)?|es|fa|fr|la)/, optional => 1 },
1961 logger => { type => 'object', optional => 1 },
1962 }
1963  
1964 =head4 Output
1965  
1966 {
1967 type => 'object',
1968 class => 'Genealogy::Relationship::Name',
1969 }
1970  
1971 =cut
1972  
1973 129 ▶sub new {
Subroutine new: called CC=4 SCAR=13.9
Pod documented
1974 # Create and return a blessed object
1975 129 my $class = shift;
1976  
1977 # Handle hash or hashref arguments
1978 129 my $params = Params::Get::get_params(undef, \@_);
1979  
1980 # Stash keys that are coderefs or objects before passing to Object::Configure,
1981 # which cannot handle them (it treats unknown scalar values as config file paths)
1982 129 my %stash;
1983 129 for my $key (qw(logger)) {
1984 129 ▶ next unless exists $params->{$key};
Branch: 1 branch
BranchTrueFalseTotal
unless exists $params->{$key} 118 11 129
1985 11 $stash{$key} = delete $params->{$key};
1986 }
1987  
1988 # Load the configuration from a config file, if provided
1989 129 $params = Object::Configure::configure($class, $params);
1990  
1991 # Restore the stashed coderefs and objects after configure()
1992 129 @{$params}{keys %stash} = values %stash;
1993  
1994 # Bless and return the object; logger/ctx/level keys from params
1995 # are stored directly and accessed via $self->{logger} etc.
1996 return bless {
1997 # Store any constructor-time config for Object::Configure compatibility
1998 129 ▶ %{$params},
Condition33%1/3
ref $class || $class
l!l&&r!l&&!r
01290
MC/DC0%0/2
ref $class || $class
ref $class $class
Truth table33%1/3
A || B
A= ref $classB= $class
ABresult
1X1
011
000
1999 }, ref($class) || $class;
2000 }
2001  
2002 =head2 name
2003  
2004 Returns the name of the relationship between person A and person B.
2005  
2006 Given the number of steps from person A up to the nearest common ancestor
2007 (C<steps_to_ancestor>) and the number of steps from that ancestor down to
2008 person B (C<steps_from_ancestor>), plus the sex of person B and a language
2009 code, returns a localised relationship-name string.
2010  
2011 =head3 ARGUMENTS
2012  
2013 =over 4
2014  
2015 =item C<steps_to_ancestor> (integer, required)
2016  
2017 Number of generational steps from person A up to the common ancestor.
2018 Must be a non-negative integer. Zero means person A I<is> the ancestor.
2019  
2020 =item C<steps_from_ancestor> (integer, required)
2021  
2022 Number of generational steps from the common ancestor down to person B.
2023 Must be a non-negative integer.
2024  
2025 =item C<sex> (string, required)
2026  
2027 Sex of person B. Must be C<'M'> (male) or C<'F'> (female).
2028  
2029 =item C<language> (string, optional)
2030  
2031 BCP-47-style language tag.
2032 Supported values: C<en> (default), C<de>, C<de_ch> (Swiss German, may also
2033 be supplied as the BCP-47 tag C<de-CH>), C<es>, C<fa>, C<fr>, C<la>.
2034  
2035 Note: C<fa> (Farsi/Persian) values are stored as C<\N{U+XXXX}> Unicode
2036 escapes and render correctly in any Unicode-aware context. C<la>
2037 (Classical Latin) has a sparse table; many step-count combinations have
2038 no classical term and return C<undef>.
2039  
2040 =item C<person> (object, optional)
2041  
2042 An optional person object (e.g. a C<Gedcom::Individual> instance) passed
2043 through to the error handler when an error occurs. Takes priority over the
2044 C<ctx> set at construction time. The handler receives it as C<ctx> (logger
2045 path) or C<person> (on_error path), matching the C<complain()> interface
2046 in C<gedcom>/C<ged2site>.
2047  
2048 =item C<family_side> (string, optional)
2049  
2050 C<'paternal'> or C<'maternal'>. Used by languages that distinguish the
2051 paternal from the maternal line for the same step counts. Currently
2052 relevant for:
2053  
2054 =over 4
2055  
2056 =item * C<la> (Latin) -- uncle/aunt (C<patruus>/C<avunculus>,
2057 C<amita>/C<matertera>) and first cousin (C<patruelis>/C<consobrinus>)
2058  
2059 =item * C<fa> (Farsi) -- uncle (C<amoo>/C<dayi>) and aunt
2060 (C<ammeh>/C<khaleh>)
2061  
2062 =back
2063  
2064 When C<family_side> is not supplied, the table falls back to the generic
2065 (non-side-specific) entry for that step-count pair.
2066  
2067 =back
2068  
2069 =head3 RETURNS
2070  
2071 A string containing the relationship name, or C<undef> if the combination
2072 is not found in the lookup table.
2073  
2074 =head3 EXAMPLE
2075  
2076 my $namer = Genealogy::Relationship::Name->new();
2077  
2078 # Person A is the grandparent (2 steps up) of the common ancestor,
2079 # and person B is 3 steps below the ancestor; B is female => first cousin once-removed
2080 my $rel = $namer->name(
2081 steps_to_ancestor => 2,
2082 steps_from_ancestor => 3,
2083 sex => 'F',
2084 );
2085  
2086 =head3 API SPECIFICATION
2087  
2088 =head4 Input
2089  
2090 {
2091 steps_to_ancestor => { type => 'integer', minimum => 0 },
2092 steps_from_ancestor => { type => 'integer', minimum => 0 },
2093 sex => { type => 'string', memberof => ['M', 'F'] },
2094 language => { type => 'string', regex => qr/^(?:en|de(?:[-_]ch)?|es|fa|fr|la)/, optional => 1 },
2095 # person is handled before validate_strict (PVS infers constraints from objects)
2096 family_side => { type => 'string', memberof => ['paternal','maternal'], optional => 1 },
2097 }
2098  
2099 =head4 Output
2100  
2101 {
2102 type => 'string',
2103 optional => 1, # undef when the combination is not tabulated
2104 }
2105  
2106 =cut
2107  
2108 1580 ▶sub name {
Subroutine name: called CC=12 SCAR=24.9
Pod documented
2109 1580 my $self = shift;
2110  
2111 # Validate and extract the remaining parameters; capture the return value
2112 1580 ▶ my $args = Params::Validate::Strict::validate_strict(
Condition100%2/2
Params::Get::get_params(undef, \@_) || {}
l!l
15791
MC/DC100%1/1
Params::Get::get_params(undef, \@_) || {}
Params::Get::get_params(undef, \@_)
Truth table100%2/2
A
A= Params::Get::get_params(undef, \@_)
Aresult
11
00
2113 args => Params::Get::get_params(undef, \@_) || {},
2114 schema => {
2115 steps_to_ancestor => { type => 'integer', minimum => 0 },
2116 steps_from_ancestor => { type => 'integer', minimum => 0 },
2117 sex => { type => 'string', memberof => ['M', 'F'] },
2118 language => { type => 'string', regex => qr/^(?:en|de(?:[-_]ch)?|es|fa|fr|la)/, optional => 1 },
2119 person => { type => 'object', optional => 1 },
2120 family_side => { type => 'string', memberof => ['paternal','maternal'],
2121 optional => 1 },
2122 }
2123 );
2124  
2125 # person is extracted early so it can be forwarded to the logger on error;
2126 # it overrides the ctx set at construction time per the POD contract
2127 1550 my $person = $args->{person};
2128 1550 my $family_side = $args->{family_side};
2129  
2130 # Validate required args; undef means the caller explicitly passed undef
2131 # (distinct from omitting the arg), so report via logger if set, then croak
2132 1550 foreach my $arg (qw(steps_to_ancestor steps_from_ancestor sex)) {
2133 4629 ▶ next if defined $args->{$arg};
Branch: 1 branch
BranchTrueFalseTotal
if defined $args->{$arg} 4618 11 4629
2134 11 ▶ if(my $logger = $self->{logger}) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $logger = $self->{"logger"}) 11 0 11
2135 # Pass person as ctx so caller's complain() handler can attach it
2136 11 ▶ my @ctx = defined $person ? (ctx => $person) : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $person ? : 3 8 11
2137 11 $logger->error("$arg not given", @ctx);
2138 }
2139 11 croak("$arg not given");
2140 }
2141 1539 my $steps1 = $args->{steps_to_ancestor};
2142 1539 my $steps2 = $args->{steps_from_ancestor};
2143 1539 my $sex = $args->{sex};
2144  
2145 # Fall back to constructor default or hard default if no per-call language given
2146 1539 ▶ my $lang = lc($args->{language} // $self->{language} // $DEFAULT_LANGUAGE);
Condition83%5/6
($args->{"language"} // $self->{"language"}) // $DEFAULT_LANGUAGE
l!l&&r!l&&!r
30612330
$args->{"language"} // $self->{"language"}
l!l&&r!l&&!r
294121233
MC/DC0%0/3
($args->{"language"} // $self->{"language"}) // $DEFAULT_LANGUAGE
$args->{"language"} $self->{"language"} $DEFAULT_LANGUAGE
Truth table75%3/4
A // B // C
A= $args->{"language"}B= $self->{"language"}C= $DEFAULT_LANGUAGE
ABCresult
1XX1
01X1
0011
0000
2147  
2148 # Swiss German (de-CH) maps to its own table before subtag stripping,
2149 # because it uses 'ss' where standard German uses Eszett
2150 1539 ▶ if($lang eq 'de-ch') {
Branch: 1 branch
BranchTrueFalseTotal
if ($lang eq 'de-ch') { } 14 1525 1539
2151 14 $lang = 'de_ch';
2152 } else {
2153 # Strip any region subtag (e.g. 'en-GB' -> 'en') after lowercasing
2154 1525 ($lang) = split /-/, $lang;
2155 }
2156  
2157 # Build lookup key from the two step counts; try side-specific key first
2158 # for languages that distinguish paternal/maternal (Latin, Farsi)
2159 1539 my $key = "${steps1},${steps2}";
2160 1539 ▶ my $side_key = defined($family_side) ? "${key},${family_side}" : undef;
Branch: 1 branch
BranchTrueFalseTotal
defined $family_side ? : 19 1520 1539
2161  
2162 # Retrieve the correct gender-specific table for the chosen language
2163 1539 my $table = $RELATIONSHIP_TABLES{$lang}{$sex};
2164  
2165 # Prefer side-specific entry when family_side is given; fall back to generic key
2166 my $result = (defined($side_key) && exists $table->{$side_key})
2167 ? $table->{$side_key}
2168 1539 ▶ : $table->{$key};
Branch: 1 branch
BranchTrueFalseTotal
defined $side_key && exists $table->{$side_key} ? : 17 1522 1539
Condition100%3/3
defined $side_key and exists $table->{$side_key}
!ll&&!rl&&r
1520217
MC/DC100%2/2
defined $side_key and exists $table->{$side_key}
defined $side_key exists $table->{$side_key}
Truth table100%3/3
A and B
A= defined $side_keyB= exists $table->{$side_key}
ABresult
0X0
100
111
2169  
2170 1539 return $result;
2171 }
2172  
2173 # ---------------------------------------------------------------------------
2174 # Public method: supported_languages()
2175 # ---------------------------------------------------------------------------
2176  
2177 =head2 supported_languages
2178  
2179 Returns a sorted list of the language codes that the module supports.
2180  
2181 =head3 PURPOSE
2182  
2183 Allows calling code to enumerate the languages available for C<name()>
2184 without hard-coding them.
2185  
2186 =head3 ARGUMENTS
2187  
2188 None.
2189  
2190 =head3 RETURNS
2191  
2192 A list (or array-ref in scalar context) of language code strings,
2193 currently C<('de', 'de_ch', 'en', 'es', 'fa', 'fr', 'la')>.
2194  
2195 =head3 EXAMPLE
2196  
2197 my @langs = $namer->supported_languages();
2198 # ( 'de', 'de_ch', 'en', 'es', 'fa', 'fr', 'la' )
2199  
2200 =head3 API SPECIFICATION
2201  
2202 =head4 Input
2203  
2204 {} # no arguments
2205  
2206 =head4 Output
2207  
2208 {
2209 type => ARRAYREF, # sorted list of language codes
2210 }
2211  
2212 =cut
2213  
2214 12 ▶sub supported_languages {
Subroutine supported_languages: called CC=2 SCAR=6.9
Pod documented
2215 12 my $self = shift;
2216  
2217 # Return the sorted set of keys from the master dispatch table
2218 12 my @langs = sort keys %RELATIONSHIP_TABLES;
2219 12 ▶ return wantarray ? @langs : \@langs;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 8 4 12
2220 }
2221  
2222 # ---------------------------------------------------------------------------
2223 # Public method: known_sexes()
2224 # ---------------------------------------------------------------------------
2225  
2226 =head2 known_sexes
2227  
2228 Returns the list of sex codes accepted by C<name()>.
2229  
2230 =head3 PURPOSE
2231  
2232 Documents and exposes the set of valid C<sex> values so that callers can
2233 validate their own input without duplicating knowledge.
2234  
2235 =head3 ARGUMENTS
2236  
2237 None.
2238  
2239 =head3 RETURNS
2240  
2241 A list (or array-ref in scalar context) of valid sex code strings: C<('F', 'M')>.
2242  
2243 =head3 SIDE EFFECTS
2244  
2245 None.
2246  
2247 =head3 EXAMPLE
2248  
2249 my @sexes = $namer->known_sexes();
2250 # ( 'F', 'M' )
2251  
2252 =head3 API SPECIFICATION
2253  
2254 =head4 Input
2255  
2256 {} # no arguments
2257  
2258 =head4 Output
2259  
2260 {
2261 type => ARRAYREF,
2262 }
2263  
2264 =cut
2265  
2266 10 ▶sub known_sexes {
Subroutine known_sexes: called CC=2 SCAR=6.9
Pod documented
2267 10 my $self = shift;
2268  
2269 # Return the two valid sex codes in sorted order
2270 10 my @sexes = sort($SEX_FEMALE, $SEX_MALE);
2271 10 ▶ return wantarray ? @sexes : \@sexes;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 6 4 10
2272 }
2273  
2274 7 1;
2275  
2276 __END__
↑ Summary