This can mostly work for sub-national names, but doesn’t really address cases such as Taiwan, Cyprus, etc.