百科

How the Shopping List Nutrition Matcher Works

How pasted grocery list lines are deterministically mapped to foods and converted into nutrition totals.

Verified against USDA FoodData Central on 20 Feb 2026 Updated 20 February 2026 3 min read

Translation unavailable - this article is shown in English. View English version

Summary

The Shopping List Nutrition Matcher parses one food item per line, normalizes text deterministically, maps each line to the closest food match in the local food database, and totals nutrition from selected matches.

How it works

  1. Parse list lines.
  2. Normalize terms (case, punctuation, plurals, common synonyms).
  3. Rank food candidates by deterministic token overlap scoring.
  4. Let users adjust each matched item and portion grams.
  5. Sum totals for calories, macros, and sodium/salt.

Sodium and Salt

The calculator shows sodium in mg and salt equivalent in g:

  • salt(g) = sodium(mg) / 1000 × 2.5
  • UK benchmark shown in UI: max 6g salt/day (about 2400mg sodium/day).

Assumptions

  • Matching is deterministic and local (no LLM calls).
  • Totals depend on selected candidate and portion size.
  • Database values are USDA-based reference food values.

数据来源

Gov
USDA FoodData Centralaccessed 20 Feb 2026
Gov
NHS - Salt: the factsaccessed 20 Feb 2026
nutrition shopping-list food-matching sodium salt