Skip to content

Commit

Permalink
feat(endonyms): English name should always be present
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Sep 23, 2022
1 parent 9e9a840 commit 8a5cf94
Show file tree
Hide file tree
Showing 3 changed files with 447 additions and 275 deletions.
238 changes: 134 additions & 104 deletions src/data/aliases/country-endonyms.psv
Original file line number Diff line number Diff line change
@@ -1,202 +1,232 @@
85632727|Netherlands
85632733|Somalia
1|Null Island
1108955785|Socialist Federal Republic of Yugoslavia
1108955787|Socialist Federal Republic of Yugoslavia
1108955789|Kingdom of Yugoslavia
1126113567|Socialist Federal Republic of Yugoslavia
1108955783|Federal Republic of Yugoslavia
421185849|Kazakhstan
85632423|Guadeloupe
85632523|Mayotte
85632531|Martinique
421202109|San Marino
421188081|Sudan
85632233|French Guiana
85632351|Reunion
421180189|Somalia
421166797|Georgia
85632495|Indian Ocean Territories
85632371|Saint Pierre and Miquelon
85632509|Philippines|República de Filipinas
85633051|Schweiz|Schwyz|Suisse|Svizzera
85633293|México
85633745|România
85633051|Schweiz|Schwyz|Suisse|Svizzera|Switzerland
85633293|Mexico|México
85633745|Romania|România
85632343|Andorra
85633143|Finland|Suomi
85632757|Guiné-Bissau
85633105|Česko
85632757|Guinea-Bissau|Guiné-Bissau
85633105|Czechia|Česko
85632793|Australia
85632573|الامارات
85633279|Latvija
85633341|Noreg|Norge
85632573|United Arab Emirates|الامارات
85633279|Latvia|Latvija
85633341|Noreg|Norge|Norway
85632755|Fiji|Viti
85632191|العراق
85632627|ليبيا
85632191|Iraq|العراق
85632627|Libya|ليبيا
85633763|San Marino
85632295|Aruba
85632679|موريتانيا‎
85633739|فلسطين
85632513|Тоҷикистон
85632465|नेपाल
85632679|Mauritania|موريتانيا‎
85633739|Palestine|فلسطين
85632293|Thailand
85632513|Tajikistan|Тоҷикистон
85632465|Nepal|नेपाल
85632431|Federated States of Micronesia
85632749|Brunei
85633285|Monaco
102312305|Organización de las Naciones Unidas|United Nations|Организация Объединённых Наций|الأمم المتحدة
85633345|Aotearoa|New Zealand
85632623|Bolivia|Puliwya|Wuliwya
85632365|Senegaal|Sénégal
85632365|Senegaal|Senegal|Sénégal
85633331|Malta
85633249|Ísland
85632433|Ayiti|Haïti
85633249|Iceland|Ísland
85632433|Ayiti|Haiti|Haïti
85632235|Botswana
85632455|Tonga
85632241|ປະເທດລາວ
85632405|Shqipëria
85632241|Laos|ປະເທດລາວ
85632405|Albania|Shqipëria
85632661|Seychelles
85632703|Tunisie|تونس
85632703|Tunisia|Tunisie|تونس
85632591|Solomon Islands
85632765|São Tomé e Príncipe
85632179|Panamá
85632765|Sao Tome and Principe|São Tomé e Príncipe
85632179|Panama|Panamá
85632215|Jamaica
85632339|The Bahamas
85632671|Türkmenistan
85632207|عمان
85632671|Turkmenistan|Türkmenistan
85632207|Oman|عمان
85632593|Jersey
85632609|Bosna i Hercegovina|Босна и Херцеговина
85632253|السعودية
85632609|Bosna i Hercegovina|Bosnia and Herzegovina|Босна и Херцеговина
85632253|Saudi Arabia|السعودية
85632529|Antigua and Barbuda
85632303|Rwanda
85632483|Hong Kong S.A.R.|香港
85632229|افغانستان
85633253|Italia
85632499|اليمن
85632229|Afghanistan|افغانستان
85633253|Italia|Italy
85632499|Yemen|اليمن
85632383|Malawi|Malaŵi
85632401|الكويت
85632583|Timor-Leste|Timór Lorosa'e
85632305|ދިވެހިރާއްޖެ
85633121|Danmark
85632379|Soomaaliya|الصومال‎
85632393|Türkiye
85633789|Sverige
85632401|Kuwait|الكويت
85632583|East Timor|Timor-Leste|Timór Lorosa'e
85632305|Maldives|ދިވެހިރާއްޖެ
85633121|Danmark|Denmark
85632379|Somalia|Soomaaliya|الصومال‎
85632393|Turkey|Türkiye
85633789|Sverige|Sweden
85632245|Cameroon|Cameroun
85633111|Deutschland
85633111|Deutschland|Germany
85632511|Uruguay
85632521|Perú|Piruw
85632521|Peru|Perú|Piruw
85632271|Trinidad and Tobago
85633267|Liachtaschta|Liechtenstein
85632347|Papua New Guinea|Papua Niugini
85632185|Sint Maarten|Sint Maarten (land)
85632313|இலங்கை|ශ්‍රී ලංකාව
85632313|Sri Lanka|இலங்கை|ශ්‍රී ලංකාව
85632545|El Salvador
85632997|Belgien|Belgique|België
85633237|Magyarország
85632761|Киргизия|Кыргызстан
85632167|البحرين
85632997|Belgien|Belgique|Belgium|België
85633237|Hungary|Magyarország
85632761|Kyrgyzstan|Киргизия|Кыргызстан
85632167|Bahrain|البحرين
85632249|Liberia
85632285|Burundi|Uburundi
85632359|ព្រះរាជាណាចក្រកម្ពុជា
85632325|Tchad|تشاد
85632259|Comores|جزر القمر
85632359|Cambodia|ព្រះរាជាណាចក្រកម្ពុជា
85632325|Chad|Tchad|تشاد
85632259|Comores|Comoros|جزر القمر
85632551|Saint Kitts and Nevis
85632647|Togo
85632643|République démocratique du Congo
85632643|Democratic Republic of Congo|République démocratique du Congo
85632173|Lesotho
85632227|Tanzania
85632391|Ködörösêse tî Bêafrîka|République centrafricaine
85632713|República Dominicana
85632391|Central African Republic|Ködörösêse tî Bêafrîka|République centrafricaine
85632713|Dominican Republic|República Dominicana
85632635|Umbuso weSwatini|eSwatini
85632739|Malaysia
85633813|South Africa
85632451|Algérie|الجزائر
85632541|République du Congo
85632729|Moçambique
85632451|Algeria|Algérie|الجزائر
85632541|Congo|République du Congo
85632729|Mozambique|Moçambique
85632625|Uganda
85632559|Zambia
85632261|Ecuador|Ikwadur
85632535|Namibia|Namibië
85632243|Zimbabwe
85632189|Ghana
85633135|Eesti
85633135|Eesti|Estonia
85632203|Indonesia
85632605|Singapore|Singapura|சிங்கப்பூர்|新加坡
85632269|Niger
85632781|Eritrea|إريتريا|ኤርትራ
85632281|Angola
85633723|Polska
85633723|Poland|Polska
85632603|The Gambia
85632691|Guinée
85632691|Guinea|Guinée
85632735|Nigeria|Nàìjíríà
85632287|Guinea Ecuatorial|Guinée équatoriale
85632287|Equatorial Guinea|Guinea Ecuatorial|Guinée équatoriale
85632331|Belau|Palau
85632299|قطر
85632299|Qatar|قطر
85632355|Paraguay|Paraguái
85632257|ኢትዮጵያ
85632257|Ethiopia|ኢትዮጵያ
85632599|Nicaragua
85632645|Oʻzbekiston
85633337|Nederland
85632161|Macau|澳门
85632441|Curaçao|Pais Kòrsou
85632645|Oʻzbekiston|Uzbekistan
85633337|Nederland|Netherlands
85632161|Macau|Macau S.A.R.|澳门
85632441|Curacao|Curaçao|Pais Kòrsou
85632681|Samoa|Sāmoa
85632263|Ripablik blong Vanuatu|Vanuatu
85632439|Монгол улс
85632439|Mongolia|Монгол улс
85632675|Cuba
85632763|Việt Nam
85632181|မြန်မာနိုင်ငံ
85632763|Vietnam|Việt Nam
85632181|Myanmar|မြန်မာနိုင်ငံ
85632467|Sierra Leone
85632487|Costa Rica
85632785|Österreich
85633769|Slovensko
85632785|Austria|Österreich
85633769|Slovakia|Slovensko
85632223|Madagascar|Madagasikara
85632569|Saint Vincent and the Grenadines
85632663|Majõl|Marshall Islands
85633259|Kosova|Република Косово
85632429|日本
85633259|Kosova|Kosovo|Република Косово
85632429|Japan|日本
85632213|Burkina Faso
85633269|Lietuva
85633269|Lietuva|Lithuania
85632319|Djibouti|جيبوتي
85632475|বাংলাদেশ
85632475|Bangladesh|বাংলাদেশ
85633041|Canada
85633793|United States
85633171|Ελλάδα
85633001|България
85632667|Црна Гора
85633171|Greece|Ελλάδα
85633001|Bulgaria|България
85632667|Montenegro|Црна Гора
85633159|United Kingdom
85632397|Guyana
85632639|조선민주주의인민공화국
85632693|Maroc|المغرب
85632361|ایران
85632425|الأردن
85632773|Հայաստան
85632639|North Korea|조선민주주의인민공화국
85632693|Maroc|Morocco|المغرب
85633057|Chile
85632361|Iran|ایران
85632425|Jordan|الأردن
85632773|Armenia|Հայաստան
85632751|Sudan|السودان
85632533|لبنان
85632171|འབྲུག་ཡུལ་
85632307|Казахстан|Қазақстан
85632533|Lebanon|لبنان
85632171|Bhutan|འབྲུག་ཡུལ་
85632307|Kazakhstan|Казахстан|Қазақстан
85632323|Honduras
85632657|South Sudan
85632407|Gabon
85633009|Brasil
85633009|Brasil|Brazil
85633147|France
85632685|Россия
85632231|한국
85632717|Azərbaycan
85633287|Republica Moldova
85633163|Sakartvelo
85632685|Russia|Россия
85632231|South Korea|한국
85632717|Azerbaijan|Azərbaycan
85633287|Moldova|Republica Moldova
85633163|Georgia|Sakartvelo
85632571|Belize
85632329|Kenya
85632413|Syrie|سوريا
85632247|Bénin
85633805|Украина|Україна
85632413|Syria|Syrie|سوريا
85632247|Benin|Bénin
85633805|Ukraine|Украина|Україна
85632659|Pakistan|پاکستان
85632581|مصر
85632315|ישראל|إسرائيل
85633217|Kalaallit Nunaat
85632581|Egypt|مصر
85632315|Israel|ישראל|إسرائيل
85633217|Greenland|Kalaallit Nunaat
85632505|Argentina
85632385|Guatemala
85633735|Portugal
85633129|España
85633129|España|Spain
85632469|India|भारत
85632317|Venezuela
85632519|Colombia
85632373|Македонија
85632449|Côte d'Ivoire
85632437|Kıbrıs Cumhuriyeti|Κύπρος
85632373|North Macedonia|Македонија
85632695|China
85632449|Côte d'Ivoire|Ivory Coast
85632437|Cyprus|Kıbrıs Cumhuriyeti|Κύπρος
85632747|Naoero|Nauru
85632491|Barbados
85632443|Suriname
85632503|Dominica
85632357|Maurice|Mauritius
1729945891|Northern Cyprus
1729989201|Siachen Glacier
1729945893|Spratly Islands
85632335|Grenada
85632369|St. Lucia
85632607|Tuvalu
85632709|Kiribati|Ribaberiki Kiribati
85632547|Guernsey
85633275|Luxembourg|Luxemburg|Lëtzebuerg (Land)
85632217|Western Sahara
85632715|Antarctica
85632461|Isle of Man|Mannin
85632721|Cabo Verde
85632721|Cabo Verde|Cape Verde
85632553|Mali
85632187|Vatican City
85633241|Ireland|Éire
85633755|Србија
85633229|Hrvatska
85633779|Slovenija
85632395|Беларусь|Белоруссия
85632403|台灣
85633755|Serbia|Србија
85633229|Croatia|Hrvatska
85633779|Slovenia|Slovenija
85632395|Belarus|Беларусь|Белоруссия
85632403|Taiwan|台灣
2 changes: 1 addition & 1 deletion src/data/aliases/extract-aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ stream.bsdtar.extract('-f', BUNDLE_FILE, '--include', '*.geojson', '--exclude',
const endonyms = _.pickBy(
_.get(feature, 'properties'),
(v, k) => {
// if (k === `name:eng_x_preferred`) { return true }
if (k === `name:eng_x_preferred`) { return true; }
const matches = k.match(/name:([a-z]{3})_x_preferred/);
if (!matches) { return false; }
return _.get(languageMap, countryID, []).includes(matches[1]);
Expand Down
Loading

0 comments on commit 8a5cf94

Please sign in to comment.