There are too many languages in the world!
And that is not a bad situations to be in!
But we should identifiers that are less ambiguous
As of 2020, the standard to refer to is ISO-639-3 (part 3).
Because Wikipedia said the recent drafts are still incomplete.
Official Site: SIL International: https://iso639-3.sil.org/
Download codes from https://iso639-3.sil.org/code_tables/download_tables
curl https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab > iso-639-3.tsv
curl https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3_Name_Index.tab > iso-639-3-names.tsv
Official site: The Library of Congress: https://www.loc.gov/standards/iso639-2/
curl https://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt > iso-639-2.tsv