Skip to content

Commit

Permalink
Add sex to names (#467)
Browse files Browse the repository at this point in the history
* Add name "Jesus"

* Fix ISO language code

Use "cmn" for Chinese.

* Lowercase name

* Update 'Michael'

Add aliases and translation.
Merge "mitch" with "michael" because mitch is an alias for Michael.
Delete "mitch.json."

* Add gender to name file specs

Add gender to file specs in readme.md. Add tests to validate each JSON's
gender value.

* Update michael.json

Resolve merge conflict by using main repo's version of JSON file.

* Make sex field optional for now

Comment out tests for sex field. They are failing because names in
collection don't have that field. Issue #443

* Add tests to check validity of gender

Tests run only on name files that contain a gender value. Issue #443
Update README.md to describe sex field as optional.

* Update gender tests - Issue #443

Sex field now requires a value to pass test. Also:
- Add error messages to explain why a test failed.
- Remove test for checking whether a sex value is a string. It's
duplicating part of the "should have correct structure" test.

* Add sex to names - Issue #456

* Add sex to names - Issue #456
  • Loading branch information
CodeWritingCow authored and bluzi committed Nov 10, 2017
1 parent 32d9737 commit aca21bc
Show file tree
Hide file tree
Showing 71 changed files with 142 additions and 71 deletions.
3 changes: 2 additions & 1 deletion collection/aaron.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"heb": "אהרן",
"jpn": "アーロン",
"rus": "аарон"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/abraham.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"por": "abrão",
"aao": "ابراهيم",
"spa": "abraham"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/adam.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
"deu": "adam",
"aze": "adəm",
"tha": "อดัม"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/agnes.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"jpn": "アグネス",
"heb": "אגנס",
"fra": "agnès"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/alan.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
],
"translations": {
"fra": "alain"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/alex.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"spa": "alejo",
"lat": "alexius",
"heb": "אלכס"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/alexander.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"ita": "alessandro",
"tha": "อเล็กซานเดอร์",
"heb": "אלכסנדר"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/ali.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"heb": "עלי",
"tur": "ali",
"rus": "али"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/ana.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
],
"translations": {
"rup": "aha"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/andy.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"fas": "اَندی",
"heb": "אנדי",
"zho": "安迪"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/anna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"meaning": "Anna is a Latin form of the Hebrew name Hannah, meaning \"favor\" or \"grace\" or \"beautiful\".",
"translations": {
"ces": "anna"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/benedict.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"ces": "benedikt",
"rus": "бенедикт",
"por": "benedito"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/benjamin.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"pol": "benjamin",
"por": "benjamin",
"tha": "เบญจมิน"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/blake.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"ukr": "блейк",
"cmn": "布雷克",
"aze": "bleyk"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/bonnie.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
],
"translations": {
"fra": "bonne"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/brian.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"bryan"
],
"translations": {
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/bruno.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"rus": "бруно",
"aze": "bruno",
"tha": "บรูโน่้"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/carlos.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"jpn": "カーロス",
"por": "carlos",
"rus": "карлос"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/charles.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"hrv": "karlo",
"ita": "carlo",
"cym": "siarl"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/christian.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
],
"translations": {
"heb": "נוצרי"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/christine.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"por": "cristina",
"rus": "кристина",
"spa": "christina"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/clayton.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"translations": {
"spa": "clayton",
"rus": "клэйтон"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/cody.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"aze": "kodi",
"jpn": "コーディ",
"rus": "коди"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/dai.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"meaning": "Japanese masculine name meaning \"great\", or \"big\"",
"translations": {
"jpn": ""
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/daniel.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"hye": "դանիել",
"tha": "แดเนียล"

}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/darko.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"mkd": "дарко",
"rus": "дарко",
"tha": "ดาโก้"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/dave.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"pol": "dawid",
"heb": "דויד",
"rus": "дэйв"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/davison.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
],
"translations": {
"fra": "davison"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/denis.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"ita": "denis",
"fra": "denys",
"por": "denis"
}
},
"sex": "m"
}

3 changes: 2 additions & 1 deletion collection/dennise.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
],
"translations": {
"por": "denise"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/diana.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"dee"
],
"translations": {
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/diego.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"rus": "диего",
"tha": "ดีเอโก",
"por": "diego"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/duncan.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"translations": {
"ghc": "donnchadh",
"rus": "дункан"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/edward.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"swe": "edvard",
"dan": "edvard",
"rus": "эдвард"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/elijah.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"mkd": "илија",
"rus": "илья",
"spa": "elias"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/elizabeth.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"translations": {
"heb": "אליזבת",
"jpn": "エリザベス"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/emily.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"fas": "اِمیلی",
"tha": "เอมิลี่",
"spa": "emilia"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/emma.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"ema",
"ima"
],
"translations": {}
"translations": {},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/evan.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"meaning": "A name of Welsh origin, a form of the name \"John\", meaning \"Yahweh is Gracious\".",
"translations": {
"hye": "יְהוֹחָנָן"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/fabio.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"translations": {
"spa": "fábio",
"por": "fábio"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/gabriel.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"deu": "gabriel",
"aze": "cəbrayıl",
"pol": "gabriel"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/gabrielle.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
],
"translations": {
"heb": "גבריאל"
}
},
"sex": "f"
}
3 changes: 2 additions & 1 deletion collection/harry.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"meaning": "English for \"Rules the Home\"",
"translations": {
"rus": "гарри"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/haseeb.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"meaning": "Means \"noble\", \"respected\", or \"reckoner\" in Arabic.",
"translations": {
"ara": "حسيب"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/ian.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"fra": "yan",
"deu": "jan",
"rus": "ян"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/igor.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"pol": "igor",
"hye": "իգոր",
"por": "igor"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/immanuel.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
],
"translations": {
"heb": "עמנואל"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/ivan.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"ukr": "іван",
"fas": "ایوان",
"spa": "iván"
}
},
"sex": "m"
}
3 changes: 2 additions & 1 deletion collection/jack.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
],
"translations": {
"rus": "джек"
}
},
"sex": "m"
}
Loading

0 comments on commit aca21bc

Please sign in to comment.