sustainity-dev / issues

0 stars 0 forks source link

Interpret Open Food Facts countries #19

Open proton-decay opened 1 year ago

proton-decay commented 1 year ago

In our application we allow users to filter proposed alternatives by a region where those products are available to buy. Many of the products in our database come from Open Food Facts. They provide in their data a tag with countries where products are available, but this tag is not structured (they probably allow their users to enter any (even non-sense) value). We need to be able to tell what tags correspond to what countries. So in the data repository we have a file that provides a mapping from Open Food Facts tag countries to Sustainity regions (which are ISO 3166-1 alpha-2 codes). Most of the tags don't have a region assigned yet. This task is about finishing assigning Sustainity regions to Open Food Facts country tags.

Most of the products in the Open Food Facts data come from a small number of countries, so the few tags that currently have a region assigned already covers around 70% of all products. Of course we would like to make products from under-represented countries also visible in our results, so ideally most of the tags should have a region assigned.