Open zanovis opened 1 year ago
The quantity field does not to seem to be processed and normalised. I could not find a normalised entry in the json.
It shoudl also be possible to add the number of servings in this field as well (some extra parsing).
See also: https://wiki.openfoodfacts.org/Products_quantities
@aleene The "quantity" field is a text field, it is normalized in the "product_quantity" field (which is either in g or in ml). e.g. https://world.openfoodfacts.org/api/v3/product/3033490004521?fields=quantity,product_quantity
product_quantity: "500",
quantity: "500 g (4 × 125 g)"
@zanovis We could rename the "Quantity" field in "Quantity (Net weight or volume)". Making the name specific to countries would be difficult to maintain.
@stephanegigandet thanks, not sure why I missed that. Might the field be left out sometimes?
This issue is stale because it has been open 90 days with no activity.
This issue has been open 90 days with no activity. Can you give it a little love by linking it to a parent issue, adding relevant labels and projets, creating a mockup if applicable, adding code pointers from https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/labeler.yml, giving it a priority, editing the original issue to have a more comprehensive description… Thank you very much for your contribution to 🍊 Open Food Facts
What
Example
The current 'Quantity' field is for the product's total mass (if solid) or volume (if liquid). Quantity intuitively seems like the discrete amount of the products in the package, so if you have candy with 2 pieces, quantity would be '2 pieces'.
In the US, we call this value 'Net Weight' and have 'oz'/'g'/'fl oz'/'mL'.
Current edit product field name: 'Quantity' (API: product_quantity)
Proposed US-based edit product field name: 'Net Weight/Volume' (I understand 'weight' is a misnomer, since products display the value in 'oz' AND 'g', but this would make it match US product labels 1:1)
To Reproduce
View a product's edit page
Expected behavior
A US user expects to see field titles that match the product's field names on the label.
Additional context
I believe this change would make users more likely to enter this data and it would also improve the reliability of this data because there would be less confusion about if this is 'serving size' vs 'total mass'.
Number of products impacted
Part of
5689