Parsing the ingredient line
Each line is split into quantity, unit and food name, then matched to the site’s stored food database. Household measures use food-specific weights where available and generic defaults otherwise: a handful defaults to 30 g, while a can can fall back to a piece weight rather than its drained contents. Use explicit gram weights and check unmatched lines.