Skip to content

Localized business directory

Businesses with localized company names, places and filler text across six showcase languages.

simple volume small LocalizationGeographyCompanies
Languages
deu eng fra ita por spa
Formats
csv

Recipe

recipe.gbddl
gbddl 1
language(eng, deu, fra, ita, spa, por)

table businesses rows 15 (
  id          int64 autoincrement primarykey
  name        text company()
  city        text same(geo) city()
  country     text same(geo) country()
  description text sentence(maxWords: 8)
)

output csv

This is the exact recipe.gbddl committed to the repository. Copy it, or download the raw source.

About this recipe

Localized business directory

A single-table recipe that generates a business directory in six showcase languages: English, German, French, Italian, Spanish and Brazilian Portuguese. Each row draws one language and every localized column is written in it, so the same shape produces a localized directory without changing the model.

What it demonstrates

  • Multiple languages — the recipe header declares language(eng, deu, fra, ita, spa, por), so each row draws one language.
  • Localized names — name is a company name in the row's language.
  • Localized places — city and country share a same(geo) group and are written in the row's language, describing one coherent place.
  • Localized text — description is a filler sentence in the row's language.

Run it

Submit the recipe body to POST /api/v1/jobs?input_format=gbddl, or paste it into Chef, to generate the data. The repository's local runner (run by task test) also generates it and verifies its output.

The recipe outputs one CSV table file, businesses.csv, holding fifteen rows.

Guarantees

Each row has a unique id; the name, city and country are coherent per row and written in the row's language. Text and names are synthetic and do not name real companies or places.

Tested features

Smart types, physical types, rules and formats this recipe exercises and verifies.

companycitycountrysentencesame:geographylanguage:recipeautoincrementprimary-key