]> gitweb.factorcode.org Git - factor.git/blob - extra/countries/countries.factor
Fixes #2966
[factor.git] / extra / countries / countries.factor
1 IN: countries
2
3 ! ISO 3166-1
4
5 CONSTANT: alpha-2 H{
6     { "AC" "Ascension Island" }
7     { "AD" "Andorra" }
8     { "AE" "United Arab Emirates" }
9     { "AF" "Afghanistan" }
10     { "AG" "Antigua and Barbuda" }
11     { "AI" "Anguilla" }
12     { "AL" "Albania" }
13     { "AM" "Armenia" }
14     { "AN" "Netherlands Antilles" }
15     { "AO" "Angola" }
16     { "AQ" "Antarctica" }
17     { "AR" "Argentina" }
18     { "AS" "American Samoa" }
19     { "AT" "Austria" }
20     { "AU" "Australia" }
21     { "AW" "Aruba" }
22     { "AX" "Åland Islands" }
23     { "AZ" "Azerbaijan" }
24     { "BA" "Bosnia and Herzegovina" }
25     { "BB" "Barbados" }
26     { "BD" "Bangladesh" }
27     { "BE" "Belgium" }
28     { "BF" "Burkina Faso" }
29     { "BG" "Bulgaria" }
30     { "BH" "Bahrain" }
31     { "BI" "Burundi" }
32     { "BJ" "Benin" }
33     { "BL" "Saint Barthélemy" }
34     { "BM" "Bermuda" }
35     { "BN" "Brunei Darussalam" }
36     { "BO" "Bolivia (Plurinational State of)" }
37     { "BQ" "Bonaire, Sint Eustatius and Saba" }
38     { "BR" "Brazil" }
39     { "BS" "Bahamas" }
40     { "BT" "Bhutan" }
41     { "BU" "Burma" }
42     { "BV" "Bouvet Island" }
43     { "BW" "Botswana" }
44     { "BY" "Belarus" }
45     { "BZ" "Belize" }
46     { "CA" "Canada" }
47     { "CC" "Cocos (Keeling) Islands" }
48     { "CD" "Congo, Democratic Republic of the" }
49     { "CF" "Central African Republic" }
50     { "CG" "Congo" }
51     { "CH" "Switzerland" }
52     { "CI" "Côte d'Ivoire" }
53     { "CK" "Cook Islands" }
54     { "CL" "Chile" }
55     { "CM" "Cameroon" }
56     { "CN" "China" }
57     { "CO" "Colombia" }
58     { "CP" "Clipperton Island" }
59     { "CR" "Costa Rica" }
60     { "CS" "Czechoslovakia" }
61     { "CU" "Cuba" }
62     { "CV" "Cabo Verde" }
63     { "CW" "Curaçao" }
64     { "CX" "Christmas Island" }
65     { "CY" "Cyprus" }
66     { "CZ" "Czechia" }
67     { "DE" "Germany" }
68     { "DG" "Diego Garcia" }
69     { "DJ" "Djibouti" }
70     { "DK" "Denmark" }
71     { "DM" "Dominica" }
72     { "DO" "Dominican Republic" }
73     { "DZ" "Algeria" }
74     { "EA" "Ceuta, Melilla" }
75     { "EC" "Ecuador" }
76     { "EE" "Estonia" }
77     { "EG" "Egypt" }
78     { "EH" "Western Sahara" }
79     { "ER" "Eritrea" }
80     { "ES" "Spain" }
81     { "ET" "Ethiopia" }
82     { "EU" "European Union" }
83     { "EZ" "Eurozone" }
84     { "FI" "Finland" }
85     { "FJ" "Fiji" }
86     { "FK" "Falkland Islands (Malvinas)" }
87     { "FM" "Micronesia (Federated States of)" }
88     { "FO" "Faroe Islands" }
89     { "FR" "France" }
90     { "FX" "France, Metropolitan" }
91     { "GA" "Gabon" }
92     { "GB" "United Kingdom of Great Britain and Northern Ireland" }
93     { "GD" "Grenada" }
94     { "GE" "Georgia" }
95     { "GF" "French Guiana" }
96     { "GG" "Guernsey" }
97     { "GH" "Ghana" }
98     { "GI" "Gibraltar" }
99     { "GL" "Greenland" }
100     { "GM" "Gambia" }
101     { "GN" "Guinea" }
102     { "GP" "Guadeloupe" }
103     { "GQ" "Equatorial Guinea" }
104     { "GR" "Greece" }
105     { "GS" "South Georgia and the South Sandwich Islands" }
106     { "GT" "Guatemala" }
107     { "GU" "Guam" }
108     { "GW" "Guinea-Bissau" }
109     { "GY" "Guyana" }
110     { "HK" "Hong Kong" }
111     { "HM" "Heard Island and McDonald Islands" }
112     { "HN" "Honduras" }
113     { "HR" "Croatia" }
114     { "HT" "Haiti" }
115     { "HU" "Hungary" }
116     { "IC" "Canary Islands" }
117     { "ID" "Indonesia" }
118     { "IE" "Ireland" }
119     { "IL" "Israel" }
120     { "IM" "Isle of Man" }
121     { "IN" "India" }
122     { "IO" "British Indian Ocean Territory" }
123     { "IQ" "Iraq" }
124     { "IR" "Iran (Islamic Republic of)" }
125     { "IS" "Iceland" }
126     { "IT" "Italy" }
127     { "JE" "Jersey" }
128     { "JM" "Jamaica" }
129     { "JO" "Jordan" }
130     { "JP" "Japan" }
131     { "KE" "Kenya" }
132     { "KG" "Kyrgyzstan" }
133     { "KH" "Cambodia" }
134     { "KI" "Kiribati" }
135     { "KM" "Comoros" }
136     { "KN" "Saint Kitts and Nevis" }
137     { "KP" "Korea (Democratic People's Republic of)" }
138     { "KR" "Korea, Republic of" }
139     { "KW" "Kuwait" }
140     { "KY" "Cayman Islands" }
141     { "KZ" "Kazakhstan" }
142     { "LA" "Lao People's Democratic Republic" }
143     { "LB" "Lebanon" }
144     { "LC" "Saint Lucia" }
145     { "LI" "Liechtenstein" }
146     { "LK" "Sri Lanka" }
147     { "LR" "Liberia" }
148     { "LS" "Lesotho" }
149     { "LT" "Lithuania" }
150     { "LU" "Luxembourg" }
151     { "LV" "Latvia" }
152     { "LY" "Libya" }
153     { "MA" "Morocco" }
154     { "MC" "Monaco" }
155     { "MD" "Moldova, Republic of" }
156     { "ME" "Montenegro" }
157     { "MF" "Saint Martin (French part)" }
158     { "MG" "Madagascar" }
159     { "MH" "Marshall Islands" }
160     { "MK" "North Macedonia" }
161     { "ML" "Mali" }
162     { "MM" "Myanmar" }
163     { "MN" "Mongolia" }
164     { "MO" "Macao" }
165     { "MP" "Northern Mariana Islands" }
166     { "MQ" "Martinique" }
167     { "MR" "Mauritania" }
168     { "MS" "Montserrat" }
169     { "MT" "Malta" }
170     { "MU" "Mauritius" }
171     { "MV" "Maldives" }
172     { "MW" "Malawi" }
173     { "MX" "Mexico" }
174     { "MY" "Malaysia" }
175     { "MZ" "Mozambique" }
176     { "NA" "Namibia" }
177     { "NC" "New Caledonia" }
178     { "NE" "Niger" }
179     { "NF" "Norfolk Island" }
180     { "NG" "Nigeria" }
181     { "NI" "Nicaragua" }
182     { "NL" "Netherlands" }
183     { "NO" "Norway" }
184     { "NP" "Nepal" }
185     { "NR" "Nauru" }
186     { "NT" "Neutral Zone" }
187     { "NU" "Niue" }
188     { "NZ" "New Zealand" }
189     { "OM" "Oman" }
190     { "PA" "Panama" }
191     { "PE" "Peru" }
192     { "PF" "French Polynesia" }
193     { "PG" "Papua New Guinea" }
194     { "PH" "Philippines" }
195     { "PK" "Pakistan" }
196     { "PL" "Poland" }
197     { "PM" "Saint Pierre and Miquelon" }
198     { "PN" "Pitcairn" }
199     { "PR" "Puerto Rico" }
200     { "PS" "Palestine, State of" }
201     { "PT" "Portugal" }
202     { "PW" "Palau" }
203     { "PY" "Paraguay" }
204     { "QA" "Qatar" }
205     { "RE" "Réunion" }
206     { "RO" "Romania" }
207     { "RS" "Serbia" }
208     { "RU" "Russian Federation" }
209     { "RW" "Rwanda" }
210     { "SA" "Saudi Arabia" }
211     { "SB" "Solomon Islands" }
212     { "SC" "Seychelles" }
213     { "SD" "Sudan" }
214     { "SE" "Sweden" }
215     { "SF" "Finland" }
216     { "SG" "Singapore" }
217     { "SH" "Saint Helena, Ascension and Tristan da Cunha" }
218     { "SI" "Slovenia" }
219     { "SJ" "Svalbard and Jan Mayen" }
220     { "SK" "Slovakia" }
221     { "SL" "Sierra Leone" }
222     { "SM" "San Marino" }
223     { "SN" "Senegal" }
224     { "SO" "Somalia" }
225     { "SR" "Suriname" }
226     { "SS" "South Sudan" }
227     { "ST" "Sao Tome and Principe" }
228     { "SU" "USSR" }
229     { "SV" "El Salvador" }
230     { "SX" "Sint Maarten (Dutch part)" }
231     { "SY" "Syrian Arab Republic" }
232     { "SZ" "Eswatini" }
233     { "TA" "Tristan da Cunha" }
234     { "TC" "Turks and Caicos Islands" }
235     { "TD" "Chad" }
236     { "TF" "French Southern Territories" }
237     { "TG" "Togo" }
238     { "TH" "Thailand" }
239     { "TJ" "Tajikistan" }
240     { "TK" "Tokelau" }
241     { "TL" "Timor-Leste" }
242     { "TM" "Turkmenistan" }
243     { "TN" "Tunisia" }
244     { "TO" "Tonga" }
245     { "TP" "East Timor" }
246     { "TR" "Turkey" }
247     { "TT" "Trinidad and Tobago" }
248     { "TV" "Tuvalu" }
249     { "TW" "Taiwan, Province of China" }
250     { "TZ" "Tanzania, United Republic of" }
251     { "UA" "Ukraine" }
252     { "UK" "United Kingdom" }
253     { "UG" "Uganda" }
254     { "UM" "United States Minor Outlying Islands" }
255     { "UN" "United Nations" }
256     { "US" "United States of America" }
257     { "UY" "Uruguay" }
258     { "UZ" "Uzbekistan" }
259     { "VA" "Holy See" }
260     { "VC" "Saint Vincent and the Grenadines" }
261     { "VE" "Venezuela (Bolivarian Republic of)" }
262     { "VG" "Virgin Islands (British)" }
263     { "VI" "Virgin Islands (U.S.)" }
264     { "VN" "Viet Nam" }
265     { "VU" "Vanuatu" }
266     { "WF" "Wallis and Futuna" }
267     { "WS" "Samoa" }
268     { "XK" "Kosovo" }
269     { "YE" "Yemen" }
270     { "YT" "Mayotte" }
271     { "YU" "Yugoslavia" }
272     { "ZA" "South Africa" }
273     { "ZM" "Zambia" }
274     { "ZR" "Zaire" }
275     { "ZW" "Zimbabwe" }
276 }
277
278 CONSTANT: alpha-3 H{
279     { "ABW" "Aruba" }
280     { "AFG" "Afghanistan" }
281     { "AGO" "Angola" }
282     { "AIA" "Anguilla" }
283     { "ALA" "Åland Islands" }
284     { "ALB" "Albania" }
285     { "AND" "Andorra" }
286     { "ARE" "United Arab Emirates" }
287     { "ARG" "Argentina" }
288     { "ARM" "Armenia" }
289     { "ASM" "American Samoa" }
290     { "ATA" "Antarctica" }
291     { "ATF" "French Southern Territories" }
292     { "ATG" "Antigua and Barbuda" }
293     { "AUS" "Australia" }
294     { "AUT" "Austria" }
295     { "AZE" "Azerbaijan" }
296     { "BDI" "Burundi" }
297     { "BEL" "Belgium" }
298     { "BEN" "Benin" }
299     { "BES" "Bonaire, Sint Eustatius and Saba" }
300     { "BFA" "Burkina Faso" }
301     { "BGD" "Bangladesh" }
302     { "BGR" "Bulgaria" }
303     { "BHR" "Bahrain" }
304     { "BHS" "Bahamas" }
305     { "BIH" "Bosnia and Herzegovina" }
306     { "BLM" "Saint Barthélemy" }
307     { "BLR" "Belarus" }
308     { "BLZ" "Belize" }
309     { "BMU" "Bermuda" }
310     { "BOL" "Bolivia (Plurinational State of)" }
311     { "BRA" "Brazil" }
312     { "BRB" "Barbados" }
313     { "BRN" "Brunei Darussalam" }
314     { "BTN" "Bhutan" }
315     { "BVT" "Bouvet Island" }
316     { "BWA" "Botswana" }
317     { "CAF" "Central African Republic" }
318     { "CAN" "Canada" }
319     { "CCK" "Cocos (Keeling) Islands" }
320     { "CHE" "Switzerland" }
321     { "CHL" "Chile" }
322     { "CHN" "China" }
323     { "CIV" "Côte d'Ivoire" }
324     { "CMR" "Cameroon" }
325     { "COD" "Congo, Democratic Republic of the" }
326     { "COG" "Congo" }
327     { "COK" "Cook Islands" }
328     { "COL" "Colombia" }
329     { "COM" "Comoros" }
330     { "CPV" "Cabo Verde" }
331     { "CRI" "Costa Rica" }
332     { "CUB" "Cuba" }
333     { "CUW" "Curaçao" }
334     { "CXR" "Christmas Island" }
335     { "CYM" "Cayman Islands" }
336     { "CYP" "Cyprus" }
337     { "CZE" "Czechia" }
338     { "DEU" "Germany" }
339     { "DJI" "Djibouti" }
340     { "DMA" "Dominica" }
341     { "DNK" "Denmark" }
342     { "DOM" "Dominican Republic" }
343     { "DZA" "Algeria" }
344     { "ECU" "Ecuador" }
345     { "EGY" "Egypt" }
346     { "ERI" "Eritrea" }
347     { "ESH" "Western Sahara" }
348     { "ESP" "Spain" }
349     { "EST" "Estonia" }
350     { "ETH" "Ethiopia" }
351     { "FIN" "Finland" }
352     { "FJI" "Fiji" }
353     { "FLK" "Falkland Islands (Malvinas)" }
354     { "FRA" "France" }
355     { "FRO" "Faroe Islands" }
356     { "FSM" "Micronesia (Federated States of)" }
357     { "GAB" "Gabon" }
358     { "GBR" "United Kingdom of Great Britain and Northern Ireland" }
359     { "GEO" "Georgia" }
360     { "GGY" "Guernsey" }
361     { "GHA" "Ghana" }
362     { "GIB" "Gibraltar" }
363     { "GIN" "Guinea" }
364     { "GLP" "Guadeloupe" }
365     { "GMB" "Gambia" }
366     { "GNB" "Guinea-Bissau" }
367     { "GNQ" "Equatorial Guinea" }
368     { "GRC" "Greece" }
369     { "GRD" "Grenada" }
370     { "GRL" "Greenland" }
371     { "GTM" "Guatemala" }
372     { "GUF" "French Guiana" }
373     { "GUM" "Guam" }
374     { "GUY" "Guyana" }
375     { "HKG" "Hong Kong" }
376     { "HMD" "Heard Island and McDonald Islands" }
377     { "HND" "Honduras" }
378     { "HRV" "Croatia" }
379     { "HTI" "Haiti" }
380     { "HUN" "Hungary" }
381     { "IDN" "Indonesia" }
382     { "IMN" "Isle of Man" }
383     { "IND" "India" }
384     { "IOT" "British Indian Ocean Territory" }
385     { "IRL" "Ireland" }
386     { "IRN" "Iran (Islamic Republic of)" }
387     { "IRQ" "Iraq" }
388     { "ISL" "Iceland" }
389     { "ISR" "Israel" }
390     { "ITA" "Italy" }
391     { "JAM" "Jamaica" }
392     { "JEY" "Jersey" }
393     { "JOR" "Jordan" }
394     { "JPN" "Japan" }
395     { "KAZ" "Kazakhstan" }
396     { "KEN" "Kenya" }
397     { "KGZ" "Kyrgyzstan" }
398     { "KHM" "Cambodia" }
399     { "KIR" "Kiribati" }
400     { "KNA" "Saint Kitts and Nevis" }
401     { "KOR" "Korea, Republic of" }
402     { "KWT" "Kuwait" }
403     { "LAO" "Lao People's Democratic Republic" }
404     { "LBN" "Lebanon" }
405     { "LBR" "Liberia" }
406     { "LBY" "Libya" }
407     { "LCA" "Saint Lucia" }
408     { "LIE" "Liechtenstein" }
409     { "LKA" "Sri Lanka" }
410     { "LSO" "Lesotho" }
411     { "LTU" "Lithuania" }
412     { "LUX" "Luxembourg" }
413     { "LVA" "Latvia" }
414     { "MAC" "Macao" }
415     { "MAF" "Saint Martin (French part)" }
416     { "MAR" "Morocco" }
417     { "MCO" "Monaco" }
418     { "MDA" "Moldova, Republic of" }
419     { "MDG" "Madagascar" }
420     { "MDV" "Maldives" }
421     { "MEX" "Mexico" }
422     { "MHL" "Marshall Islands" }
423     { "MKD" "North Macedonia" }
424     { "MLI" "Mali" }
425     { "MLT" "Malta" }
426     { "MMR" "Myanmar" }
427     { "MNE" "Montenegro" }
428     { "MNG" "Mongolia" }
429     { "MNP" "Northern Mariana Islands" }
430     { "MOZ" "Mozambique" }
431     { "MRT" "Mauritania" }
432     { "MSR" "Montserrat" }
433     { "MTQ" "Martinique" }
434     { "MUS" "Mauritius" }
435     { "MWI" "Malawi" }
436     { "MYS" "Malaysia" }
437     { "MYT" "Mayotte" }
438     { "NAM" "Namibia" }
439     { "NCL" "New Caledonia" }
440     { "NER" "Niger" }
441     { "NFK" "Norfolk Island" }
442     { "NGA" "Nigeria" }
443     { "NIC" "Nicaragua" }
444     { "NIU" "Niue" }
445     { "NLD" "Netherlands" }
446     { "NOR" "Norway" }
447     { "NPL" "Nepal" }
448     { "NRU" "Nauru" }
449     { "NZL" "New Zealand" }
450     { "OMN" "Oman" }
451     { "PAK" "Pakistan" }
452     { "PAN" "Panama" }
453     { "PCN" "Pitcairn" }
454     { "PER" "Peru" }
455     { "PHL" "Philippines" }
456     { "PLW" "Palau" }
457     { "PNG" "Papua New Guinea" }
458     { "POL" "Poland" }
459     { "PRI" "Puerto Rico" }
460     { "PRK" "Korea (Democratic People's Republic of)" }
461     { "PRT" "Portugal" }
462     { "PRY" "Paraguay" }
463     { "PSE" "Palestine, State of" }
464     { "PYF" "French Polynesia" }
465     { "QAT" "Qatar" }
466     { "REU" "Réunion" }
467     { "ROU" "Romania" }
468     { "RUS" "Russian Federation" }
469     { "RWA" "Rwanda" }
470     { "SAU" "Saudi Arabia" }
471     { "SDN" "Sudan" }
472     { "SEN" "Senegal" }
473     { "SGP" "Singapore" }
474     { "SGS" "South Georgia and the South Sandwich Islands" }
475     { "SHN" "Saint Helena, Ascension and Tristan da Cunha" }
476     { "SJM" "Svalbard and Jan Mayen" }
477     { "SLB" "Solomon Islands" }
478     { "SLE" "Sierra Leone" }
479     { "SLV" "El Salvador" }
480     { "SMR" "San Marino" }
481     { "SOM" "Somalia" }
482     { "SPM" "Saint Pierre and Miquelon" }
483     { "SRB" "Serbia" }
484     { "SSD" "South Sudan" }
485     { "STP" "Sao Tome and Principe" }
486     { "SUR" "Suriname" }
487     { "SVK" "Slovakia" }
488     { "SVN" "Slovenia" }
489     { "SWE" "Sweden" }
490     { "SWZ" "Eswatini" }
491     { "SXM" "Sint Maarten (Dutch part)" }
492     { "SYC" "Seychelles" }
493     { "SYR" "Syrian Arab Republic" }
494     { "TCA" "Turks and Caicos Islands" }
495     { "TCD" "Chad" }
496     { "TGO" "Togo" }
497     { "THA" "Thailand" }
498     { "TJK" "Tajikistan" }
499     { "TKL" "Tokelau" }
500     { "TKM" "Turkmenistan" }
501     { "TLS" "Timor-Leste" }
502     { "TON" "Tonga" }
503     { "TTO" "Trinidad and Tobago" }
504     { "TUN" "Tunisia" }
505     { "TUR" "Turkey" }
506     { "TUV" "Tuvalu" }
507     { "TWN" "Taiwan, Province of China" }
508     { "TZA" "Tanzania, United Republic of" }
509     { "UGA" "Uganda" }
510     { "UKR" "Ukraine" }
511     { "UMI" "United States Minor Outlying Islands" }
512     { "URY" "Uruguay" }
513     { "USA" "United States of America" }
514     { "UZB" "Uzbekistan" }
515     { "VAT" "Holy See" }
516     { "VCT" "Saint Vincent and the Grenadines" }
517     { "VEN" "Venezuela (Bolivarian Republic of)" }
518     { "VGB" "Virgin Islands (British)" }
519     { "VIR" "Virgin Islands (U.S.)" }
520     { "VNM" "Viet Nam" }
521     { "VUT" "Vanuatu" }
522     { "WLF" "Wallis and Futuna" }
523     { "WSM" "Samoa" }
524     { "YEM" "Yemen" }
525     { "ZAF" "South Africa" }
526     { "ZMB" "Zambia" }
527     { "ZWE" "Zimbabwe" }
528 }