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]
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?
Interpreter["Country"][countries]
will do just fine. $\endgroup$