Include lexicon in API Taxa all_names search

Currently the API taxa endpoint returns the locale with each name when all_names=true, this is okay if the name is in one of the ~30 site translated languages (plus a few extra). But, for the other +400-600(?) lexicons it returns ‘und’ making it difficult to determine the language.

Would it be possible to include the lexicon for each name returned? This would be useful for finding duplicate names, names with missing lexicons (this thread) and names in specific languages (comments here and here).

For example searching Birds (taxon_id=3) returns 99 names, 42 of these are ‘und’. A simpler example for a single species:
https://api.inaturalist.org/v1/taxa?taxon_id=8211&all_names=true

{
  "total_results": 1,
  "page": 1,
  "per_page": 30,
  "results": [
	{
	  ...
	  
	  "names": [
		{
		  "is_valid": true,
		  "name": "Laniarius atrococcineus",
		  "position": 0,
		  "locale": "sci"
		},
	
	    ...
	  
		{
		  "is_valid": true,
		  "name": "Kgaragoba",
		  "position": 12,
		  "locale": "und"
		},
		{
		  "is_valid": true,
		  "name": "Hvidbåndet Gonolek",
		  "position": 13,
		  "locale": "da"
		}
	  ],
	  
	  ...
	  
	}
  ]
}

In the example above the name Kgaragoba would be returned with the lexicon Setswana:

	    ...
		{
		  "is_valid": true,
		  "name": "Kgaragoba",
		  "position": 12,
		  "locale": "und",
		  "lexicon":"Setswana"
		},	  
	    ...

I don’t know if this will work for your particular needs, but you can get the lexicon in a different place:

https://www.inaturalist.org/taxa/8211.json

@jwidness thanks, yes I am aware they are accessible via the other API. For the case when looking for missing lexicons, in Mammals for example, using this feature would take 56 requests or ~1 minute to complete, using the original API would take +11000 requests or +3 hours, at the recommended rate of 1 request per second.

If I was looking for an anwer for your questions I should use the download DWCA and use the tutorial https://forum.inaturalist.org/t/using-sql-to-query-inats-dwca-taxonomy-export/29377/18