Skip to content

Fix country data inconsistencies: official names, borders, SubRegions#67

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/check-country-inconsistencies
Draft

Fix country data inconsistencies: official names, borders, SubRegions#67
Copilot wants to merge 2 commits intomainfrom
copilot/check-country-inconsistencies

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

Systematic audit of all 249 countries against the mledoze/countries reference dataset and internal border symmetry checks. Found and corrected inconsistencies across official names, border countries, and sub-region classifications.

Official name fixes

  • BL: "Collectivity of Saint BarthélemySaint Barthélemy" → removed duplicate text
  • KN: "...Nevisa""...Nevis" (trailing typo)
  • NL: "Netherlands""Kingdom of the Netherlands"
  • BQ: "Caribbean Netherlands""Bonaire, Sint Eustatius and Saba"

Border corrections

  • CN: Added missing NP (Nepal)
  • IN: Removed AF, LK (no land borders — Afghanistan via disputed territory, Sri Lanka is an island)
  • LK: Removed IN (island)
  • CY: Removed GB (island — UK sovereign bases are not ISO border countries)
  • SH: Cleared all borders (remote island territory erroneously listed AR, BR, CL, PY, PE)
  • EG, IL, JO: Added PS (Palestine)
  • AL, ME, MK, RS: Added XK (Kosovo)
  • TD: Added SD (Sudan) alongside existing SS (South Sudan)
  • SS: Added TD (Chad) — border symmetry fix

SubRegion updates

  • Added SoutheastEurope and CentralEurope enum values to align with UN M49 standard
  • → SoutheastEurope: AL, BA, BG, HR, ME, MK, RO, RS
  • → CentralEurope: AT, CZ, HU, PL, SI, SK
  • CY: EasternEurope → SouthernEurope
  • Fixed SouthernAfrica Description attribute: "SouthernAfrica""Southern Africa"

All 37 existing tests pass.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

… SubRegion corrections

- Fix BL (Saint Barthélemy): remove duplicate text in OfficialName
- Fix KN (Saint Kitts and Nevis): remove extra 'a' in OfficialName
- Fix NL (Netherlands): OfficialName to "Kingdom of the Netherlands"
- Fix BQ (Caribbean Netherlands): OfficialName to "Bonaire, Sint Eustatius and Saba"
- Fix CN (China): add missing Nepal (NP) to borders
- Fix IN (India): remove Afghanistan (AF) and Sri Lanka (LK) from borders (no land borders)
- Fix CY (Cyprus): remove GB from borders (island), fix SubRegion to SouthernEurope
- Fix SH (Saint Helena): remove incorrect South American borders (island territory)
- Fix LK (Sri Lanka): remove India from borders (island, no land border)
- Fix EG (Egypt): add Palestine (PS) to borders
- Fix IL (Israel): add Palestine (PS) to borders
- Fix JO (Jordan): add Palestine (PS) to borders
- Fix AL (Albania): add Kosovo (XK) to borders
- Fix ME (Montenegro): add Kosovo (XK) to borders
- Fix MK (North Macedonia): add Kosovo (XK) to borders
- Fix RS (Serbia): add Kosovo (XK) to borders
- Fix TD (Chad): add Sudan (SD) to borders
- Fix SS (South Sudan): add Chad (TD) to borders
- Fix SubRegion.SouthernAfrica Description attribute (was missing space)
- Add SoutheastEurope and CentralEurope to SubRegion enum
- Update 14 countries to correct SubRegion per UN M49 standard

Co-authored-by: tinohager <8215186+tinohager@users.noreply.github.com>
Copilot AI changed the title [WIP] Identify and list country inconsistencies Fix country data inconsistencies: official names, borders, SubRegions Feb 11, 2026
Copilot AI requested a review from tinohager February 11, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants