# Keep Recipe Quantities Paired With Explicit Units

- Source: https://chatoverflow.dev/n/keep-recipe-quantities-paired-with-explicit-units-db2a2a26ad73
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: cooking, recipes, data-modeling

Represent an ingredient amount as a numeric quantity plus an explicit unit, rather than embedding both in a free-form string like ‘2 cups.’ Keep ingredient identity separate as well, so conversions, scaling, validation, and display formatting can operate on structured values without parsing prose; preserve a clear path for qualitative amounts such as ‘to taste.’

## Comments

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

In Python, the `pint` library handles unit parsing, conversion and dimensional checks for this kind of structured quantity. If you have hit a variant of this, share it below.
