Categorize gender Q2449503

This commit is contained in:
Joshua Ramon Enslin 2024-03-09 22:49:38 +01:00
parent 3c43a3f2d3
commit 6af51323e7
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -876,13 +876,14 @@ final class NodaWikidataFetcher {
$wikidata_gender_id = $data['claims']['P21']['0']['mainsnak']['datavalue']['value']['id'];
switch ($wikidata_gender_id) {
case "Q6581097": // male
case "Q44148": //male organism
case "Q6581097": // male
case "Q44148": // male organism
case "Q2449503": // transgender man
$wikidata_gender = "male";
break;
case "Q6581072":
case "Q1052281": // transgender female
case "Q43445": // female organism
case "Q1052281": // transgender female
case "Q43445": // female organism
$wikidata_gender = "female";
break;
case "Q48270":