We have 2 fields for allergens: allergens and traces. The value of the allergens field is created from the ingredients list of the main language of the product, and the values of the traces field are coming from users in the traces field of the product edit form.
Bug #1238 is going to change how the fields are populated: both allergens and traces will be extracted from the ingredients list, and users will have the opportunity to add (and only add) allergens with fields in the product edit form.
This new bug is to track changes and improvements to the allergens and traces detection.
In particular:
Detect if an allergen in the ingredient is an actual ingredient ("contains") or a trace, and put it in the correct field.
Add detection for allergens in parenthesis (e.g. farine de blé (gluten))
Detect allergens that are not in bold, underscores, parenthesis or all caps, but that are listed as as separate ingredient (e.g. "lait" and "crème", but not "crème de cassis").
We have 2 fields for allergens: allergens and traces. The value of the allergens field is created from the ingredients list of the main language of the product, and the values of the traces field are coming from users in the traces field of the product edit form.
Bug #1238 is going to change how the fields are populated: both allergens and traces will be extracted from the ingredients list, and users will have the opportunity to add (and only add) allergens with fields in the product edit form.
This new bug is to track changes and improvements to the allergens and traces detection.
In particular:
Detect if an allergen in the ingredient is an actual ingredient ("contains") or a trace, and put it in the correct field. Add detection for allergens in parenthesis (e.g. farine de blé (gluten)) Detect allergens that are not in bold, underscores, parenthesis or all caps, but that are listed as as separate ingredient (e.g. "lait" and "crème", but not "crème de cassis").