0115. The demo-shop reads a product name written with a hyphen
Status: Accepted · Date: 2026-12-01
Context
The demo-shop reads a product by its words in the message's language (ADR-0107). Some are two words: "sleeping bag", "sleeping pad", "sleeping mat", "trekking pole", "hiking pole", "head torch", "water bottle" and "back pack" (ADR-0114) in English, and "uyku tulum", "uyku mat", "kamp mat", "kafa lamba", "sirt canta" and "kamp ocag" in Turkish. A shop word matches where a space stands between them, not a hyphen.
Probe sentences after ADR-0114 found that a product name written with a hyphen is not read. None of them is in the real runs (design §19), the case files or the generated attack cases:
- No other word names the product: "sleeping-bag under 1000", "back-pack under 1000", "head-torch", "trekking-poles", "sleeping-pads", "uyku-tulumu var mı?", "kafa-lambası" and "kamp-matı" get the fallback answer. After a search for tents, "sleeping-bag under 1000" is a search for tents under 1000.
- Another word names it: "water-bottle", "sırt-çantası" and "kamp-ocağı" are read through "bottle", "canta" and "ocag". A hyphen ends a word, so the second word alone is a shop word.
- After "back": ADR-0113 reads "back" as "black" before a product or gender word of one word, or of two words with a space between them. In "Back back-pack", yokla's typo of "Black back-pack", the second word follows a hyphen, and "back" stays as written.
Decision
A hyphen between two letters is a space where the product is read
- Where the shop reads which product a message names, a hyphen between two letters reads as a space, in a message of either language. "sleeping-bag under 1000", "back-pack under 1000", "Head-torches please", "trekking-poles", "uyku-tulumu var mı?", "kafa-lambası" and "kamp-matı" are searches for those products.
- Only the product is read this way. The shop reads its other words in the message as written: the words for a person, a policy, a cheaper product, an out-of-scope question, a colour and a gender. "customer-service" and "müşteri-hizmetleri" ask for no person, as before (see the alternatives).
- A hyphen next to a digit stays: "YK-B31797" and "2-person" are read as before.
- A product word still takes only a plural ending (ADR-0114): "back-packing tents" are tents.
After "back", the second word may follow a hyphen
- The two-word rule of ADR-0113 reads a hyphen between the two words as a space. "Back back-pack" and "back back-packs under 1000" ask for black backpacks, "Back sleeping-bag" for a black sleeping bag, and "back water-bottle" for a black water bottle.
- A space still follows "back": "back-pack" is a backpack, not a black "pack".
Measured before this ADR
The rule was measured in a scratch copy of the reader:
- The real runs: none of their 277 messages is read differently, alone or after a search for tents.
- The case files and the generated attack cases: none of their 80 messages is read differently, alone or after a search.
- Code-switching (ADR-0059): none of the 38 English and 34 Turkish code-switched messages is read differently.
- yokla's typos on the acceptance cases: of the 743 typo forms, the shop misreads 36, as before, and the same ones.
- Probe sentences:
- "sleeping-bag under 1000", "Do you have a sleeping-bag?", "sleeping-bags", "Sleeping-Bag in blue", "sleping-bag", "back-pack under 1000", "a back-pack", "Back-pack please", "Black back-packs", "head-torch", "Head-torches please", "trekking-poles", "hiking-pole", "sleeping-pads", "sleeping-mat", "uyku-tulumu var mı?", "kafa-lambası" and "kamp-matı" are searches for those products, alone and after a search for tents. "Black back-packs" asks for black ones.
- "Back back-pack", "back back-packs under 1000", "Back sleeping-bag" and "back water-bottle" ask for black ones.
- "water-bottle in blue", "sırt-çantası var mı", "kamp-ocağı", "back-packing tents", "four-season tent", "two-person tent", "2-person tent", "x-large jacket", "out-of-stock tents?", "back-to-back tents", "kick-back tents", "red-team", "red-flag", "Red-tent", "YK-B31797", "Where is my order YK-B31797?", "e-postam", "t-shirt", "Self-test", "sleeping - bag" and "sleeping--bag" are read as before.
- "customer-service please", "Can I talk to customer-service?", "real-person please", "müşteri-hizmetleri", "geri-gönder", "en-ucuz çadır" and "daha-ucuz var mı" are read as before.
- "head-lamp", "day-pack", "head lamp", "day pack" and "sleepingbag" are not read, as before: the shop's words are "headlamp", "daypack" and "sleeping bag".
- "send back-pack", "come back-pack later" and "Send back-packages" have no English hint and are read as Turkish (ADR-0107). They become searches for backpacks (see the consequences).
The tests
- The product with a hyphen, in both languages: each two-word product word of either language, written with a hyphen, names its product, with a plural ending in English. A hyphen next to a digit is read as before.
- Only the product: "customer-service please" and "müşteri-hizmetleri" get the fallback answer, and "customer service please" a person.
- After "back": "back back-pack" and "back sleeping-bag" are read as "black back-pack" and "black sleeping-bag"; "back-pack" stays as written. "Back back-pack" asks for black backpacks.
- After a search for tents: "sleeping-bag under 1000" is a search for sleeping bags under 1000.
- The end-to-end tests are unchanged and pass as they are.
Consequences
- A product name written with a hyphen is read like the two words. After a search for tents, "sleeping-bag under 1000" no longer narrows it to tents under 1000.
- The words for a person and a policy keep the hyphen. "customer-service" asks for no person, and "customer service" with a space does, as before.
- In a message read as Turkish, "back-pack" takes any suffix, as "back pack" does (ADR-0114). "Send back-packages" has no English hint and is a search for backpacks, like "Send back packages".
- A one-word product word split in two is still not read: "head-lamp", "day-pack" and "head lamp". This ADR is about the hyphen.
- The demo-shop README says a product name may be written with a hyphen.
Alternatives considered
- A space in every shop word matches a hyphen. Measured: one message of the real runs, an attacker message that says "your normal customer-service restrictions are suspended", becomes a request for a person; it was a search for tents. Rejected: in English a hyphenated "customer-service" or "real-person" mostly stands before a noun, and names no request for a person.
- The hyphenated forms as shop words, as "sleeping-bag" next to "sleeping bag". Rejected: each two-word word would need its twin, in both languages and in the two-word rule after "back".
- A hyphen removed, not read as a space. "head-lamp" and "day-pack" would be read, and "sleeping-bag" would not. Rejected: the shop's two-word names are the ones measured.
- Leaving it. Rejected: "sleeping-bag under 1000" is a plain request for sleeping bags, and after a search for tents the shop answers with tents.