How it reads a line
Each line is split into an amount, a unit and an ingredient. It understands whole numbers, decimals, fractions like 1 1/2 and ¾, and ranges like 2–3. Sizes in brackets, like "1 (14 oz) can tomatoes", stay as a note: you buy one can.
Words that describe how you cut or cook an ingredient are dropped when matching: "1 large onion, diced" and "2 onions" are one item. Names that mean the same thing, like scallions and green onions, are one item too.
How it adds
- Same unit family. 1 tbsp + 2 tsp becomes 5 tsp. 8 oz + 250 g becomes one weight.
- Cups and grams. For flour, sugar, butter, oils, milk, rice, oats and other staples it knows the weight of a cup, so 1 cup + 200 g becomes about one weight. It marks that with ≈. The weights come from our cups to grams table.
- Cans, jars and cloves. Counted separately, so 2 cans and 1 jar never become 3.
- Sticks of butter. One stick is 8 tablespoons.
Aisles
Items are sorted in the order you usually walk a supermarket: produce, bakery, meat and seafood, dairy and eggs, frozen, pantry, baking, spices. Anything it does not recognize goes under Other. Stores differ, so treat the order as a good start.