You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For most products, we mark the ingredients analysis for palm oil, vegan and vegetarian as "unknown" because even though we didn't detect palm oil, meat etc. there is at least one ingredient that we didn't recognize, so there is a possibility that it contains palm oil or meat etc.
For palm oil specifically, I think we could relax that, and make the assumption that if there is palm oil listed, then we will recognize it.
It's probably ok in almost all cases (except OCR / spelling mistakes) as there are relatively few wordings for palm oil
We can't do it for vegetarian / vegan as there are countless unidentified ingredients that do contain meat.
Describe the solution you'd like
Mark products as "palm oil free" if:
we have a list of ingredients
we have not detected palm oil in any of the recognized ingredients
even if there are unrecognized ingredients
A variant could be to have a threshold on unrecognized ingredients (e.g. max 20% of unrecognized ingredients). That would remove products that have bogus lists of ingredients, or lots of OCR mistakes, that would increase a lot the chance of missing a mispelled "pa1m oil"
* fix: assume unrecognized ingredients are not palm oil #6700
* update tests
* keep and display unknown ingredients even for palm oil free products
* update tests
* small fixes and test updates
Is your feature request related to a problem? Please describe.
For most products, we mark the ingredients analysis for palm oil, vegan and vegetarian as "unknown" because even though we didn't detect palm oil, meat etc. there is at least one ingredient that we didn't recognize, so there is a possibility that it contains palm oil or meat etc.
e.g. for US products: https://us.openfoodfacts.org/ingredients-analysis
Ingredients analysis Products *
Vegetarian status unknown 212254
Palm oil content unknown 176979
Non-vegan 146183
Vegan status unknown 125784
Palm oil free 84100
Vegetarian 51024
Non-vegetarian 45105
Vegan 44871
Palm oil 37854
May contain palm oil 30830
Maybe vegetarian 21732
Maybe vegan 13271
For palm oil specifically, I think we could relax that, and make the assumption that if there is palm oil listed, then we will recognize it.
It's probably ok in almost all cases (except OCR / spelling mistakes) as there are relatively few wordings for palm oil
We can't do it for vegetarian / vegan as there are countless unidentified ingredients that do contain meat.
Describe the solution you'd like
Mark products as "palm oil free" if:
A variant could be to have a threshold on unrecognized ingredients (e.g. max 20% of unrecognized ingredients). That would remove products that have bogus lists of ingredients, or lots of OCR mistakes, that would increase a lot the chance of missing a mispelled "pa1m oil"
Describe alternatives you've considered
Make ingredients analysis perfect. :)
Additional context
Discussion in Slack: https://openfoodfacts.slack.com/archives/C06A7LENM/p1650986280363959
Number of products impacted
No response
Time per product
No response
The text was updated successfully, but these errors were encountered: