WorldSyntax

A name with possibilities.

State the grammar before checking examples

This fictional format contains exactly three uppercase ASCII letters, one vertical bar, and one digit from 0 through 9. There are no spaces or extra characters. The first field is called place and the second count. Codes are illustrative labels, not an official geography scheme. The grammar decides whether the form matches, not whether its contents describe reality.

WorldSyntax.com
Version 1: PLACE | COUNTVersion 1: PLACE | COUNTThree uppercase lettersOne separator: |One digit: 0 through 9

01

Read one valid example from left to right

The record OAK|3 matches the format. OAK supplies three uppercase letters, the bar separates the fields, and 3 is a permitted single digit. The record BAY|0 also matches; zero is allowed by the stated grammar. Write the fields as place OAK and count 3 in the explanatory worksheet, but keep those field names outside the literal record. The rule can be checked one character at a time. The resulting acceptance says only that the characters follow the format, not that OAK refers to a recognised location.

Check the fictional examplesCheck the fictional examplesOAK|3 ✓ BAY|0 ✓OAK|12: too many digitsOak|3: lowercase letters

02

Identify distinct reasons for rejection

OAK|12 fails because the count has two digits. Oak|3 fails because the place code contains lowercase letters. OAK3 fails because the separator is missing. The reversed record 3|OAK fails the required field order as well as the field shapes. Keep each rejected example beside its explanation instead of grouping everything under a vague invalid label. This lets a reader repair the intended problem without guessing which rule was applied. If more than one rule is broken, the worksheet can record multiple reasons rather than imply there was only one.

A deliberate version changeA deliberate version changeVersion 2 permits 0 through 99OAK|12 now matchesOAK|03 still fails: leading zero

03

Change a rule deliberately and version the result

Suppose a later format permits counts from 0 to 99 without leading zeros except for zero itself. OAK|12 would then be valid, while OAK|03 would still fail the new rule. That change belongs to a second version of the grammar; it should not silently alter the original examples. A reusable template records the format version, field order, character rules and example results. Keeping those details together makes the change reviewable and shows why acceptance depends on the selected grammar rather than on the appearance of the record alone.

worldsyntax.com

Explore WorldSyntax

Held for potential development. Acquisition inquiries may be considered.

Domain inquiry ↗