Line 1: |
Line 1: |
− | This project aims to see if it's possible for OpenFoodFacts to support diets in the most generic way. | + | This project aims to see if it's possible for Open Food Facts to support diets in the most generic way. |
| + | Initial exploration by @aleene, being refactored/augmented by @teolemon |
| | | |
| + | |
| + | [[Category:Diets]] |
| === Exploring how Open Food Facts can support any dietary requirement=== | | === Exploring how Open Food Facts can support any dietary requirement=== |
− | ====Introduction==== | + | ==== Introduction ==== |
− | The idea for diets started with the question how vegetarian products are supported by Open Food Facts. It is clear however that these idea's can be extended to any dietary requirement. Other examples of diets are Hallal or Kosher, but also Organic can be seen as a diet. | + | The idea for diets started with the question how vegetarian products are supported by Open Food Facts. It is clear however that these idea's can be extended to any dietary requirement. Other examples of diets are Halal or Kosher, but also Organic can be seen as a diet. |
− | | |
− | ====Should Open Food Facts support diets?====
| |
− | Open Food Facts relies on the information on the labels. Support for diets seems to imply that other information should be folded into Open Food Facts. Which would make diets a derivative project.<br />
| |
− | However it might be that generic support for diets is so closely tied to Open Food Facts, that it should be integrated. Or, if Open Food Facts wants to support dietary requirement queries, it might have consequences for implementation of Open Food Facts (think taxonomy).
| |
| | | |
− | ====Diet definition==== | + | ==== Should Open Food Facts support diets? ==== |
− | What is a diet exactly? [https://en.wikipedia.org/wiki/Diet_(nutrition) Wikipedia] defines it as | + | * Open Food Facts relies on the information on the labels. Support for diets seems to imply that other information should be folded into Open Food Facts. Which would make diets a derivative project.<br /> |
− | <nowiki>In nutrition, diet is the sum of food consumed by a person or other organism.</nowiki> | + | * However it might be that generic support for diets is so closely tied to Open Food Facts, that it should be integrated. Or, if Open Food Facts wants to support dietary requirement queries, it might have consequences for implementation of Open Food Facts (think taxonomy).</ br> |
− | This does not help us much. The [https://en.wikipedia.org/wiki/List_of_diets Wikipedia entry] on diets shows more than 50 different diets (I stopped counting). There are many different reasons and approaches, which are not relevant here. As a working defition I will use: | + | * At the moment Open Food Facts already includes some derived applications, such as comparing and finding Palm-tree based products. So supporting diets is not farfetched. |
− | <nowiki>A Open Food Fact diet is a subselection of products in the Open Food Fact database.</nowiki> | + | ==== Diet definition ==== |
− | This implies that a person who follows a certain diet is only willing to eat specific products. | + | * What is a diet exactly? [https://en.wikipedia.org/wiki/Diet_(nutrition) Wikipedia] defines it as |
− | ====Diet Listings==== | + | * <nowiki>In nutrition, diet is the sum of food consumed by a person or other organism.</nowiki> |
| + | * This does not help us much. The [https://en.wikipedia.org/wiki/List_of_diets Wikipedia entry] on diets shows more than 50 different diets (I stopped counting). There are many different reasons and approaches, which are not relevant here. As a working definition I will use: |
| + | * <nowiki>A Open Food Facts diet is a subselection of products in the Open Food Fact database.</nowiki> |
| + | * This implies that a person who follows a certain diet is only willing to eat specific products. |
| + | ==== Compound Diets ==== |
| + | It is possible that a person adheres to multiple diets. For example vegetariansim + non-gmo + organic. |
| + | ==== Diet Listings ==== |
| Wikipedia has a very large [https://en.wikipedia.org/wiki/List_of_diets listing of Diets]. I am not sure whether they are all relevant for this discussion. | | Wikipedia has a very large [https://en.wikipedia.org/wiki/List_of_diets listing of Diets]. I am not sure whether they are all relevant for this discussion. |
− | Examples of diets are (I just copied some): | + | Examples of diets are (I just copied some): [[Buddhist cuisine|Buddhist diet]], [[Edenic diet]], [[Hinduism|Hindu]] and [[Jainism|Jain]] diets, [[Islamic dietary laws]], [[I-tal]], [[Kosher foods|Kosher diet]], [[Word of Wisdom]], [[Fruitarianism|Fruitarian diet]] [[Lacto vegetarianism]], [[Lacto-ovo vegetarianism]], [[Veganism|Vegan diet]], [[Flexitarianism|Flexitarian diet]], [[Kangatarian]], [[Pescetarianism|Pescetarian diet]], [[Vegetarianism|Plant-based diet]], etc.<br /> |
− | * [[Buddhist cuisine|Buddhist diet]]
| |
− | * [[Edenic diet]]:
| |
− | * [[Hinduism|Hindu]] and [[Jainism|Jain]] diets:
| |
− | * [[Islamic dietary laws]]
| |
− | * [[I-tal]]
| |
− | * [[Kosher foods|Kosher diet]]
| |
− | * [[Word of Wisdom]]
| |
− | * [[Fruitarianism|Fruitarian diet]]
| |
− | * [[Lacto vegetarianism]
| |
− | * [[Lacto-ovo vegetarianism]]
| |
− | * [[Veganism|Vegan diet]]
| |
− | * [[Flexitarianism|Flexitarian diet]]
| |
− | * [[Kangatarian]]
| |
− | * [[Pescetarianism|Pescetarian diet]]
| |
− | * [[Vegetarianism|Plant-based diet]]
| |
| We have to analyse these diets to see how they are defined and whether they are suitable for support by Open Food Facts. | | We have to analyse these diets to see how they are defined and whether they are suitable for support by Open Food Facts. |
− | ===Which diets to support?=== | + | |
| + | === Which diets to support? === |
| We need to set some rules to define which diets Open Food Facts could support: | | We need to set some rules to define which diets Open Food Facts could support: |
| * Open Diet - the definition of a diet and its corresponding rules should be in the public domain. (I guess this will exclude diets created by diet guru's). | | * Open Diet - the definition of a diet and its corresponding rules should be in the public domain. (I guess this will exclude diets created by diet guru's). |
Line 41: |
Line 32: |
| * Label - there should be a label corresponding to a diet, such the vegetarian society. | | * Label - there should be a label corresponding to a diet, such the vegetarian society. |
| * Package - ideally information whether a product is suited for a particular diet should be on the package of a product. However the advantage of Open Food Facts is that this would no longer necessary. | | * Package - ideally information whether a product is suited for a particular diet should be on the package of a product. However the advantage of Open Food Facts is that this would no longer necessary. |
− | ===Diet Rules=== | + | === Diet Rules === |
− | ====European Vegetarian Label====
| + | In order to obtain diet rules one must look at various diets to see how they are defined. After looking at [[these diets]] some conclusions can be drawn. Products are to be excluded based on: |
− | These labels (and rules) are defined in [http://www.v-label.info The European Vegetarian Label]:
| + | * Ingredients created by a specific process - for instance GMO or organic; |
− | * Ovo-vegetarian - contains egg | + | * Specific ingredient - for instance the coloring agent Cochinelle, derived from crushing beetles; |
− | * Lacto-Vegetarian - contains milk | + | * Ingredient groups - for instance all fats that required the killing of an animal; |
− | * Ovo-Lacto-Vegetarian - contains egg and/or milk | + | * Products created by specific processes; |
− | * Vegan - no animal product | + | * Product groups created by specific processes. |
− | Strangely these rules do not exclude, but include. However the basic, unspoken rule, in these labels is that nothing should come from dead animals. Interestingly they note that these rules are part of Swiss law. The European Vegetarian has defined [[detailed rules]] to be included.
| |
| | | |
− | ===Already supported=== | + | ===Already supported Diets === |
| Open Food Facts already support some support for diets. | | Open Food Facts already support some support for diets. |
− | ====Allergens==== | + | ==== Vegan ==== |
− | ====Labels==== | + | ==== Vegetarian ==== |
− | ===Implementation thoughts=== | + | ==== Palm oil ==== |
| + | ==== Allergens ==== |
| + | ==== Labels ==== |
| + | |
| + | === Potentially impactful diets === |
| + | ==== Pregnant woman ==== |
| + | https://www.nhs.uk/pregnancy/keeping-well/foods-to-avoid/ |
| + | |
| + | ==== Pork detection (to help Halal, Kosher apps) ==== |
| + | |
| + | |
| + | === Implementation thoughts === |
| Although it is much to early to talk about implementation, I gather some thoughts here. | | Although it is much to early to talk about implementation, I gather some thoughts here. |
| ====Product level restrictions==== | | ====Product level restrictions==== |
| The ruleset defined by the European Vegetarian Society implies restriction on the ingredient level: no ingredients that come from dead animals. Could this be defined as a branch in the taxonomy? Thus a branch for ingredients from dead animals, a branch for products from eggs (chickens, geese, etc), a branch for milk-based products (cow, camel, etc) and bees, and .... | | The ruleset defined by the European Vegetarian Society implies restriction on the ingredient level: no ingredients that come from dead animals. Could this be defined as a branch in the taxonomy? Thus a branch for ingredients from dead animals, a branch for products from eggs (chickens, geese, etc), a branch for milk-based products (cow, camel, etc) and bees, and .... |
− | | + | ==== Ingredient Taxonomy ==== |
| + | The basis of a diet is to exclude products with specific ingredients from a search. This can be done by giving each ingredient a diet-attribute. It might be more simple to create an ingredient taxonomy based on these attributes and thus be able to exclude entire branches of ingredients. Question is how such a taxonomy can support multiple diets. |
| ==== Product support levels ==== | | ==== Product support levels ==== |
| On the official dutch association site for vegetarians, they use a five-level scheme to indicate whether a product is suitable for vegetarians. such a scheme can be adapted to any diet. | | On the official dutch association site for vegetarians, they use a five-level scheme to indicate whether a product is suitable for vegetarians. such a scheme can be adapted to any diet. |
Line 71: |
Line 73: |
| ==== Diet logo's ==== | | ==== Diet logo's ==== |
| Each supported diet requires a logo, similar to the one used for Palm fat. Maybe inspiration can be taken from the official corresponding logo's. | | Each supported diet requires a logo, similar to the one used for Palm fat. Maybe inspiration can be taken from the official corresponding logo's. |
− | ===References=== | + | === References === |
| * [https://www.zediet.fr/ ZeDiet] - une méthode simple, efficace et durable pour améliorer ou préserver votre forme et votre santé en vous aidant à faire de meilleurs choix alimentaires; | | * [https://www.zediet.fr/ ZeDiet] - une méthode simple, efficace et durable pour améliorer ou préserver votre forme et votre santé en vous aidant à faire de meilleurs choix alimentaires; |
− | * [http://www.nongmoproject.org Non GMO project] - working together to ensure the sustained availability of non-GMO food & products; | + | * [https://www.nongmoproject.org Non GMO project] - working together to ensure the sustained availability of non-GMO food & products; |
− | * [http://www.euroveg.eu European Vegetarian Union] | + | * [https://www.euroveg.eu European Vegetarian Union] |
| + | * [https://github.com/openfoodfacts/openfoodfacts-server/issues/9092 Add better support for specific diets] |