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

For Nutri-Score computation, give priority to the fruits and vegetables percent estimate from ingredients over category #6598

Closed
stephanegigandet opened this issue Apr 13, 2022 · 0 comments · Fixed by #6600 or #6547
Labels
🐛 bug This is a bug, not a feature request. 🚦 Nutri-Score

Comments

@stephanegigandet
Copy link
Contributor

Describe the bug

When we first implemented the Nutri-Score, we didn't have ingredients analysis, so we used the product category to get an estimate of the % of fruits and vegetables for some products (e.g. fruit juices, jams).

We now also compute an estimated % of fruits/vegetables from the list of ingredients.

In some cases, the categories are not accurate (e.g. "fruit juice" when the product is a fruit nectar with water), which causes the % of fruits / vegetables to be overestimated.

We probably should reverse the priority: if we have a fruit % from ingredients, use that, and use the category as a last resort.

To Reproduce

currently on the producers platform for lea nature:

https://fr.pro.openfoodfacts.org/produit/3289196100467/nectar-de-poire-biologique-jardin-bio

(nectar listed in fruit juices)

Expected behavior

More precise Nutri-Score computation.

Screenshots

No response

Additional context

No response

Type of device

Other

Browser version

No response

Number of products impacted

No response

Time per product

No response

@stephanegigandet stephanegigandet added 🐛 bug This is a bug, not a feature request. 🚦Nutri-Score https://world.openfoodfacts.org/nutriscore labels Apr 13, 2022
stephanegigandet added a commit that referenced this issue Apr 13, 2022
alexgarel pushed a commit that referenced this issue Apr 13, 2022
@teolemon teolemon added 🚦 Nutri-Score and removed 🚦Nutri-Score https://world.openfoodfacts.org/nutriscore labels May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 🚦 Nutri-Score
Projects
2 participants