Dev.to AI 🤖 Ai 👁 2 📖 1 min read

Let the Model Draft Around a Frozen Glossary

A hypothetical CLI called widgetctl calls its resource a workspace. A generated quickstart calls it a “project space” in the introduction and “Widgetctl Cloud” in a heading. Neither term can be traced to the CLI referenc

A hypothetical CLI called widgetctl calls its resource a workspace. A generated quickstart calls it a “project space” in the introduction and “Widgetctl Cloud” in a heading. Neither term can be traced to the CLI reference. A small glossary can make those two errors visible without requiring an approved term for every English noun.

Steps for a vocabulary check

Keep a versioned ledger with an approved spelling, forbidden aliases, a reference and an owner. Separately record the versioned CLI command paths. Put reserved claims such as “supported on all platforms” in a third list, with the approved source passage and its scope. Give the author a way to flag a missing term for a decision.

Parse the changed Markdown in context, including the surrounding paragraph when a diff adds only one line. Check prose for known aliases, reserved phrases and plausible new names. Compare inline code and command examples with the command snapshot. Report a recognized command sequence in plain prose when the style guide requires inline code. A union of the prose and code vocabularies would lose that distinction. Include a fallback owner for unrecognized candidates.

A small fixture table

Draft fragment Expected editorial action
Use widgetctl workspace create. Accept if this command exists in the frozen snapshot.
Open the project space. Suggest “workspace”.
Widgetctl Cloud synchronizes projects. Ask the glossary owner whether this name exists.
Type widgetctl workspace create in your terminal. Mark the command for code formatting.
Supported on all platforms. Require the exact scope of an approved compatibility statement.
The workspace stores files. No vocabulary finding. Verify the behavior separately.

This is an editorial design for the fictional CLI. A linter can accept a perfectly spelled instruction that performs the wrong operation. Test the quickstart against the version it documents before accepting its behavior claims.

This article was created with AI assistance.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.