All countries list: it seems, should be hardcoded into reality (extracted from Wikipedia with some script, updated on each errrr world situation update), and just grabbed as a list via infoboxer;
(Later?) Some specialized country lists (see Wolfram, see Wikipedia categories, and so on), like:
reality
(extracted from Wikipedia with some script, updated on each errrr world situation update), and just grabbed as a list via infoboxer;Ruby syntaxt for 2 may be like: