Move the birth number into its own table under sex, drop the sexed US titles, and split the import helper by content
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
"format": "{prefix}{first} {last}",
|
||||
"first": "{.first-name.name}",
|
||||
"last": "{.last-name.name}",
|
||||
"prefix": ["", { "format": "{title} ", "title": ["Dr", "Miss", "Mr", "Mrs", "Ms", "Mx", "Prof"], "weight": 0.1 }],
|
||||
"prefix": ["", { "format": "{title} ", "title": ["Dr", "Mx", "Prof"], "weight": 0.1 }],
|
||||
"sex": "{.sex.name}"
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{ "format": "{number}", "rows": "birth-number.tsv", "parent": "sex" }
|
||||
@@ -0,0 +1,3 @@
|
||||
sex number
|
||||
f 238
|
||||
m 239
|
||||
|
@@ -1 +1 @@
|
||||
"{date(1930-01-01,2025-12-31,'060102')}-{.sex.birth-number}{luhn()}"
|
||||
"{date(1930-01-01,2025-12-31,'060102')}-{.birth-number.number}{luhn()}"
|
||||
|
||||
@@ -1 +1 @@
|
||||
"{date(1930-01-01,2025-12-31,'0601')}{int(61,88)}-{.sex.birth-number}{luhn()}"
|
||||
"{date(1930-01-01,2025-12-31,'0601')}{int(61,88)}-{.birth-number.number}{luhn()}"
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
code name birth-number
|
||||
f kvinna 238
|
||||
m man 239
|
||||
code name
|
||||
f kvinna
|
||||
m man
|
||||
|
||||
|
Reference in New Issue
Block a user