Home / Blog / Zinfandel is Primitivo is Tribidrag

July 7, 2026· Wine World Map

Zinfandel is Primitivo is Tribidrag

Someone searches for "Shiraz" and gets zero results. The database has 900 wineries that grow the exact same grape, all tagged "Syrah" because that's what appears in the OSM grape_variety field for European producers. This is not a bug in the search index. It's a bug in reality: the wine world assigns several names to the same Vitis vinifera cultivar and then acts surprised when software can't keep up.

We don't have a grapes table — that post explains why — so there's no grape_synonyms join to lean on. What we have instead is a flat TypeScript constant in lib/grape-synonyms.ts that gets consulted at query time and at seed time.

The map

// lib/grape-synonyms.ts
// Canonical name first; every listed alias resolves to it.
export const GRAPE_SYNONYMS: Record<string, string[]> = {
  "Syrah":              ["Shiraz", "Sirah", "Serine"],
  "Zinfandel":          ["Primitivo", "Tribidrag", "Crljenak Kaštelanski"],
  "Grenache":           ["Garnacha", "Garnacha Tinta", "Cannonau", "Vernatsch"],
  "Pinot Gris":         ["Pinot Grigio", "Grauburgunder", "Ruländer"],
  "Pinot Noir":         ["Pinot Nero", "Spätburgunder", "Blauburgunder"],
  "Chardonnay":         ["Morillon"], // Styrian name, still in use
  "Trebbiano Toscano":  ["Ugni Blanc"],
  "Tempranillo":        ["Tinta Roriz", "Aragonez", "Cencibel", "Tinto Fino"],
  "Malbec":             ["Côt", "Auxerrois", "Pressac"],
  "Mourvèdre":          ["Monastrell", "Mataro"],
  "Riesling":           ["Rheinriesling", "Weißer Riesling"],
  "Welschriesling":     ["Riesling Italico", "Laški Rizling", "Olaszrizling"],
  // ...
}

That last pair is the trap. Welschriesling is not Riesling. Different grape, different DNA, different everything — the "Riesling" in the name is marketing debris from the 19th century. If you flatten too eagerly you end up merging a noble Rhine variety with a bulk Eastern European workhorse. The constant lives hand-curated because no algorithm respects that distinction.

Where it actually gets used

Two places. Search normalizes the user's query and any indexed grape strings through canonicalGrape(name) before comparison:

export function canonicalGrape(name: string): string {
  const cleaned = name.trim()
  for (const [canonical, aliases] of Object.entries(GRAPE_SYNONYMS)) {
    if (canonical.toLowerCase() === cleaned.toLowerCase()) return canonical
    if (aliases.some(a => a.toLowerCase() === cleaned.toLowerCase())) {
      return canonical
    }
  }
  return cleaned
}

And the OSM import runs it over grape_variety=* tags before writing rows, so a Barossa winery tagged grape_variety=Shiraz;Cabernet Sauvignon and a Rhône winery tagged grape_variety=Syrah;Grenache end up in the same bucket when you filter by "Syrah" from the grape landing page at /grapes/syrah.

The three-name grape

Zinfandel is the canonical example everyone in wine likes to bring up. In 2001 UC Davis matched Zinfandel to a Croatian grape called Crljenak Kaštelanski, which turned out to be identical to the older Tribidrag, which turned out to be identical to Italy's Primitivo, which — thanks to EU labeling rules — Italian producers can legally sell as "Zinfandel" in the US.

| Region | Label you see | Canonical in DB | |---|---|---| | Napa (US) | Zinfandel | Zinfandel | | Puglia (IT) | Primitivo | Zinfandel | | Dalmatia (HR) | Tribidrag | Zinfandel | | Dalmatia (HR, older bottles) | Crljenak Kaštelanski | Zinfandel |

The /grapes/zinfandel page shows all four labels in the header ("also known as Primitivo, Tribidrag, Crljenak Kaštelanski") so a user who arrived from either direction sees the whole story.

What we deliberately don't merge

Pinot Noir and Pinot Meunier are both "Pinots" and both parents of Chardonnay, but they're distinct varieties and get distinct entries. Cabernet Sauvignon and Cabernet Franc are not synonyms — one is the parent of the other. Sangiovese and Nielluccio are synonyms (Corsican name for the Tuscan grape), and that pair is in the map. Trebbiano is a whole family of grapes that are not all the same variety, so only Trebbiano Toscano gets its Ugni Blanc alias — Trebbiano di Soave (which is actually Verdicchio) does not.

The rule we follow: merge names, don't merge grapes. If DNA analysis says they're the same cultivar, they collapse. If two grapes share a family name for historical or marketing reasons, they stay apart even when their labels are confusingly similar.

Lesson

Reference data doesn't need a table to be authoritative — it needs a single source of truth and a comment explaining the calls that surprised us. Ninety lines of TypeScript with citations in the comments beats a grape_synonyms schema that nobody remembers to update. The wine world had six hundred years to make this mess; a hand-curated constant is a fair reply.

#grapes#search#domain