Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better support for specific diets #9092

Open
29 tasks
Tracked by #9231 ...
teolemon opened this issue Sep 30, 2023 · 2 comments
Open
29 tasks
Tracked by #9231 ...

Add better support for specific diets #9092

teolemon opened this issue Sep 30, 2023 · 2 comments

Comments

@teolemon
Copy link
Member

teolemon commented Sep 30, 2023

Existing

  • Dairy free
  • Egg free
  • Vegan
  • Vegetarian
  • Gluten free

What

Why

  • Having those high level abstractions (diets) would increase value for direct @openfoodfacts users, as well as API reusers, who would be incentivized to ask their users for ingredients photos, and send them to OFF

Tasks

Preview Give feedback
  1. 0 of 6
    labels special-diets 🎯 P1 🥗🔍 Ingredients analysis
  2. 0 of 7
    halal labels special-diets 🎯 P1 🥗🔍 Ingredients analysis
  3. 0 of 4
    ⭐ top issue lactose special-diets ⏰ Stale 🎯 P1 🥗🔍 Ingredients analysis 🥜 Allergens
  4. 🥜 Allergens

Assets

See also

Part of

@teolemon
Copy link
Member Author

teolemon commented Oct 2, 2024

Screenshot_20241002-083045.png

@github-throwaway
Copy link
Contributor

github-throwaway commented Jan 4, 2025

The current setup (see image) works for common allergens but feels rigid and limiting. Plus what do the different settings even mean? What is the difference between important and mandatory? Or very important and just important?

A better approach may be a dynamic filtering system where users can input exactly what they want to avoid, are sensitive to, or allergic to—whether it’s specific compounds like casein, additives, or triggers like histamines.

This system could include predefined filters for common allergens (gluten, dairy, nuts, etc.) and diets (vegan, keto, etc.) for simplicity, while also allowing users to create personalized filters. For example, a user could exclude components like gluten, alpha-amylase, certain emulsifiers, or maltos.

Such an approach would:

  • Support personalised needs beyond predefined diets or allergens.
  • Address complex dietary protocols (e.g., low-FODMAP, low-histamine).
  • Be future-proof as new sensitivities and dietary requirements emerge.

Especially with sensitivity testing (eg. IgG4 [independent if they are actually useful for diagnosing food sensitivities]) becoming more and more common, I think this would be a valuable change to OpenFoodFacts.

The dietary needs and the motivation to use Open Food Facts are individual. Let's tailor the experience to reflect that individuality.

Thoughts? @teolemon


Here is an excerpt of what components would be interesting to have as filters.

Getreide glutenhaltig (Gluten-Containing Grains)

  • Dinkel (Spelt)
  • Hafer (Oats)
  • Roggen (Rye)
  • Weizen (Wheat)
  • Gluten (Gluten)

Getreide glutenfrei (Gluten-Free Grains)

  • Amaranth (Amaranth)
  • Quinoa (Quinoa)
  • Hirse (Millet)
  • Mais (Corn)
  • Buchweizen (Buckwheat)
  • Reis (Rice)

Milchprodukte (Dairy Products)

  • Kasein (Casein)
  • Milchpool (Dairy Pool: Lactoglobulin, Lactalbumin, Goat Milk, Sheep Milk, Mare Milk)

Gemüse, Salate (Vegetables, Salads)

  • Spinat (Spinach)
  • Kartoffel (Potato)
  • Paprikaschote (Bell Pepper)
  • Tomate (Tomato)
  • Karotte (Carrot)
  • Sellerie (Celery)
  • Avocado (Avocado)
  • Gemüse-Pool (Vegetable Pool: Cabbage, Onion, Mushroom, Fennel)

Hülsenfrüchte (Legumes)

  • Sojabohne (Soybean)
  • Grüne Bohne (Green Bean)
  • Erdnuss (Peanut)
  • Hülsenfrüchte-Pool (Legume Pool: Peas, Lentils, Carob)

Fleisch, Fisch, Ei (Meat, Fish, Egg)

  • Hühnerei (Chicken Egg)
  • Rind (Beef)
  • Fische-Pool (Fish Pool: Cod, Tuna, Salmon)
  • Fleisch-Pool (Meat Pool: Pork, Duck, Chicken, Lamb)

Obst (Fruits)

  • Kiwi (Kiwi)
  • Weintraube (Grape)
  • Banane (Banana)
  • Apfel (Apple)
  • Pfirsich (Peach)
  • Orange (Orange)
  • Ananas (Pineapple)
  • Obst-Pool (Fruit Pool: Cherry, Strawberry, Melon)

Nüsse, Samen (Nuts, Seeds)

  • Haselnuss (Hazelnut)
  • Sonnenblumenkerne (Sunflower Seeds)
  • Sesam (Sesame)
  • Mandel (Almond)
  • Nüsse+Samen-Pool (Nut and Seed Pool: Walnut, Brazil Nut, Flaxseed, Cashew)

Kräuter, Gewürze (Herbs, Spices)

  • Senfkörner (Mustard Seeds)
  • Knoblauch (Garlic)
  • Schwarzer Pfeffer (Black Pepper)
  • Petersilie (Parsley)
  • Gewürze-Pool (Spice Pool: Caraway, Dill, Vanilla)

Hefen (Yeasts)

  • Backhefe (Baker's Yeast)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To discuss and validate
Development

No branches or pull requests

2 participants