Parse mentions for specific ingredients like "Prepared with 20% of fruits", "Total milk content: 23%" at the end of the ingredients list #6242
Labels
✨ Feature
Features or enhancements to Open Food Facts server
🥗🔍 Ingredients analysis
https://wiki.openfoodfacts.org/Ingredients_Extraction_and_Analysis
🥗 Ingredients
🚦 Nutri-Score
What
Some products specify the % of specific ingredients at the end of the ingredient list.
e.g. https://uk.openfoodfacts.org/product/5000354912696/birds-brandy-sauce
"Ingredients list:
Skimmed Milk, Buttermilk, Sugar, Modified Maize Starch, Brandy (1.5%), Palm Oil, Whey (Milk), Flavouring. Total Milk Content 73%. "
https://fr.openfoodfacts.org/produit/8410409010142/alvalle-gazpacho-tradicional
"Tomate,concombre,poivron,oignon,eau,huile d'olive vierge extra (1,1%),vinaigre de vin,pain de riz,sel,ail,jus de citron,teneur en légumes: 89%"
Those strings are currently unrecognized and prevent accurate ingredients analysis. They also contain valuable info about the fruits or milk content which are factors for the Nutri-Score computation.
Describe the solution you'd like
Parse the strings, record their content in a new specific_ingredients structure that can be used for the Nutri-Score algorithm.
Part of
The text was updated successfully, but these errors were encountered: