Part II — Products, companies and places · Chapter 5

Finding comparable store-brand products

A quarter of national-brand products in Open Food Facts have a store-brand product with a near-identical name and ingredient list, and four in five of those pairs pass a hand check. Their nutrition labels still differ more often than not, in both directions, except for simple products such as water and milk.

On this page
  1. Which products are in scope
  2. What counts as a match, and how often it holds
  3. A quarter of national products have a close store-brand match
  4. Matched products seldom carry the same label
  5. Simple products agree most, recipe products least
  6. Look up a product
  7. How the pipeline retrieves and re-ranks candidates
  8. Lab: three ways to run the nearest-neighbour search
  9. Reusing the approach
  10. The store-brand list

When a store sells its own version of a national-brand product, is it the same food? Open Food Facts, the crowd-sourced database of product labels that Chapter 4 read, holds both kinds side by side. This chapter pairs every national-brand product with the most similar store-brand product in the same category, judged by product name and ingredient list, and then compares the two nutrition labels.

A pair close enough to call twins was found for 34,960 of the 134,624 national-brand products in scope. Of the 31,187 twins whose two labels both give energy, fat, sugars, protein and salt, 6,471 agree on all five within 10%. Twins mostly read alike and are labelled differently, and the differences run in both directions.

Twins with near-identical names and ingredients mostly carry different nutrition labels

BiscuitsHoney Maid Graham CrackersHoney MaidGraham CrackersSignature Kitchens0.992−33−3.7−4.3−0.01differs
Snackscrispy coconut rollsOrganicCrispy Baked Coconut RollsBenton's0.962−2−6.7−5.80.00differs
GroceriesClassic HummusSabraClassic HummusMarketside0.990+170.0−2.1+1.13differs
BreadsSourdough BreadThe Rustik OvenSourdough breadStater Bros.0.989+980.0−0.4+0.41differs
Frozen dessertsAssorted Fruit Ice PopsOutshineFruit Ice PopsFresh & Easy0.904+2+7.40.0+0.05differs
CheesesSliced Swiss CheeseSargentoBrookshire's, sliced swiss cheeseBrookshire's0.982−730.0−6.7+0.11differs
PastasAngel HairBarillaAngel HairHaggen0.991+18+3.60.00.00differs
SodasRoot beerOlipopRoot beerWinn-Dixie0.945+44+12.10.0+0.01differs
Salted snacksEXTRA LARGE Pitted Ripe OlivesPEARLSExtra large black pitted ripe olivesAhold0.95700.00.00.00same
Cereals and their productsCinnamon Toast CrunchGeneral MillsCinnamon crunchSignature Select0.926−15+0.7+0.2+0.04same
ConfectioneriesTwizzlers Strawberry TwistsTwizzlersCircle k, favorites, strawberry twistsCircle K0.911+29+3.2+1.6+0.15differs
Plant based beveragesCranberry apple juiceOcean SprayCranberry juiceMarket Pantry0.915+8+1.70.0−0.01differs
12 rows
One pair from each of the 12 categories with the most judged twins: the national-brand product with the most Open Food Facts scans, and its twin. Differences are per 100 g, twin minus national brand. "Core five" is "same" when energy, fat, sugars, protein and salt all agree within 10% of the larger value (or within label rounding: 10 kcal, 1 g, 0.1 g salt). Across all judged twins, 21% are the same on all five. Values are as entered by contributors, and a few will be entry errors.SourceOpen Food Facts US products, snapshot 2026-10-24 (ODbL); store-brand list curated for this chapter
Querychapters/05-store-brand-twins/pipeline/50_model.sqlShow SQL
50_model.sqlSQL
SELECT t.nb_code, t.pl_code, s.nutrient,
       a.value AS nb_value, b.value AS pl_value, b.value - a.value AS delta,
       abs(b.value - a.value) <= greatest(s.abs_floor, 0.10 * greatest(a.value, b.value)) AS same
FROM twins t
JOIN product_nutrients a ON a.code = t.nb_code
JOIN product_nutrients b ON b.code = t.pl_code AND b.nutrient = a.nutrient
JOIN nutrient_spec s ON s.nutrient = a.nutrient;

One row per twin and nutrient that both products reportRuns at build time in DuckDB 2.0; shown for reading.Open file

Which products are in scope

Chapter 4 read the Open Food Facts parquet file once and kept the products tagged as sold in the US. This chapter starts from that file and checks that it is the one Chapter 4 published: the row count and an order-independent hash of every row must equal the entry in Chapter 4's committed manifest, or the run stops.

Open Food Facts has no "store brand" field, so the chapter brings its own list. It names 270 brand keys under 180 labels that it treats as a US retailer's own label, and a set of anchored patterns that catch brand keys built from those names, such as happy-farms-by-aldi or kroger-private-selection. The patterns pulled in 1,375 more brand keys, which were not reviewed one by one. Retailer labels from outside the US, keys that pair a national brand with a store name (kirkland-signature-ocean-spray), brand keys the curation could not place, placeholder strings such as n-a, and a few keys that are a person's name entered as the brand are left out of both sides. Every other brand counts as a national brand, which here means only "not on the list". The full list is at the end of the chapter.

What counts as a match, and how often it holds

A "twin" in this chapter is a working label, not a finding: the store-brand product in the same Open Food Facts category whose name and ingredient list are most similar to the national product's, with a similarity score of at least 0.90. It says nothing about who made either product, whether they taste alike, or whether a shopper could find both in one store.

The first version of the match failed in an instructive way. Ranked on the full text alone, 32 of 50 randomly drawn pairs were like-for-like, and 18 were the same kind of product in another flavour, cut or form: hickory against peppered jerky, whole against sliced water chestnuts. The ingredient list dominated the text, and the flavour was often only in the name. Re-ranking the ten nearest candidates on the name as well raised strict precision on a fresh sample of 50 to 80% as first labelled, and to 82% (95% interval 69% to 90%) after the rubric gained a size convention.

Two cautions follow. That rubric change came after labelling, so the 82% is development evidence, not an independent validation; a sample labelled under a rubric fixed in advance, drawn across categories and similarity bands, would be. And the score is a similarity, not a probability that a pair is a valid substitute. The nutrient comparisons below therefore include roughly one pair in five that a person would not call like-for-like.

A quarter of national products have a close store-brand match

A quarter of national-brand products have a store-brand twin at a score of 0.90 or more

Best match score for each of the 134,624 national-brand products in scope: the mean of the cosine similarities of the full texts and of the names. Pairs at 0.90 or more are twins, 26.0% of products. At 0.85 the share would be 38%, at 0.95 it would be 16%. The threshold was set by reading pairs in each band before the labelled sample was drawn.SourceOpen Food Facts US products, snapshot 2026-10-24 (ODbL)

The 34,960 twins point to 13,794 distinct store-brand products, since one store product can be the closest match for several national ones. Twins are not the same product, only the closest store-brand product by name and ingredients: in the labelled sample, 9 of 50 fell short of a like-for-like substitute.

Matched products seldom carry the same label

About half to seven in ten twins agree on any one nutrient, sugars and salt least often

0%20%40%60%80%100%Share of twins that agreeFibre: 68%Fibre68%Protein: 67%Protein67%Energy: 64%Energy64%Fat: 63%Fat63%Saturated fat: 58%Saturated fat58%Carbohydrate: 58%Carbohydrate58%Salt: 54%Salt54%Sugars: 53%Sugars53%
Share of store-brand twins whose per-100 g value agrees with the national brand, by nutrient, Open Food Facts US products, October 2026
Fibre68%
Protein67%
Energy64%
Fat63%
Saturated fat58%
Carbohydrate58%
Salt54%
Sugars53%
Share of twins whose two labels agree within 10% of the larger value (or within label rounding) on each nutrient, among twins where both products give it. Agreement on all five core nutrients at once is 21%; with a 5% tolerance it is 16.5% and with 20%, 30.8%.SourceOpen Food Facts US products, snapshot 2026-10-24 (ODbL)

Sugars agree for 52.6% of twins and salt for 54.2%, against 63.6% for energy. When they disagree, the store brand is not consistently the sweeter or saltier one: its label shows more sugar in 25% of twins and less in 22%, more salt in 24% and less in 22%. The median difference is 0 for 8 of the 8 nutrients compared.

Differences between twins centre on zero and spread both ways

Energy, kcal

Sugars, g

Fat, g

Salt, g

Per-100 g difference, store-brand twin minus national brand, for every twin where both labels give the value. Bars are counts of twins. Differences beyond the plotted range are left out: 1.4% of energy differences fall outside ±300 kcal, 4.2% of sugar differences outside ±20 g.SourceOpen Food Facts US products, snapshot 2026-10-24 (ODbL)

Simple products agree most, recipe products least

Bottled waters and milks match on all five nutrients most often; breads, crisps and sausages least

0%20%40%60%80%100%Share of judged twins the same on all fiveWaters (258): 91%Waters (258)91%Milks (407): 69%Milks (407)69%Honeys (240): 56%Honeys (240)56%Fruits and vegetables based foods (211): 55%Fruits and vegetables based foods (211)55%Sodas (669): 51%Sodas (669)51%Canned fruits (159): 40%Canned fruits (159)40%Tomatoes (182): 38%Tomatoes (182)38%Plant based beverages (680): 38%Plant based beverages (680)38%Iced teas (175): 37%Iced teas (175)37%Canned vegetables (251): 29%Canned vegetables (251)29%Confectioneries (785): 28%Confectioneries (785)28%Pastas (489): 27%Pastas (489)27%Canned soups (244): 26%Canned soups (244)26%Frozen vegetables (169): 25%Frozen vegetables (169)25%Cheeses (1332): 24%Cheeses (1332)24%Canned common beans (305): 22%Canned common beans (305)22%Greek style yogurts (252): 18%Greek style yogurts (252)18%Yogurts (406): 18%Yogurts (406)18%Cereals and their products (471): 17%Cereals and their products (471)17%Peanut butters (165): 16%Peanut butters (165)16%Snacks (2958): 15%Snacks (2958)15%Dehydrated beverages (173): 13%Dehydrated beverages (173)13%Fruit and vegetable preserves (254): 13%Fruit and vegetable preserves (254)13%Biscuits (864): 12%Biscuits (864)12%Frozen desserts (1036): 11%Frozen desserts (1036)11%Biscuits and cakes (152): 11%Biscuits and cakes (152)11%Cakes (451): 11%Cakes (451)11%Salted snacks (470): 11%Salted snacks (470)11%Groceries (3182): 10%Groceries (3182)10%Corn chips (275): 10%Corn chips (275)10%Soups (196): 9%Soups (196)9%Prepared meats (341): 9%Prepared meats (341)9%Pizzas (165): 8%Pizzas (165)8%Frozen foods (283): 6%Frozen foods (283)6%Chocolate candies (350): 5%Chocolate candies (350)5%Frozen seafood (178): 5%Frozen seafood (178)5%Beef jerkies (171): 4%Beef jerkies (171)4%Cake mixes (185): 4%Cake mixes (185)4%Breads (781): 3%Breads (781)3%Potato crisps (234): 3%Potato crisps (234)3%Sausages (324): 2%Sausages (324)2%
Share of store-brand twins the same on energy, fat, sugars, protein and salt, by Open Food Facts category, October 2026
Waters (258)91%
Milks (407)69%
Honeys (240)56%
Fruits and vegetables based foods (211)55%
Sodas (669)51%
Canned fruits (159)40%
Tomatoes (182)38%
Plant based beverages (680)38%
Iced teas (175)37%
Canned vegetables (251)29%
Confectioneries (785)28%
Pastas (489)27%
Canned soups (244)26%
Frozen vegetables (169)25%
Cheeses (1332)24%
Canned common beans (305)22%
Greek style yogurts (252)18%
Yogurts (406)18%
Cereals and their products (471)17%
Peanut butters (165)16%
Snacks (2958)15%
Dehydrated beverages (173)13%
Fruit and vegetable preserves (254)13%
Biscuits (864)12%
Frozen desserts (1036)11%
Biscuits and cakes (152)11%
Cakes (451)11%
Salted snacks (470)11%
Groceries (3182)10%
Corn chips (275)10%
Soups (196)9%
Prepared meats (341)9%
Pizzas (165)8%
Frozen foods (283)6%
Chocolate candies (350)5%
Frozen seafood (178)5%
Beef jerkies (171)4%
Cake mixes (185)4%
Breads (781)3%
Potato crisps (234)3%
Sausages (324)2%
Share of judged twins that agree on all five core nutrients, for the 41 categories with at least 150 judged twins. Categories are Open Food Facts' most specific tag, which contributors set unevenly: "Groceries" and "Snacks" are broad catch-alls.SourceOpen Food Facts US products, snapshot 2026-10-24 (ODbL)

Categories of simple products agree most: 91.5% of twins in waters, where 84% of the comparisons are 0 against 0, and 69.0% in milks. Categories of recipe products agree least: 3.1% in breads, 3.0% in potato crisps and 2.5% in sausages. In those categories, a store-brand twin in Open Food Facts usually carries a different label from the national product it resembles.

Look up a product

How the pipeline retrieves and re-ranks candidates

  1. Keep shelf products, and split them by brand

    Not every code in Open Food Facts is a shelf barcode. 37,823 codes have no barcode length, 37,778 of them 15 to 30 digits long, the form the restaurant-chain menu entries in this file take; another 23,559 have a barcode's length but a wrong check digit. A retail barcode (GTIN-8, -12, -13 or -14) ends in a check digit computed from the others. An 8-digit code can also be a UPC-E, a zero-suppressed UPC-A, which is expanded before the test; 7,369 codes pass only that way.

    10_stage.sqlSQL
    CREATE OR REPLACE MACRO check_digit_ok(c) AS
        (SELECT (10 - sum(substr(lpad(c, 14, '0'), i, 1)::INT
                          * CASE WHEN i % 2 = 1 THEN 3 ELSE 1 END) % 10) % 10
         FROM range(1, 14) r(i)) = right(c, 1)::INT;
    CREATE OR REPLACE MACRO gtin_ok(c) AS
        barcode_length(c) AND (check_digit_ok(c) OR (length(c) = 8 AND upce_ok(c)));

    checks.sql tests the macros on the GS1 examples (EAN-13 4006381333931, UPC-A 036000291452, EAN-8 96385074), on the UPC-E code 04965802 (UPC-A 049000006582), and on each with the last digit changed.

    173,249 store-brand products, 4,571 of them through a pattern · 928,349 with a retail barcodechapters/05-store-brand-twins/pipeline/10_stage.sql

  2. Embed only what can be matched

    A product needs a name, an ingredient list, an energy value and a category to be matched and compared, and its category must hold products from both sides. The category is Open Food Facts' most specific category tag. Each product gets two texts, both without the brand: its cleaned name, and the name followed by the category words and the start of the ingredient list.

    20_scope.sqlSQL
    CREATE OR REPLACE TABLE embed_input AS
    SELECT code, side,
           name_clean || '. ' || replace(regexp_replace(category, '^[a-z]{2}:', ''), '-', ' ')
           || '. ingredients: ' || lower(left(regexp_replace(ingredients_text, '\s+', ' ', 'g'), 400)) AS text,
           name_clean AS name_text
    FROM scope ORDER BY code;

    134,624 national-brand and 44,641 store-brand products in 1,847 categorieschapters/05-store-brand-twins/pipeline/20_scope.sql

  3. Compute embeddings in Python, on CPU

    SQL cannot run a neural network, so this one step is Python. It runs sentence-transformers/all-MiniLM-L6-v2, a small open model whose ONNX file is 90 MB, through ONNX Runtime on two CPU threads, pinned to one Hugging Face revision. No GPU and no PyTorch.

    30_embed.pyPython
    enc = tok.encode_batch([texts[i] for i in idx])            # WordPiece, truncated at 128
    ids = np.array([e.ids for e in enc], dtype=np.int64)
    mask = np.array([e.attention_mask for e in enc], dtype=np.int64)
    hidden = sess.run(None, {"input_ids": ids, "attention_mask": mask,
                             "token_type_ids": np.zeros_like(ids)})[0]
    m = mask[:, :, None].astype(np.float32)
    pooled = (hidden * m).sum(axis=1) / m.sum(axis=1)           # mean over real tokens
    pooled /= np.linalg.norm(pooled, axis=1, keepdims=True)     # unit length

    The vectors go to parquet as fixed-size lists, and DuckDB stores them as FLOAT[384] arrays: e.emb_text::FLOAT[384] AS emb. A fixed size is what the array distance functions, NEAREST and the vss index expect.

    2 × 179,265 texts in 1,469.9 s, 384 values eachchapters/05-store-brand-twins/pipeline/30_embed.py

  4. Find the 10 nearest store-brand products with a NEAREST join

    Comparing within the category cuts the work from 5,633,879,776 pairs to 117,754,155. NEAREST has no ON clause in 2.0, but its right side can be a LATERAL subquery that refers to the left row.

    40_match.sqlSQL
    CREATE OR REPLACE TABLE m_nearest_raw AS
    SELECT n.code AS nb_code, p.code AS pl_code
    FROM nb_vec n
    JOIN LATERAL (FROM pl_vec WHERE pl_vec.category = n.category) p
        NEAREST 10 BY SIMILARITY array_cosine_similarity(n.emb, p.emb);

    Only the barcode comes back from the right side. Selecting the similarity as well raised peak memory in a test, and a development run with longer vectors ran out of memory at the 2.5 GB cap. The similarity is recomputed afterwards with an ordinary join on the 1,272,079 pairs.

    134,624 × 10 neighbours from 117,754,155 candidate pairs in 291.0 schapters/05-store-brand-twins/pipeline/40_match.sql

  5. Check it against brute force and an HNSW index

    The same search two other ways. The brute-force version joins on category, scores every pair and keeps the 10 best per product with max_by(value, key, 10). The vss HNSW index searches all store-brand vectors. An HNSW index only answers "the k nearest to this vector" with no other filter (with the category inside the subquery, EXPLAIN shows a plain hash join), so it fetches the 40 nearest and the category is applied after.

    40_match.sqlSQL
    CREATE INDEX pl_hnsw ON mem.pl_vec USING HNSW (emb) WITH (metric = 'cosine');
    
    SELECT n.code AS nb_code, x.code AS pl_code, 1 - x.dist AS sim
    FROM nb_vec n,
         LATERAL (SELECT q.code, q.category, array_cosine_distance(q.emb, n.emb) AS dist
                  FROM mem.pl_vec q ORDER BY array_cosine_distance(q.emb, n.emb) LIMIT 40) x
    WHERE x.category = n.category;

    Each statement was timed by DuckDB's profiler (SET enable_profiling = 'json'), and the times were read back from the JSON it writes.

    Brute force 153.5 s · HNSW 57.4 s with 92.7% top-1 agreementchapters/05-store-brand-twins/pipeline/40_match.sql

  6. Re-rank by name, and check 50 pairs by hand

    The first version took the most similar product by the full text alone and kept pairs at 0.90 or more. A labelling rubric was written first, then 50 random pairs were labelled from their names, brands and ingredient lists. 32 were twins and 18 were "near": the same kind of product in another flavour, cut or form, such as hickory against peppered jerky or whole against sliced water chestnuts. The ingredient list dominates the text, and the flavour is often only in the name.

    So the 10 candidates are re-ranked by the mean of the full-text similarity and the similarity of the two names alone, and a pair is a twin when that score is at least 0.90. A new random sample of 50 gave 40 twins as first labelled, a strict precision of 80%, with no pair of different kinds of product. A reviewer who had not seen these labels relabelled the sample and agreed on twin or not for every pair. After both rounds the rubric gained a size convention (baby against regular counts as twin, as minis already did), which turned one pair that both labellers had called near into a twin. Under that addendum the sample is 41 twins, 6 near and 3 unclear, 82%. One sampled pair was replaced when the scope widened (crushed pineapple gave way to ginger beer, both labelled twin), and the reviewer agreed on the new one after seeing its label, so that agreement is not blind. With 50 pairs the 95% (Wilson) interval around 82% runs from 69% to 90%, and its lower end is below the 0.7 bar the rubric set.

    labelsSQL
    SELECT m.nb_code, m.pl_code, m.sim AS text_sim,
           array_cosine_similarity(a.emb_name, b.emb_name) AS name_sim,
           (m.sim + array_cosine_similarity(a.emb_name, b.emb_name)) / 2 AS score
    FROM m_nearest m JOIN vec a ON a.code = m.nb_code JOIN vec b ON b.code = m.pl_code;

    Strict precision 80% as first labelled, 82% under the rubric addendum (95% interval 69% to 90%), on 50 pairs, up from 64%chapters/05-store-brand-twins/pipeline/labels

NEAREST and brute force return the same neighbours; the HNSW index is faster and misses some

NEAREST join (exact)291.0579.61.90100.0%99.99%
Brute-force join with max_by (exact)153.5163.51.51100.0%100.00%
vss HNSW index, 40 nearest, then category filter57.462.31.6792.7%85.34%
3 rows
Top-10 search for 134,624 national-brand products within their category, one timed run each, two threads, on a shared machine. Agreement is with brute force: top-1 compares the best similarity found, top-10 the share of the same barcodes. The HNSW search found no same-category product among the 40 nearest for some products; it returned matches for 125,983.SourcePipeline run, 40_match.sql; times from DuckDB's profiler

The NEAREST join agrees with brute force on the best match for every product, as an exact search should; the top-10 lists share 99.99% of barcodes, the rest being ties at tenth place. It took longer than the hand-written max_by join on this machine, 291.0 s against 153.5 s, using both threads where the max_by join used about one (579.6 s of CPU against 163.5 s). Its advantage here is in the writing: one clause asks for the 10 most similar rows. The HNSW index built in 4.4 s and answered in 53.0 s and found the same best match for 92.7% of products. Two things cost it agreement. Because it cannot filter by category, its 40 nearest held no product from the right category for some queries; it returned matches for 125,983. Among those, it found the same best match 99.1% of the time; the rest is the approximate search itself. Fetching more than 40 neighbours should close the first gap at some cost in time; this run did not test it.

Reusing the approach

To match records from one table to the closest records in another, embed a short text for each, store the vectors as fixed-size arrays, and let a NEAREST join find the top k inside each block. Put the blocking filter in a LATERAL subquery, select only keys from the right side, and re-rank the few candidates with whatever extra signal you have. Then label a random sample before believing the matches.

SQL
CREATE TABLE candidates AS
SELECT q.id AS query_id, c.id AS candidate_id
FROM queries q
JOIN LATERAL (FROM catalogue WHERE catalogue.block = q.block) c
    NEAREST 10 BY SIMILARITY array_cosine_similarity(q.emb, c.emb);

SELECT query_id, candidate_id,
       (array_cosine_similarity(q.emb, c.emb) + array_cosine_similarity(q.name_emb, c.name_emb)) / 2 AS score
FROM candidates JOIN queries q ON q.id = query_id JOIN catalogue c ON c.id = candidate_id
QUALIFY row_number() OVER (PARTITION BY query_id ORDER BY score DESC, candidate_id) = 1;

Brute force with max_by(…, n) is a fair baseline and was faster here. An HNSW index is the fast option when there is no block to filter on.

Shell
cd chapters/04-food-supply/pipeline && ./run.sh --clean     # Chapter 4 first: writes out/off_us.parquet
cd ../../05-store-brand-twins/pipeline && ./run.sh --clean  # DuckDB 2.0.0 CLI; Python with onnxruntime

The last full run took 2,008.9 s on a machine shared with other jobs (the README describes it). Most of it was the embeddings (1,469.9 s) and the three searches (40_match.sql, 513.9 s). run.sh checks that the input is Chapter 4's published file, stops at the first failed check, writes the step times to out/run_log.parquet, and finishes with check_prose.py, which checks every number on this page against the output it cites. The model files download into the chapter's scratch folder. The hand labels and their rubric are in chapters/05-store-brand-twins/pipeline/labels. Full pipeline: chapters/05-store-brand-twins/pipeline.

The store-brand list

The 180 labels the chapter treats as US store brands, with the brand keys under each, how many Open Food Facts US products carry them, how many are in scope, and how many are the twin of a national-brand product. Spelling variants are merged into one label. The list is curated for this chapter, not a field in the data.

Trader Joe'strader-joe-s, trader-joes8,5961,879895
Wegmanswegman-s, wegmans, wegmans-food-markets-inc, wegmans-organic8,0541,6101,105
H-E-Bh-e-b, h-e-b-meal-simple, h-e-b-organics, heb, heb-meal-simple, meal-simple, meal-simple-by-h-e-b, meal-simple-by-heb7,932653346
Krogerkroger, the-kroger-co7,3231,3851,093
Aldialdi, aldi-benner-company, aldi-s, aldis, black-angus-beef-from-aldi, fresh-from-aldi6,285552285
Meijerfresh-from-meijer, markets-of-meijer, meijer, meijer-inc, meijer-naturals6,0402,7091,984
Great Valuegreat-value5,6912,5362,159
Kirkland Signaturecostco, kirkland, kirkland-signature5,519668442
Member's Markmember-s-mark, members-mark4,084463369
Sproutssprouts, sprouts-farmers-market3,980325202
Whole Foods Marketwhole-foods, whole-foods-market3,209983681
Weisweis, weis-markets-inc, weis-quality2,839657352
12 of 180 rows

Patterns add brand keys that are not on the list but are built from a listed name. The exact list wins when a key matches both.

Aldi(^|-)aldi(-|$)279580
Lidl(^|-)lidl(-|$)83322
Meijer(^|-)meijer(-|$)54228
Kroger(^|-)kroger(-|$)71180
H-E-B(^|-)(h-e-b|heb)(-|$)202816
Walmart(^|-)(walmart|wal-mart)(-|$)101255
Kirkland Signature^(costco|kirkland)(-|$)60145
Publix(^|-)publix(-|$)50197
Safeway^safeway(-|$)20116
Albertsons^albertsons(-|$)625
Wegmans^wegman54169
Whole Foods Market^whole-foods(-|$)28139
12 of 36 rows

Left out of both sides:

co_branded33aldi-seapak, barber-foods-aldi, boar-s-head-by-publix, costco-american-bbq-company, costco-cuisine-solutions, costco-mission-hill-bistro, costco-ruprecht, costco-swift, cuisine-solutions-costco, dietz-watson-meijer, foster-farms-walmart, kirkland-mission-hill-bistro, kirkland-signature-ocean-spray, kirkland-signature-sartori, kirkland-signature-sunsweet, kirkland-swift, kroger-snowfox, kroger-tyson, member-s-mark-by-mccormick, perdue-harvestland-lidl, private-selection-by-inku-sushi-co, private-selection-by-snowfox, private-selection-by-yummi-sushi, private-selection-by-zenshi, sugardale-aldi, swift-costco, swift-kroger, trader-joe-s-swift, tyson-walmart, wegmans-bell-and-evans, wegmans-bell-evans, yummi-sushi-kroger, zenshi-publix
person_name11(a person's name entered as the brand; not listed)
placeholder17ad-visor, bulk, bytelady-publishing, cowrind-studios-inc, entertainment-production-house-inc, fresh, homemade, inc, n-a, organics, quisling-media, restaurant-item, topo-logic-systems-inc, u, unknown, usda, usda-choice
retailer_label_outside_us72albert-heijn, aldi-bio, aldi-goldahren, aldi-milsani, aldi-santa-maria, alesto, asda, auchan, bbq-aldi-switzerland, billa, bio-aldi, bio-lidl, carnesi-lidl, carrefour, chef-salat-lidl, choco-nussa-lidl, co-op, co-op-gold, coles, compliments, continente, coop, cora, dunnes-stores, e-leclerc, edeka, farm-boy, gr-fschafter-aldi, grillmeister-lidl, gut-bio-aldi, hacendado, ica, iceland, ikea, ilmenauer-lidl, jermi-lidl, jumbo, k-classic, kania-lidl, l-etal-du-boucher-lidl, leclerc, lidl-saint-alby, lidl-sondey, m-s-food, marks-spencers, meine-kaserei-jermi-lidl, metzgerfrisch-lidl, migros, milbona, morrisons, no-name, pams, pc, perlbacher-lidl, pollo-italiano-lidl, ponnath-die-meistermetzget-swiss-aldi, portugal-original-lidl, president-s-choice, rema-1000, roi-de-treffle-aldi, sainsbury-s, sala-dinette-lidl, salling, sobeys, spar, tesco, tesco-finest, toque-de-chef-lidl, toque-du-chef-lidl, waitrose, woolworths, woolworths-food
unsure30best-yet, big-win, cadia, clearly-organic, culinary-circle, delhaize-america-inc, family-gourmet, foodhold, freedom-s-choice, freedoms-choice, fresh-finds, glencourt-inc, hy-top, iga, kings, kingston-marketing-co, mary-lee, nash-finch-company, nature-s-place, parade, price-first, springfield, super-store-industries, supervalu, supervalu-inc, the-moran-group-incorporated, topco-associates-inc, valued-naturals, wild-oats, wild-oats-marketplace
5 rows