countrynormalizer 0.2.5 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -248,7 +248,7 @@ This may be helpful for understanding the data shapes, visualizing all the data,
|
|
|
248
248
|
## Data Sources:
|
|
249
249
|
This data is compiled from a wide array of sources. To give transparency to this I want to document the primary source or reason for each field.
|
|
250
250
|
|
|
251
|
-
* common_reference:
|
|
251
|
+
* common_reference: A field for how people might commonly refer to a country in conversation or normal parlance shorthand. All special characters are removed except dashes, commas, and parentheses. This makes searching by standard keyboard entry easier. For example, `Türkiye` is commonly typed as `Turkey`. This field helps flatten and make searching for these countries easier. The naming conventions here are purely an executive decision by me, the maintainer. All values are unique.
|
|
252
252
|
* english_clean: This comes off of the "country name using title case" column on the wikipedia Alpha 2 documentation for ISO 3166: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
253
253
|
* formal_order: On Wikipedia and other sources for easy Alpabetization they order countries by common names. So "Netherlands, Kingdom of the", this just puts it in order as "Kingdom of the Netherlands."
|
|
254
254
|
* alpha_2: ISO 3166 Alpha 2 values as listed on wikipedia: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
@@ -260,9 +260,9 @@ This data is compiled from a wide array of sources. To give transparency to this
|
|
|
260
260
|
* tld: Taken from Wikipedia ISO 3166 master table: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
|
|
261
261
|
* flag_emoji: Used table available on Flagepedia and then cleaned up the data for easy usage in CSVs and JSON objects: https://flagpedia.net/emoji
|
|
262
262
|
* calling_code: ChatGPT compiled deep research task. Instructed to rely primarily on these data sources to make data easily worked with in a CSV and as JSON objects.
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
263
|
+
* - https://en.wikipedia.org/wiki/Trunk_prefix
|
|
264
|
+
* - https://en.wikipedia.org/wiki/List_of_telephone_country_codes
|
|
265
|
+
* - https://www.countrycode.org/
|
|
266
266
|
* continent: ChatGPT deep research compiled list asking to align all ISO Alpha 3 country codes to their continent.
|
|
267
267
|
|
|
268
268
|
## To-Do List:
|
package/dist/index.js
CHANGED
|
@@ -458,7 +458,7 @@ var complete_default = [
|
|
|
458
458
|
continent: "Europe"
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
|
-
common_reference: "Saint
|
|
461
|
+
common_reference: "Saint Barthelemy",
|
|
462
462
|
english_clean: "Saint Barthélemy",
|
|
463
463
|
formal_order: "Saint Barthélemy",
|
|
464
464
|
alpha_2: "BL",
|
|
@@ -745,7 +745,7 @@ var complete_default = [
|
|
|
745
745
|
continent: "Asia"
|
|
746
746
|
},
|
|
747
747
|
{
|
|
748
|
-
common_reference: "
|
|
748
|
+
common_reference: "Cote d'Ivoire",
|
|
749
749
|
english_clean: "Côte d'Ivoire",
|
|
750
750
|
formal_order: "Côte d'Ivoire",
|
|
751
751
|
alpha_2: "CI",
|
|
@@ -2309,7 +2309,7 @@ var complete_default = [
|
|
|
2309
2309
|
continent: "Asia"
|
|
2310
2310
|
},
|
|
2311
2311
|
{
|
|
2312
|
-
common_reference: "Saint Martin
|
|
2312
|
+
common_reference: "Saint Martin",
|
|
2313
2313
|
english_clean: "Saint Martin (French part)",
|
|
2314
2314
|
formal_order: "Saint Martin (French part)",
|
|
2315
2315
|
alpha_2: "MF",
|
|
@@ -3178,7 +3178,7 @@ var complete_default = [
|
|
|
3178
3178
|
continent: "Asia"
|
|
3179
3179
|
},
|
|
3180
3180
|
{
|
|
3181
|
-
common_reference: "
|
|
3181
|
+
common_reference: "Reunion",
|
|
3182
3182
|
english_clean: "Réunion",
|
|
3183
3183
|
formal_order: "Réunion",
|
|
3184
3184
|
alpha_2: "RE",
|
|
@@ -3603,7 +3603,7 @@ var complete_default = [
|
|
|
3603
3603
|
continent: "Africa"
|
|
3604
3604
|
},
|
|
3605
3605
|
{
|
|
3606
|
-
common_reference: "Sint Maarten
|
|
3606
|
+
common_reference: "Sint Maarten",
|
|
3607
3607
|
english_clean: "Sint Maarten (Dutch part)",
|
|
3608
3608
|
formal_order: "Sint Maarten (Dutch part)",
|
|
3609
3609
|
alpha_2: "SX",
|
|
@@ -3841,9 +3841,9 @@ var complete_default = [
|
|
|
3841
3841
|
continent: "Africa"
|
|
3842
3842
|
},
|
|
3843
3843
|
{
|
|
3844
|
-
common_reference: "
|
|
3844
|
+
common_reference: "Turkey",
|
|
3845
3845
|
english_clean: "Türkiye",
|
|
3846
|
-
formal_order: "Türkiye",
|
|
3846
|
+
formal_order: "Republic of Türkiye",
|
|
3847
3847
|
alpha_2: "TR",
|
|
3848
3848
|
alpha_3: "TUR",
|
|
3849
3849
|
num_code: 792,
|
|
@@ -6882,7 +6882,7 @@ var countriesByContinent_default = {
|
|
|
6882
6882
|
},
|
|
6883
6883
|
{
|
|
6884
6884
|
english_clean: "Türkiye",
|
|
6885
|
-
formal_order: "Türkiye",
|
|
6885
|
+
formal_order: "Republic of Türkiye",
|
|
6886
6886
|
alpha_2: "TR",
|
|
6887
6887
|
alpha_3: "TUR",
|
|
6888
6888
|
num_code: 792,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "countrynormalizer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "ISO 3166 country data lookup and normalization. Convert between alpha-2, alpha-3, ISO numbers, country names, calling codes, flag emojis, TLDs, continents, and demonyms.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|