thehonestape commited on
Commit
e9d26db
·
verified ·
1 Parent(s): 9dd24fc

Brand voice spec: reusable format + worked example (Lantern Coffee), with registers and closed-loop changelog

Browse files
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Brand Voice Spec
6
+ tags:
7
+ - brand-voice
8
+ - style-transfer
9
+ - preference-data
10
+ - dpo
11
+ - copywriting
12
+ - controllable-generation
13
+ task_categories:
14
+ - text-generation
15
+ size_categories:
16
+ - n<1K
17
+ configs:
18
+ - config_name: rules
19
+ data_files: data/rules.jsonl
20
+ - config_name: examples
21
+ data_files: data/examples.jsonl
22
+ - config_name: preference_pairs
23
+ data_files: data/preference_pairs.jsonl
24
+ - config_name: lexicon
25
+ data_files: data/lexicon.jsonl
26
+ - config_name: prompts
27
+ data_files: data/prompts.jsonl
28
+ - config_name: changelog
29
+ data_files: data/changelog.jsonl
30
+ ---
31
+
32
+ # Brand Voice Spec
33
+
34
+ A machine-readable format for steering an LLM toward a specific brand voice, with a complete worked example. The point is not the example brand. The point is the method: treat brand voice as data a model can load and enforce, and as a living artifact that learns from its own corrections.
35
+
36
+ Most brand voice lives in a slide deck no model can read. When an LLM writes copy, it falls back to the median of its training data: hedging, buzzwords, passive voice, the corporate gray. This spec is the inverse. The same file a human maintains is the file that conditions the model.
37
+
38
+ > The worked example is a fictional brand, **Lantern Coffee**, an independent roaster. It is invented. Fork it, delete the contents, and write your own.
39
+
40
+ ## What's in here
41
+
42
+ The canonical artifact is [`voice.json`](./voice.json). [`SCHEMA.md`](./SCHEMA.md) documents the format. Everything under `data/` is derived from `voice.json` and loads in the dataset viewer.
43
+
44
+ | Config | Rows | What it is |
45
+ | --- | --- | --- |
46
+ | `rules` | 8 | The voice rules. Each has a `principle` and, where it exists, the id of the correction that produced it. |
47
+ | `examples` | 28 | On-voice and off-voice copy, each labeled (`on_voice` / `off_voice`), tagged by `surface` and `register`. These are independent pools, not 1:1 pairs. |
48
+ | `preference_pairs` | 5 | Genuinely matched `chosen` / `rejected` lines. DPO-shaped. Use these for preference work; do not synthesize pairs from `examples`. |
49
+ | `lexicon` | 93 | Banned terms, preferred terms, domain vocabulary, and signature phrases. |
50
+ | `prompts` | 4 | Parameterized generation prompts, one per recurring writing job. |
51
+ | `changelog` | 4 | The voice's evolution. Each revision links to the correction that caused it. |
52
+
53
+ ## Two ideas worth stealing
54
+
55
+ **Registers.** One brand can hold more than one voice. Lantern has a `cafe` register (guest-facing, warm, plain) and a `trade` register (wholesale, precise, price-transparent). Same brand, different surface, different voice. Every example and prompt is tagged with the register it belongs to.
56
+
57
+ **The loop.** Voice rots when it's written once and frozen. Here, a wrong draft becomes a note in `voiceQueue`, a periodic sweep promotes adopted notes into `guidelines`, the `revision` bumps, and the `changelog` records what changed and why. `changelog` joins back to the originating correction, so you can read the whole voice as cause and effect:
58
+
59
+ ```json
60
+ {"revision": 2, "change": "Added 'Talk like a regular, not a sommelier' after repeated sommelier-speak in menu drafts.",
61
+ "derived_from_rule": "Ban tasting poetry. Concrete anchors only.",
62
+ "derived_from_why": "'Notes of bergamot dance across the palate' kept reappearing in menu copy."}
63
+ ```
64
+
65
+ The rule is not an opinion someone had in a meeting. It is the scar from a specific mistake.
66
+
67
+ ## Load it
68
+
69
+ ```python
70
+ from datasets import load_dataset
71
+
72
+ rules = load_dataset("thehonestape/brand-voice-spec", "rules")
73
+ pairs = load_dataset("thehonestape/brand-voice-spec", "preference_pairs")
74
+ ```
75
+
76
+ ## Uses
77
+
78
+ - Few-shot conditioning. Drop `rules` + `bannedTerms` + a handful of `preference_pairs` into a system prompt.
79
+ - Preference tuning. The pairs are ready for DPO or reward-model experiments on style.
80
+ - Voice-lint evaluation. Score generated copy against `bannedTerms` and the rules.
81
+ - A template. Fork `voice.json`, write your own brand, regenerate the data.
82
+
83
+ ## Provenance and license
84
+
85
+ Built by [Abe Garcia](https://huggingface.co/thehonestape) at [Workhorse](https://wrkhrs.co), an independent design studio. The format is the one we use in production to keep AI-written copy on-brand across every surface. Lantern Coffee is fictional. Released under CC BY 4.0.
SCHEMA.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Brand Voice Spec — schema
2
+
3
+ `voice.json` is the canonical artifact. Everything in `data/` is derived from it. The format is small on purpose: enough structure for a model to load and enforce, not so much that a human won't maintain it.
4
+
5
+ ## Top level
6
+
7
+ | Field | Type | What it is |
8
+ | --- | --- | --- |
9
+ | `brand` | string | The brand this voice belongs to. |
10
+ | `status` | string | `sample` for this reference; `live` for a real brand. |
11
+ | `revision` | int | Bumped every time a rule changes. Pairs with `changelog`. |
12
+ | `registers` | object | Named voices within one brand. Here: `cafe` (guest-facing) and `trade` (wholesale). A field can carry a `register` to say which voice it belongs to. |
13
+ | `tone` | string[] | Adjectives. The 30,000-foot read. |
14
+ | `guidelines` | object[] | The rules. See below. |
15
+ | `doAndDont` | object[] | Genuinely paired on-voice / off-voice examples. |
16
+ | `surfaceDoDont` | object[] | Per-surface guidance plus independent pools of good and bad examples. |
17
+ | `promptKit` | object[] | Reusable generation prompts, one per recurring writing job. |
18
+ | `bannedTerms` | string[] | Hard prohibitions. |
19
+ | `preferredTerms` | string[] | Reach-for-these words. |
20
+ | `vocabulary` | object | Concrete nouns grouped by domain. |
21
+ | `signaturePhrases` | string[] | Lines that are load-bearing for the brand. |
22
+ | `changelog` | object[] | One entry per revision. Each links to the correction that caused it. |
23
+ | `voiceQueue` | object[] | Captured corrections, adopted or pending. The input side of the loop. |
24
+
25
+ ## `guidelines[]`
26
+
27
+ ```json
28
+ {
29
+ "rule": "Talk like a regular, not a sommelier.",
30
+ "derivedFrom": "Unpretentious",
31
+ "explanation": "Tasting notes help people choose. Tasting poetry makes them feel dumb.",
32
+ "derivedFromCorrection": "vn_0002"
33
+ }
34
+ ```
35
+
36
+ `derivedFromCorrection` is the join to `voiceQueue`. It answers "why does this rule exist?" with a real correction, not a committee.
37
+
38
+ ## The loop
39
+
40
+ This is the part that matters. Most brand voice is written once and rots. This schema treats voice as a living artifact:
41
+
42
+ 1. A draft comes back wrong. Someone (a human or an agent) files a note in `voiceQueue`.
43
+ 2. During a periodic sweep, adopted notes become or amend `guidelines`.
44
+ 3. `revision` bumps and a `changelog` entry records the change, linked back to the note.
45
+ 4. The next generation reads the updated spec. The mistake does not repeat.
46
+
47
+ `data/changelog.jsonl` joins each revision to the correction that produced it, so you can read the voice's whole evolution as cause and effect.
48
+
49
+ ## Using it with a model
50
+
51
+ - Put `guidelines` + `bannedTerms` + a few `preference_pairs` in the system prompt to steer generation.
52
+ - Pick the right `register` for the surface you're writing.
53
+ - Use `promptKit` entries as parameterized templates for recurring jobs.
54
+ - Score output against `bannedTerms` and the rules as a cheap voice-lint.
data/changelog.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"revision":1,"date":"2026-01-12","change":"Initial spec. Tone, eight guidelines, banned terms.","derived_from_id":null,"derived_from_rule":null,"derived_from_why":null}
2
+ {"revision":2,"date":"2026-02-28","change":"Added rule 'Talk like a regular, not a sommelier' after repeated sommelier-speak in menu drafts.","derived_from_id":"vn_0002","derived_from_rule":"Ban tasting poetry. Concrete anchors only.","derived_from_why":"'Notes of bergamot dance across the palate' kept reappearing in menu copy."}
3
+ {"revision":3,"date":"2026-04-09","change":"Split into two registers (cafe, trade) once wholesale outreach started sounding like the menu board.","derived_from_id":"vn_0004","derived_from_rule":null,"derived_from_why":null}
4
+ {"revision":4,"date":"2026-05-30","change":"Added 'Warm, never twee' and banned diminutives ('lil', 'cuppa') after a social draft went saccharine.","derived_from_id":"vn_0003","derived_from_rule":"No cutesy diminutives. Warm is a tone, not baby-talk.","derived_from_why":"A social caption used 'lil cuppa' and 'cozy vibes.' Off-brand."}
data/examples.jsonl ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"surface":"general","register":"cafe","label":"on_voice","text":"Today on filter: Gitwe, Rwanda. Washed. Tastes like cherry cola and lime.","rule":"Name the coffee. Origin, producer, process."}
2
+ {"surface":"general","register":"cafe","label":"off_voice","text":"Today's single-origin pour-over features bright, complex notes.","rule":"Name the coffee. Origin, producer, process."}
3
+ {"surface":"general","register":"cafe","label":"on_voice","text":"Tastes like dark chocolate and toasted almond. Good with milk.","rule":"Talk like a regular, not a sommelier."}
4
+ {"surface":"general","register":"cafe","label":"off_voice","text":"An elegant cup with a velvety mouthfeel and a lingering, sophisticated finish.","rule":"Talk like a regular, not a sommelier."}
5
+ {"surface":"general","register":"trade","label":"on_voice","text":"$8.40/lb green, FOB. We paid above the C-market because the producer hit 88+.","rule":"Say the price and why."}
6
+ {"surface":"general","register":"trade","label":"off_voice","text":"Competitive wholesale pricing available. Inquire for our current sheet.","rule":"Say the price and why."}
7
+ {"surface":"general","register":"cafe","label":"on_voice","text":"Pull up a stool. The Rwanda just landed and we're excited about it.","rule":"Warm, never twee."}
8
+ {"surface":"general","register":"cafe","label":"off_voice","text":"Grab your fave lil cuppa and let the cozy vibes wash over you.","rule":"Warm, never twee."}
9
+ {"surface":"general","register":"trade","label":"on_voice","text":"Lot from Café Granja La Esperanza, Cauca, Colombia. Gesha, washed.","rule":"Credit the farm, every time."}
10
+ {"surface":"general","register":"trade","label":"off_voice","text":"Premium South American lot from a renowned regional estate.","rule":"Credit the farm, every time."}
11
+ {"surface":"menu_item","register":"cafe","label":"on_voice","text":"Ethiopia Guji, natural. Blueberry, cocoa.","notes":"Three to seven words. Origin first, then one honest flavor anchor. The board is read at a glance."}
12
+ {"surface":"menu_item","register":"cafe","label":"on_voice","text":"Colombia decaf. Caramel, easy.","notes":"Three to seven words. Origin first, then one honest flavor anchor. The board is read at a glance."}
13
+ {"surface":"menu_item","register":"cafe","label":"off_voice","text":"A journey through the highlands of East Africa.","notes":"Three to seven words. Origin first, then one honest flavor anchor. The board is read at a glance."}
14
+ {"surface":"menu_item","register":"cafe","label":"off_voice","text":"Our signature artisanal house pour.","notes":"Three to seven words. Origin first, then one honest flavor anchor. The board is read at a glance."}
15
+ {"surface":"hero","register":"cafe","label":"on_voice","text":"Coffee is a crop. We treat it like one.","notes":"A thesis, not a slogan. 4 to 8 words. State the belief."}
16
+ {"surface":"hero","register":"cafe","label":"on_voice","text":"Roasted this week. Gone next month.","notes":"A thesis, not a slogan. 4 to 8 words. State the belief."}
17
+ {"surface":"hero","register":"cafe","label":"off_voice","text":"Elevating your coffee experience.","notes":"A thesis, not a slogan. 4 to 8 words. State the belief."}
18
+ {"surface":"hero","register":"cafe","label":"off_voice","text":"Where passion meets perfection in every cup.","notes":"A thesis, not a slogan. 4 to 8 words. State the belief."}
19
+ {"surface":"cta","register":"cafe","label":"on_voice","text":"Order a bag","notes":"An instruction. Concrete verb plus object."}
20
+ {"surface":"cta","register":"cafe","label":"on_voice","text":"See this week's coffees","notes":"An instruction. Concrete verb plus object."}
21
+ {"surface":"cta","register":"cafe","label":"on_voice","text":"Book a tasting","notes":"An instruction. Concrete verb plus object."}
22
+ {"surface":"cta","register":"cafe","label":"off_voice","text":"Discover more","notes":"An instruction. Concrete verb plus object."}
23
+ {"surface":"cta","register":"cafe","label":"off_voice","text":"Learn more","notes":"An instruction. Concrete verb plus object."}
24
+ {"surface":"cta","register":"cafe","label":"off_voice","text":"Start your journey","notes":"An instruction. Concrete verb plus object."}
25
+ {"surface":"product_label","register":"trade","label":"on_voice","text":"Rwanda · Gitwe · Western Province · Washed · Red Bourbon · Roasted 02 Jun","notes":"Facts in fixed order: origin, producer, region, process, varietal, roast date."}
26
+ {"surface":"product_label","register":"trade","label":"off_voice","text":"A delightful coffee from faraway lands, roasted with love.","notes":"Facts in fixed order: origin, producer, region, process, varietal, roast date."}
27
+ {"surface":"wholesale_email","register":"trade","label":"on_voice","text":"New on the green list: Caicedo, Antioquia. Castillo, washed. $7.10/lb FOB. 12 bags available.","notes":"Open with the offer and the number. Producer named. No throat-clearing."}
28
+ {"surface":"wholesale_email","register":"trade","label":"off_voice","text":"We are thrilled to share an exciting new addition to our world-class portfolio.","notes":"Open with the offer and the number. Producer named. No throat-clearing."}
data/lexicon.jsonl ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"term":"artisanal","category":"banned"}
2
+ {"term":"hand-crafted","category":"banned"}
3
+ {"term":"elevate","category":"banned"}
4
+ {"term":"journey","category":"banned"}
5
+ {"term":"curated","category":"banned"}
6
+ {"term":"indulge","category":"banned"}
7
+ {"term":"notes of","category":"banned"}
8
+ {"term":"smooth and bold","category":"banned"}
9
+ {"term":"barista magic","category":"banned"}
10
+ {"term":"third wave","category":"banned"}
11
+ {"term":"liquid gold","category":"banned"}
12
+ {"term":"perfect cup","category":"banned"}
13
+ {"term":"passion in every cup","category":"banned"}
14
+ {"term":"world-class","category":"banned"}
15
+ {"term":"discover","category":"banned"}
16
+ {"term":"learn more","category":"banned"}
17
+ {"term":"lil","category":"banned"}
18
+ {"term":"cuppa","category":"banned"}
19
+ {"term":"vibes","category":"banned"}
20
+ {"term":"origin","category":"preferred"}
21
+ {"term":"producer","category":"preferred"}
22
+ {"term":"washing station","category":"preferred"}
23
+ {"term":"lot","category":"preferred"}
24
+ {"term":"single-origin","category":"preferred"}
25
+ {"term":"blend","category":"preferred"}
26
+ {"term":"washed","category":"preferred"}
27
+ {"term":"natural","category":"preferred"}
28
+ {"term":"honey process","category":"preferred"}
29
+ {"term":"varietal","category":"preferred"}
30
+ {"term":"roast date","category":"preferred"}
31
+ {"term":"harvest","category":"preferred"}
32
+ {"term":"importer","category":"preferred"}
33
+ {"term":"FOB price","category":"preferred"}
34
+ {"term":"cupping","category":"preferred"}
35
+ {"term":"filter","category":"preferred"}
36
+ {"term":"espresso","category":"preferred"}
37
+ {"term":"seasonal","category":"preferred"}
38
+ {"term":"origin","category":"vocabulary","domain":"sourcing"}
39
+ {"term":"producer","category":"vocabulary","domain":"sourcing"}
40
+ {"term":"washing station","category":"vocabulary","domain":"sourcing"}
41
+ {"term":"co-op","category":"vocabulary","domain":"sourcing"}
42
+ {"term":"importer","category":"vocabulary","domain":"sourcing"}
43
+ {"term":"FOB price","category":"vocabulary","domain":"sourcing"}
44
+ {"term":"C-market","category":"vocabulary","domain":"sourcing"}
45
+ {"term":"lot","category":"vocabulary","domain":"sourcing"}
46
+ {"term":"harvest","category":"vocabulary","domain":"sourcing"}
47
+ {"term":"altitude","category":"vocabulary","domain":"sourcing"}
48
+ {"term":"varietal","category":"vocabulary","domain":"sourcing"}
49
+ {"term":"cupping score","category":"vocabulary","domain":"sourcing"}
50
+ {"term":"washed","category":"vocabulary","domain":"process"}
51
+ {"term":"natural","category":"vocabulary","domain":"process"}
52
+ {"term":"honey","category":"vocabulary","domain":"process"}
53
+ {"term":"anaerobic","category":"vocabulary","domain":"process"}
54
+ {"term":"fermentation","category":"vocabulary","domain":"process"}
55
+ {"term":"drying bed","category":"vocabulary","domain":"process"}
56
+ {"term":"moisture","category":"vocabulary","domain":"process"}
57
+ {"term":"density","category":"vocabulary","domain":"process"}
58
+ {"term":"roast date","category":"vocabulary","domain":"roasting"}
59
+ {"term":"development","category":"vocabulary","domain":"roasting"}
60
+ {"term":"first crack","category":"vocabulary","domain":"roasting"}
61
+ {"term":"profile","category":"vocabulary","domain":"roasting"}
62
+ {"term":"drop temp","category":"vocabulary","domain":"roasting"}
63
+ {"term":"batch","category":"vocabulary","domain":"roasting"}
64
+ {"term":"degas","category":"vocabulary","domain":"roasting"}
65
+ {"term":"filter","category":"vocabulary","domain":"cafe"}
66
+ {"term":"espresso","category":"vocabulary","domain":"cafe"}
67
+ {"term":"pour-over","category":"vocabulary","domain":"cafe"}
68
+ {"term":"batch brew","category":"vocabulary","domain":"cafe"}
69
+ {"term":"flat white","category":"vocabulary","domain":"cafe"}
70
+ {"term":"single shot","category":"vocabulary","domain":"cafe"}
71
+ {"term":"to-go","category":"vocabulary","domain":"cafe"}
72
+ {"term":"for here","category":"vocabulary","domain":"cafe"}
73
+ {"term":"bag","category":"vocabulary","domain":"retail"}
74
+ {"term":"12oz","category":"vocabulary","domain":"retail"}
75
+ {"term":"whole bean","category":"vocabulary","domain":"retail"}
76
+ {"term":"ground","category":"vocabulary","domain":"retail"}
77
+ {"term":"subscription","category":"vocabulary","domain":"retail"}
78
+ {"term":"restock","category":"vocabulary","domain":"retail"}
79
+ {"term":"sold out","category":"vocabulary","domain":"retail"}
80
+ {"term":"Coffee is a crop.","category":"signature_phrase"}
81
+ {"term":"Roasted this week.","category":"signature_phrase"}
82
+ {"term":"The producer's name goes first.","category":"signature_phrase"}
83
+ {"term":"Seasonal means it runs out.","category":"signature_phrase"}
84
+ {"term":"Good with milk, better without.","category":"signature_phrase"}
85
+ {"term":"experience","category":"avoid_in_register"}
86
+ {"term":"elevate","category":"avoid_in_register"}
87
+ {"term":"curated","category":"avoid_in_register"}
88
+ {"term":"artisanal","category":"avoid_in_register"}
89
+ {"term":"passion","category":"avoid_in_register"}
90
+ {"term":"premium","category":"avoid_in_register"}
91
+ {"term":"luxury","category":"avoid_in_register"}
92
+ {"term":"exquisite","category":"avoid_in_register"}
93
+ {"term":"indulgent","category":"avoid_in_register"}
data/preference_pairs.jsonl ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {"register":"cafe","rule":"Name the coffee. Origin, producer, process.","chosen":"Today on filter: Gitwe, Rwanda. Washed. Tastes like cherry cola and lime.","rejected":"Today's single-origin pour-over features bright, complex notes."}
2
+ {"register":"cafe","rule":"Talk like a regular, not a sommelier.","chosen":"Tastes like dark chocolate and toasted almond. Good with milk.","rejected":"An elegant cup with a velvety mouthfeel and a lingering, sophisticated finish."}
3
+ {"register":"trade","rule":"Say the price and why.","chosen":"$8.40/lb green, FOB. We paid above the C-market because the producer hit 88+.","rejected":"Competitive wholesale pricing available. Inquire for our current sheet."}
4
+ {"register":"cafe","rule":"Warm, never twee.","chosen":"Pull up a stool. The Rwanda just landed and we're excited about it.","rejected":"Grab your fave lil cuppa and let the cozy vibes wash over you."}
5
+ {"register":"trade","rule":"Credit the farm, every time.","chosen":"Lot from Café Granja La Esperanza, Cauca, Colombia. Gesha, washed.","rejected":"Premium South American lot from a renowned regional estate."}
data/prompts.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"id":"menu-line","label":"Write a menu-board line for a coffee","register":"cafe","prompt":"Write a {3-7} word menu line for {origin}, {process} process. Lead with origin. Add one or two plain flavor anchors (fruit, nut, chocolate, sweetness). No 'notes of.' No poetry.","surfaces":["menu_item"]}
2
+ {"id":"new-arrival","label":"Announce a new coffee","register":"cafe","prompt":"Write a 50-70 word announcement for a new lot: {origin}, {producer}, {process}. Name the producer. Give two honest flavor anchors. Say it's seasonal and limited. End with 'Order a bag.' Warm, not twee. No banned terms.","surfaces":["social_caption","newsletter"]}
3
+ {"id":"wholesale-offer","label":"Open a wholesale offer email","register":"trade","prompt":"Write the opening of a wholesale offer email to {roaster} for {origin}, {producer}. Lead with the coffee, the process, the FOB price {price}, and quantity available. Name why we paid what we paid. Procurement-literate, no hype.","surfaces":["wholesale_email"]}
4
+ {"id":"tasting-note","label":"Write a tasting note","register":"cafe","prompt":"Write a one-sentence tasting note for {origin}, {process}. Two or three concrete anchors (a fruit, a sweetness, a texture). Say what it's good for (black, milk, iced). Talk like a regular, not a sommelier.","surfaces":["menu_item","product_label"]}
data/rules.jsonl ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {"rule":"Name the coffee. Origin, producer, process.","principle":"Precise","explanation":"Don't say 'our single-origin.' Say 'Gitwe washing station, Rwanda, washed.' Specificity is the product. Vagueness reads as you not knowing.","derived_from_correction":"vn_0001"}
2
+ {"rule":"Talk like a regular, not a sommelier.","principle":"Unpretentious","explanation":"Tasting notes help people choose. Tasting poetry makes them feel dumb. 'Tastes like cherry and cola' beats 'notes of bergamot dance across the palate.'","derived_from_correction":"vn_0002"}
3
+ {"rule":"Say the price and why.","principle":"Honest","explanation":"Specialty coffee costs more because the farmer got paid more. State the price plainly and name the reason. Never hide it behind 'inquire.'","derived_from_correction":null}
4
+ {"rule":"Warm, never twee.","principle":"Warm","explanation":"We are glad you are here. We are not going to call it a 'lil cup of joe.' Friendly is a tone, not a costume.","derived_from_correction":"vn_0003"}
5
+ {"rule":"Seasonal is a fact, not a vibe.","principle":"Curious","explanation":"Coffee is a crop with a harvest calendar. When a lot is gone, it's gone. Say so. Don't fake permanent availability.","derived_from_correction":null}
6
+ {"rule":"Short lines on the board. Full sentences in the email.","principle":"Plain-spoken","explanation":"Surface sets length. A menu line is three words. A sourcing note is a paragraph. Match the format, don't pad either one.","derived_from_correction":null}
7
+ {"rule":"Tell people the next step plainly.","principle":"Plain-spoken","explanation":"'Order a bag' and 'Book a tasting' beat 'Discover' and 'Learn more.' A CTA is an instruction, not a mood.","derived_from_correction":null}
8
+ {"rule":"Credit the farm, every time.","principle":"Honest","explanation":"The producer's name goes on the bag, the menu, and the website. The coffee is theirs first. This is non-negotiable across both registers.","derived_from_correction":null}
voice.json ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "./SCHEMA.md",
3
+ "brand": "Lantern Coffee",
4
+ "status": "sample",
5
+ "note": "A fictional brand. This file is a reference example of a machine-readable brand-voice spec, not a real company's voice. Fork it and replace the contents with your own.",
6
+ "revision": 4,
7
+ "registers": {
8
+ "cafe": "Guest-facing. Warm, plain, unpretentious. The voice of the counter and the menu board.",
9
+ "trade": "Wholesale and sourcing. Precise, transparent about price and provenance. The voice of the spec sheet and the importer email."
10
+ },
11
+ "tone": ["Warm", "Plain-spoken", "Precise", "Unpretentious", "Curious"],
12
+ "guidelines": [
13
+ {
14
+ "rule": "Name the coffee. Origin, producer, process.",
15
+ "derivedFrom": "Precise",
16
+ "explanation": "Don't say 'our single-origin.' Say 'Gitwe washing station, Rwanda, washed.' Specificity is the product. Vagueness reads as you not knowing.",
17
+ "derivedFromCorrection": "vn_0001"
18
+ },
19
+ {
20
+ "rule": "Talk like a regular, not a sommelier.",
21
+ "derivedFrom": "Unpretentious",
22
+ "explanation": "Tasting notes help people choose. Tasting poetry makes them feel dumb. 'Tastes like cherry and cola' beats 'notes of bergamot dance across the palate.'",
23
+ "derivedFromCorrection": "vn_0002"
24
+ },
25
+ {
26
+ "rule": "Say the price and why.",
27
+ "derivedFrom": "Honest",
28
+ "explanation": "Specialty coffee costs more because the farmer got paid more. State the price plainly and name the reason. Never hide it behind 'inquire.'"
29
+ },
30
+ {
31
+ "rule": "Warm, never twee.",
32
+ "derivedFrom": "Warm",
33
+ "explanation": "We are glad you are here. We are not going to call it a 'lil cup of joe.' Friendly is a tone, not a costume.",
34
+ "derivedFromCorrection": "vn_0003"
35
+ },
36
+ {
37
+ "rule": "Seasonal is a fact, not a vibe.",
38
+ "derivedFrom": "Curious",
39
+ "explanation": "Coffee is a crop with a harvest calendar. When a lot is gone, it's gone. Say so. Don't fake permanent availability."
40
+ },
41
+ {
42
+ "rule": "Short lines on the board. Full sentences in the email.",
43
+ "derivedFrom": "Plain-spoken",
44
+ "explanation": "Surface sets length. A menu line is three words. A sourcing note is a paragraph. Match the format, don't pad either one."
45
+ },
46
+ {
47
+ "rule": "Tell people the next step plainly.",
48
+ "derivedFrom": "Plain-spoken",
49
+ "explanation": "'Order a bag' and 'Book a tasting' beat 'Discover' and 'Learn more.' A CTA is an instruction, not a mood."
50
+ },
51
+ {
52
+ "rule": "Credit the farm, every time.",
53
+ "derivedFrom": "Honest",
54
+ "explanation": "The producer's name goes on the bag, the menu, and the website. The coffee is theirs first. This is non-negotiable across both registers."
55
+ }
56
+ ],
57
+ "doAndDont": [
58
+ {
59
+ "register": "cafe",
60
+ "rule": "Name the coffee. Origin, producer, process.",
61
+ "do": "Today on filter: Gitwe, Rwanda. Washed. Tastes like cherry cola and lime.",
62
+ "dont": "Today's single-origin pour-over features bright, complex notes."
63
+ },
64
+ {
65
+ "register": "cafe",
66
+ "rule": "Talk like a regular, not a sommelier.",
67
+ "do": "Tastes like dark chocolate and toasted almond. Good with milk.",
68
+ "dont": "An elegant cup with a velvety mouthfeel and a lingering, sophisticated finish."
69
+ },
70
+ {
71
+ "register": "trade",
72
+ "rule": "Say the price and why.",
73
+ "do": "$8.40/lb green, FOB. We paid above the C-market because the producer hit 88+.",
74
+ "dont": "Competitive wholesale pricing available. Inquire for our current sheet."
75
+ },
76
+ {
77
+ "register": "cafe",
78
+ "rule": "Warm, never twee.",
79
+ "do": "Pull up a stool. The Rwanda just landed and we're excited about it.",
80
+ "dont": "Grab your fave lil cuppa and let the cozy vibes wash over you."
81
+ },
82
+ {
83
+ "register": "trade",
84
+ "rule": "Credit the farm, every time.",
85
+ "do": "Lot from Café Granja La Esperanza, Cauca, Colombia. Gesha, washed.",
86
+ "dont": "Premium South American lot from a renowned regional estate."
87
+ }
88
+ ],
89
+ "surfaceDoDont": [
90
+ {
91
+ "surface": "menu_item",
92
+ "register": "cafe",
93
+ "notes": "Three to seven words. Origin first, then one honest flavor anchor. The board is read at a glance.",
94
+ "do": ["Ethiopia Guji, natural. Blueberry, cocoa.", "Colombia decaf. Caramel, easy."],
95
+ "dont": ["A journey through the highlands of East Africa.", "Our signature artisanal house pour."]
96
+ },
97
+ {
98
+ "surface": "hero",
99
+ "register": "cafe",
100
+ "notes": "A thesis, not a slogan. 4 to 8 words. State the belief.",
101
+ "do": ["Coffee is a crop. We treat it like one.", "Roasted this week. Gone next month."],
102
+ "dont": ["Elevating your coffee experience.", "Where passion meets perfection in every cup."]
103
+ },
104
+ {
105
+ "surface": "cta",
106
+ "register": "cafe",
107
+ "notes": "An instruction. Concrete verb plus object.",
108
+ "do": ["Order a bag", "See this week's coffees", "Book a tasting"],
109
+ "dont": ["Discover more", "Learn more", "Start your journey"]
110
+ },
111
+ {
112
+ "surface": "product_label",
113
+ "register": "trade",
114
+ "notes": "Facts in fixed order: origin, producer, region, process, varietal, roast date.",
115
+ "do": ["Rwanda · Gitwe · Western Province · Washed · Red Bourbon · Roasted 02 Jun"],
116
+ "dont": ["A delightful coffee from faraway lands, roasted with love."]
117
+ },
118
+ {
119
+ "surface": "wholesale_email",
120
+ "register": "trade",
121
+ "notes": "Open with the offer and the number. Producer named. No throat-clearing.",
122
+ "do": ["New on the green list: Caicedo, Antioquia. Castillo, washed. $7.10/lb FOB. 12 bags available."],
123
+ "dont": ["We are thrilled to share an exciting new addition to our world-class portfolio."]
124
+ }
125
+ ],
126
+ "promptKit": [
127
+ {
128
+ "id": "menu-line",
129
+ "label": "Write a menu-board line for a coffee",
130
+ "register": "cafe",
131
+ "prompt": "Write a {3-7} word menu line for {origin}, {process} process. Lead with origin. Add one or two plain flavor anchors (fruit, nut, chocolate, sweetness). No 'notes of.' No poetry.",
132
+ "surfaces": ["menu_item"]
133
+ },
134
+ {
135
+ "id": "new-arrival",
136
+ "label": "Announce a new coffee",
137
+ "register": "cafe",
138
+ "prompt": "Write a 50-70 word announcement for a new lot: {origin}, {producer}, {process}. Name the producer. Give two honest flavor anchors. Say it's seasonal and limited. End with 'Order a bag.' Warm, not twee. No banned terms.",
139
+ "surfaces": ["social_caption", "newsletter"]
140
+ },
141
+ {
142
+ "id": "wholesale-offer",
143
+ "label": "Open a wholesale offer email",
144
+ "register": "trade",
145
+ "prompt": "Write the opening of a wholesale offer email to {roaster} for {origin}, {producer}. Lead with the coffee, the process, the FOB price {price}, and quantity available. Name why we paid what we paid. Procurement-literate, no hype.",
146
+ "surfaces": ["wholesale_email"]
147
+ },
148
+ {
149
+ "id": "tasting-note",
150
+ "label": "Write a tasting note",
151
+ "register": "cafe",
152
+ "prompt": "Write a one-sentence tasting note for {origin}, {process}. Two or three concrete anchors (a fruit, a sweetness, a texture). Say what it's good for (black, milk, iced). Talk like a regular, not a sommelier.",
153
+ "surfaces": ["menu_item", "product_label"]
154
+ }
155
+ ],
156
+ "bannedTerms": [
157
+ "artisanal",
158
+ "hand-crafted",
159
+ "elevate",
160
+ "journey",
161
+ "curated",
162
+ "indulge",
163
+ "notes of",
164
+ "smooth and bold",
165
+ "barista magic",
166
+ "third wave",
167
+ "liquid gold",
168
+ "perfect cup",
169
+ "passion in every cup",
170
+ "world-class",
171
+ "discover",
172
+ "learn more",
173
+ "lil",
174
+ "cuppa",
175
+ "vibes"
176
+ ],
177
+ "preferredTerms": [
178
+ "origin",
179
+ "producer",
180
+ "washing station",
181
+ "lot",
182
+ "single-origin",
183
+ "blend",
184
+ "washed",
185
+ "natural",
186
+ "honey process",
187
+ "varietal",
188
+ "roast date",
189
+ "harvest",
190
+ "importer",
191
+ "FOB price",
192
+ "cupping",
193
+ "filter",
194
+ "espresso",
195
+ "seasonal"
196
+ ],
197
+ "vocabulary": {
198
+ "_purpose": "Concrete nouns by domain. Reach for these when the domain matches; let them override generic defaults.",
199
+ "sourcing": ["origin", "producer", "washing station", "co-op", "importer", "FOB price", "C-market", "lot", "harvest", "altitude", "varietal", "cupping score"],
200
+ "process": ["washed", "natural", "honey", "anaerobic", "fermentation", "drying bed", "moisture", "density"],
201
+ "roasting": ["roast date", "development", "first crack", "profile", "drop temp", "batch", "degas"],
202
+ "cafe": ["filter", "espresso", "pour-over", "batch brew", "flat white", "single shot", "to-go", "for here"],
203
+ "retail": ["bag", "12oz", "whole bean", "ground", "subscription", "restock", "sold out"]
204
+ },
205
+ "signaturePhrases": [
206
+ "Coffee is a crop.",
207
+ "Roasted this week.",
208
+ "The producer's name goes first.",
209
+ "Seasonal means it runs out.",
210
+ "Good with milk, better without."
211
+ ],
212
+ "avoidInStudioRegister": [
213
+ "experience",
214
+ "elevate",
215
+ "curated",
216
+ "artisanal",
217
+ "passion",
218
+ "premium",
219
+ "luxury",
220
+ "exquisite",
221
+ "indulgent"
222
+ ],
223
+ "changelog": [
224
+ {
225
+ "revision": 1,
226
+ "date": "2026-01-12",
227
+ "change": "Initial spec. Tone, eight guidelines, banned terms.",
228
+ "derivedFrom": null
229
+ },
230
+ {
231
+ "revision": 2,
232
+ "date": "2026-02-28",
233
+ "change": "Added rule 'Talk like a regular, not a sommelier' after repeated sommelier-speak in menu drafts.",
234
+ "derivedFrom": "vn_0002"
235
+ },
236
+ {
237
+ "revision": 3,
238
+ "date": "2026-04-09",
239
+ "change": "Split into two registers (cafe, trade) once wholesale outreach started sounding like the menu board.",
240
+ "derivedFrom": "vn_0004"
241
+ },
242
+ {
243
+ "revision": 4,
244
+ "date": "2026-05-30",
245
+ "change": "Added 'Warm, never twee' and banned diminutives ('lil', 'cuppa') after a social draft went saccharine.",
246
+ "derivedFrom": "vn_0003"
247
+ }
248
+ ],
249
+ "voiceQueue": [
250
+ {
251
+ "id": "vn_0001",
252
+ "date": "2026-01-20",
253
+ "rule": "Always name origin, producer, and process together. Two of three is not enough.",
254
+ "why": "A draft said 'Rwanda washed' but dropped the washing station; the coffee read as generic.",
255
+ "source": "agent",
256
+ "status": "adopted"
257
+ },
258
+ {
259
+ "id": "vn_0002",
260
+ "date": "2026-02-25",
261
+ "rule": "Ban tasting poetry. Concrete anchors only.",
262
+ "why": "'Notes of bergamot dance across the palate' kept reappearing in menu copy.",
263
+ "source": "manual",
264
+ "status": "adopted"
265
+ },
266
+ {
267
+ "id": "vn_0003",
268
+ "date": "2026-05-28",
269
+ "rule": "No cutesy diminutives. Warm is a tone, not baby-talk.",
270
+ "why": "A social caption used 'lil cuppa' and 'cozy vibes.' Off-brand.",
271
+ "source": "agent",
272
+ "status": "adopted"
273
+ },
274
+ {
275
+ "id": "vn_0005",
276
+ "date": "2026-06-01",
277
+ "rule": "Consider whether iced-drink copy needs its own micro-register in summer.",
278
+ "why": "Seasonal menu pressure; not yet decided.",
279
+ "source": "manual",
280
+ "status": "pending"
281
+ }
282
+ ]
283
+ }