Skip to main content
1 of 2
kickert
  • 1.9k
  • 8
  • 24

Interpreter["Country"] returns South Africa as a single item list

I am working with a list of countries that I then want to utilize Interpreter on for some later functionality. For some reason, "South Africa" returns as a single item list within the list while all the other countries do not.

countries = {"eSwatini", "South Africa", "United States", "Canada", 
   "South Sudan"};
Interpreter["Country"][# & /@ countries]

enter image description here

I then tried to expand the dataset by looking at a list of all countries:

webcountries = 
  Import["https://www.dfa.ie/travel/travel-advice/a-z-list-of-\
countries/", "Data"];
countrylist = webcountries[[4]];
Interpreter["Country"][# & /@ countrylist]

There were a few in the list that Interpreter failed to work with, but interestingly, only South Africa returns as a single item list within the list.

I can't think of any other reason this would happen besides a bug.

Thoughts?

kickert
  • 1.9k
  • 8
  • 24