Receipts are written in shorthand
A register prints maybe 20 to 30 characters per line. Store systems were built when that was a hard limit, and every chain settled on its own way of squeezing product names into it. Whole Foods prefixes its house brand with "365WFM". Costco uses "KS" for Kirkland Signature and drops vowels freely. Safeway prints the UPC, minus its check digit, in front of the name. Trader Joe's cuts words off mid-syllable when the line runs out. The same letters mean different things at different stores: "GRDN" is Gardein at QFC and Garden in a Marie Callender's pot pie.
BigCartBuddy turns receipts into a picture of household spending: what you buy, how often, where it is cheaper. None of that works if "PB" is sometimes peanut butter and sometimes plant-based and the app can't tell which. So item names matter more than almost anything else in the product.
How a line gets its name
Every printed line goes through the same four steps, and stops at the first one that can answer with confidence:
printed line
1. the household's own rules (exact line, then #item-number)
2. the shared pack (only at a trusted store, only if every word is read)
3. a model (remembered as a rule at 85%+ confidence)
4. a deterministic fallback (low confidence, retried in 12 hours)The household's own answers always win. If you renamed "TJ UNEXP CHDR" once, that is what it is called forever at that store. The shared pack comes next, and it is deliberately timid: it only names a line when the store has earned trust (ten remembered names it reads at 95% agreement), every word on the line is read, and every word it keeps is either a dictionary word or a word the household already uses. Anything less goes to a model, and confident model answers are remembered as rules so the model is asked once per line, not once per trip.
The pack itself is a JSON file of small sets. Each set has a kind (abbreviation, brand, cut-off completion or register flag), the store it applies to, and provenance: where it came from, who added it, and how sure they were.
{
"id": "kroger-family-shorthand-2026-11b",
"kind": "abbreviation",
"store": "qfc",
"entries": { "grdn mtbl": "Gardein Meatballs", "tylnl": "Tylenol" },
"provenance": { "source": "receipts", "author": "...", "confidence": 0.9, "addedAt": "2026-11-14" }
}New sets are scored against lines the household has already settled, and a set that breaks one is refused. That gate earned its keep this week: a shared "grdn = Gardein" entry turned the pot pie into a "Gardein Pot Pie", so it moved to a QFC-only phrase instead.
The bug: none of it was running
I had just hand-imported about 470 scanned receipts from Google Drive, and asked a simple question: how are the rules doing? The answer was humbling. Zero lines in production had been named by the pack.
The cause was one condition. The pack only named a line that already had a category, on the theory that a name without a category is half an answer. Receipts read by the app get a category from the vision model. The Drive imports arrived as "Uncategorized", so every one of their lines skipped the pack, found the model over its spending cap, and fell to the low-confidence fallback, which waits twelve hours to retry. About 1,600 lines were sitting there with names like "Grdn Mtbl".
The lesson I keep relearning: coverage measured in a test is not coverage in production. The pack's test suite was green the whole time.
How everyone else does it
Before fixing it I wanted to know whether this design was any good, so I read what I could find about how others solve the same problem.
- Microblink and Veryfi, the big receipt-reading APIs, expand shorthand with models trained across every retailer at once and then match the line to their own product catalog. Microblink describes a catalog of around 15 million products and returns a UPC and category per line. The mapping is proprietary, and neither publishes accuracy.
- Punchh's patent (US 12,182,844) is the most detailed public description: generate candidate spellings, verify them against a knowledge base, match with a classifier trained per merchant, and send low-confidence groups to people who approve or reject them. Approvals become training data.
- Academic work on abbreviated retail names (a 2020 Scitepress paper) found a TF-IDF character model classifies category well, around 0.91 F1, and that a normalization dictionary adds little for classification. That is a useful reminder that category and name are different problems.
- Open source parsers like forager-parser keep a YAML profile per merchant, but for layout, not item names. Open Food Facts runs Open Prices, which ties names read off receipts to barcodes under ODbL, but does not expand them.
And the stores themselves? Kroger is the only big grocer with a public product API: client credentials, 10,000 calls a day, UPC, description, brand, categories and size. That covers QFC and Fred Meyer here in Seattle. Albertsons and Safeway, Costco, Trader Joe's and Whole Foods offer nothing public. Instacart's developer platform builds recipe and shopping-list pages, not product lookup.
Where the pack stood
Honestly, it was ahead in some places and clearly behind in others.
Ahead:
- Every entry is per store, versioned, and has provenance. Nobody above publishes a regression gate for their shorthand.
- It is deterministic and explainable. Each answer says which shorthand it read and which words it couldn't.
- The household's corrections come first, which is the same loop Punchh describes, without a reviewer dashboard.
Behind:
- No product identity. Lines were named, never matched to a UPC, and the item numbers Safeway and Costco print were stripped instead of used.
- No reading in context. A word was either in a set or unread, so a shared entry could be wrong at one store.
- No measure of precision. Coverage was measured; correctness wasn't.
- The category gate, which meant imports never reached the pack at all.
What changed
Categories come from the household. A line with no category now takes the one the household has already settled: the same product first, otherwise the category most names ending in the same word share ("Tortilla Chips" with the other chips), when at least two agree and nothing ties. A line the household has never settled still waits, which is the right kind of timid.
Item numbers are keys. When a receipt prints a UPC, PLU or a store item number, the rule is also kept under that number. Next trip, if the register cuts the text differently, the number still finds it.
Phrases. Entries can now span up to three words and are read before single words, so "grdn mtbl" can mean Gardein Meatballs at QFC without claiming "grdn" means Gardein everywhere.
A stricter idea of "read". The pack was too generous about what counted as a real word. "TH", "CA", "SP" and "TYLNL" all passed. Now a two-letter word is shorthand unless it is a common short word, an unknown word that is short, vowel-less, or has four consonants in a row is shorthand, and the last word on a full-width line is treated as possibly cut off.
Precision, measured. I labeled 121 lines across nine stores with the name a person would actually write, and now every pack change reports two numbers per store: coverage (how many lines it fully reads) and precision (how many of those match the label).
| Store | Lines | Coverage | Precision |
|---|---|---|---|
| Costco | 22 | 95% | 100% |
| QFC | 20 | 100% | 100% |
| Safeway | 20 | 80% | 100% |
| Trader Joe's | 20 | 95% | 100% |
| Whole Foods | 13 | 77% | 90% |
| Metropolitan Market | 9 | 89% | 100% |
| King Kullen | 8 | 88% | 100% |
| WinCo | 6 | 83% | 100% |
| PCC | 3 | 100% | 100% |
One caveat, stated plainly because it matters: some entries in the current pack were added after I had looked at these labels. That makes the set a regression floor (a test fails if any store drops below 75% coverage or 90% precision) rather than a clean held-out score. The rule from here on is labels first, entries second. The one miss is "365WFM VEG POTSTCKRS", which reads as "Veg Potstickers" where the label says "Vegetable Potstickers".
Catalogs. When a line carries an item number, it can now be checked against Open Food Facts by barcode. Registers often drop the check digit, so the lookup tries the number with its computed check digit first and as printed second. At Kroger-family stores it also asks Kroger's catalog, by UPC or by the pack's name. These answers are shown, not trusted: they don't rename anything in a household yet.
Why it's public
The pack describes how stores print, never what anyone bought. There is no reason to keep that private, and every receipt tool is solving the same shorthand alone. So it is now open, read-only, atbigcartbuddy.com/api/public/naming:
GET /api/public/naming: what the API is, its limits and license.GET /api/public/naming/pack?store=QFC: the whole pack, or one store's view of it, with provenance.GET /api/public/naming/stores: every store with entry counts and its labeled coverage and precision.GETorPOST /api/public/naming/expand: send printed lines, get them back read.
curl 'https://bigcartbuddy.com/api/public/naming/expand?store=QFC&line=GRDN%20MTBL&line=TYLNL%20XS%20500CT'
{
"packVersion": "2026-11-14.5",
"store": "qfc",
"results": [
{ "printed": "GRDN MTBL", "name": "Gardein Meatballs",
"readable": true, "unresolved": [], "code": null, ... },
{ "printed": "TYLNL XS 500CT", "name": "Tylenol Xs",
"readable": false, "unresolved": ["xs"], "code": null, ... }
]
}Note the second line. The API doesn't guess: "XS" is probably Extra Strength, but the pack hasn't learned that yet, so it says so and marks the line unreadable. An honest "I don't know" is more useful to build on than a confident wrong answer. Add lookup to check lines against the catalogs:
curl -X POST https://bigcartbuddy.com/api/public/naming/expand \
-H 'content-type: application/json' \
-d '{ "store": "Safeway", "lookup": true,
"lines": ["0003600029145 KLNX TISS", "CA ROLL"] }'There is no sign-in, CORS is open to any origin, and the limits are 120 requests a minute, 100 lines per call and 20 catalog lookups per call. Only the pack is applied: no household's rules, items or receipts are ever read by these routes. The data is CC BY 4.0, so use it, and credit BigCartBuddy.