OpenBookPrices / country-data

Country related data such as ISO codes, currencies etc
MIT License
513 stars 165 forks source link

Name Popularity Index #28

Open gajus opened 9 years ago

gajus commented 9 years ago

Assuming that multiple versions of country names become available, it would be nice to include a popularity index, e.g. http://www.google.com/trends/explore#q=%22Lithuania%22%2C%20%22Republic%20of%20Lithuania%22&cmpt=q&tz=.

Knowing which name is more popular, together with language property, would be useful when determining which name to choose to display in which language. This index could be updated once a week or so using an automated script.

I am happy to contribute a library that would abstract querying of the data (assuming such does not exist already).

evdb commented 9 years ago

I'm starting to think that this is probably something that is outside the scope of the country-data module but that is obviously closely linked to it and would be very useful.

Having a module that could could take a country code like SV and then return Sweden as the popular name in English, or "Sverige" in Swedish would be great.

It would then also be able to do the reverse - for example map "Vietnam" to VN, despite the official name being "Viet Nam" (which I'm guessing is very rarely used).

If you were to create such a module I'd be very happy to point to it from the docs of country-data :)

gajus commented 9 years ago

I will look into how hard would it be to collect the data.

On Feb 17, 2015, at 12:49, Edmund von der Burg notifications@github.com wrote:

I'm starting to think that this is probably something that is outside the scope of the country-data module but that is obviously closely linked to it and would be very useful.

Having a module that could could take a country code like SV and then return Sweden as the popular name in English, or "Sverige" in Swedish would be great.

It would then also be able to do the reverse - for example map "Vietnam" to VN, despite the official name being "Viet Nam" (which I'm guessing is very rarely used).

If you were to create such a module I'd be very happy to point to it from the docs of country-data :)

— Reply to this email directly or view it on GitHub.