Thanks for the links @pisum, it helps to see where the names are coming from. I guess we can close this bug.
For example, lets take Aardvark:
[
{
"id": 2260017,
"name": "Ant Bear",
"is_valid": true,
"lexicon": "English",
"taxon_id": 47062,
"created_at": "2020-10-05T14:02:25.399+02:00",
"updated_at": "2020-10-05T14:02:25.399+02:00",
"creator_id": 1653038,
"position": 26,
"parameterized_lexicon": "english",
"place_taxon_names": [
{
"id": 224739,
"place_id": 6986,
"taxon_name_id": 2260017,
"position": 0
},
{
"id": 224738,
"place_id": 69020,
"taxon_name_id": 2260017,
"position": 0
}
]
},
{
"id": 2053884,
"name": "Earth-hog",
"is_valid": true,
"lexicon": "English",
"taxon_id": 47062,
"created_at": "2020-04-24T15:44:09.291+02:00",
"updated_at": "2020-04-24T15:44:09.291+02:00",
"creator_id": 1653038,
"position": 23,
"parameterized_lexicon": "english",
"place_taxon_names": [
{
"id": 169597,
"place_id": 6986,
"taxon_name_id": 2053884,
"position": 0
}
]
},
{
"id": 100710,
"name": "Aardvark",
"is_valid": true,
"lexicon": "English",
"taxon_id": 47062,
"created_at": "2010-11-26T11:36:12.000+02:00",
"updated_at": "2019-06-08T04:16:01.147+02:00",
"creator_id": 1,
"position": 0,
"parameterized_lexicon": "english",
"place_taxon_names": []
},
{
"id": 130889,
"name": "Antbear",
"is_valid": true,
"lexicon": "English",
"taxon_id": 47062,
"created_at": "2011-05-18T05:04:00.000+02:00",
"updated_at": "2019-06-08T04:16:01.135+02:00",
"creator_id": null,
"position": 1,
"parameterized_lexicon": "english",
"place_taxon_names": []
},
{
"id": 1545153,
"name": "Cape Anteater",
"is_valid": true,
"lexicon": "English",
"taxon_id": 47062,
"created_at": "2019-04-08T13:45:05.167+02:00",
"updated_at": "2019-04-08T13:45:05.167+02:00",
"creator_id": 516268,
"position": 9,
"parameterized_lexicon": "english",
"place_taxon_names": []
},
]
Interestingly the website always shows me “Aardvark” (https://www.inaturalist.org/taxa/47062-Orycteropus-afer) and no matter whether I choose Southern Africa, South Africa or leave the country empty I see the same thing.
From the taxon_names API call above we see that Aardvark is at position 0 and not linked to a country. However South Africa (6986) has two names linked: “Ant Bear” at position 26 and “Earth-hog” at position 23. So I guess position 23 wins since it is lower. (Lets not get into why iNat and SANBI can’t seem to get the common names loaded for SA, I have no idea why it’s proven to be so difficult.)
To summarize the above:
- It seems the species_counts API call is doing the correct thing and returning the lowest priority name for the place. I’ll try and flag the incorrect taxa I see and hope a curator can fix it while we wait for proper common names to be loaded for all SA species (but by now I’m not holding my breath).
- I don’t know why the website doesn’t also show “Earth-hog”.
PS.
Just a reminder from my earlier response: I can’t use the place_id parameter to get the conservation_status field in the response because it throws away threatened species. Luckily preferred_place_id seems to do the same without throwing away the obscured observations, but the common names populated on iNat are bad.