Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve parsing of 'category (type 1, type 2..)' ingredients (#1…
…0999) PR to better handle things like "vegetal oil (palm, rapeseed)": - instead of turning "vegetal oil (palm, rapeseed)" to "palm vegetal oil", "rapeseed vegetal oil", we now turn it to "vegetal oil (palm vegetal oil, rapeseed vegetal oil)", as keeping a parent ingredient is better for ingredient percent estimation - improved the definition of all the variations of "huile et stéarine végétales non hydrogénées (colza, palme)" to have better coverage - added support for percentages like "huiles végétales 54% (colza, palme)" Work in progress, some tests will need to be updated. --------- Co-authored-by: Open Food Facts Bot <[email protected]> Co-authored-by: Pierre Slamich <[email protected]> Co-authored-by: Alex Garel <[email protected]> Co-authored-by: Alex Garel <[email protected]>
- Loading branch information