When the user needs to classify countries according to World Bank geographical or income-based classifications for economic analysis. This skill provides accurate mappings between country names and World Bank region codes (EAS, ECS, LCN, MEA, NAC, SAS, SSF) and income groups (LIC, LMC, UMC, HIC), handling variations in country naming conventions. Triggers include 'World Bank classification', 'map countries to regions', 'regional grouping', 'country classification', 'geographical regions', and any analysis requiring standardized regional categorization according to World Bank definitions.
This skill is optimized for calculating economic concentration indices (like CR5) across World Bank geographical regions. The canonical workflow is:
country_to_region_mapping.json.(Top N Sum / Region Total) * 100. Round to two decimal places.RegionTopN_CountriesTopN_SumRegion_TotalCRN_Ratiocountry_to_region_mapping.json file for the most accurate and up-to-date World Bank classifications. It handles common naming variations found in datasets.scripts/classify_and_calculate.py (Low Freedom): For the deterministic, error-prone tasks of loading data, applying the mapping, performing grouping, sorting, and arithmetic calculations. This ensures consistency and accuracy.For a standard CR5 analysis from Google Sheets, the expected user command pattern is: "Read the country GDP data from [Source Spreadsheet], calculate the CR5 index for each World Bank region, and save the results to a new spreadsheet named [Output Name] with a table titled [Table Name]."