Help · Converting specifications
Converting your specifications
What a conversion is
A conversion rewrites a specification you already use as a SynC standard: the same requirements, as clauses that can each be cited, with the choices a specifier makes on every project pulled out into datasheet fields. Done well, nothing in the source is lost and nothing is added. Each project then answers the fields instead of editing the text.
Convert documents you have the right to use and change, such as your company’s own master specifications. A converted standard lives in your company library, where projects add it like any other standard.
SynC reads no Word or PDF file itself. The conversion is the writing of the markup, by you or by your assistant, and SynC checks the result. The markup guide defines every marker and datasheet key. This page covers how they apply to a document you already have.
Two ways to convert
By hand
Open Standards, choose Create standard, and put it in your company library. The editor takes the markup described below and checks it as it opens and before each Save revision: an error stops the save and names its line, a warning is advice. Creating a standard requires a seat at your company.
With your own AI assistant
Your assistant can do the same work through the API. Create an API key on the Integrations tab of your profile and start from Edit standards, which covers reading your libraries, creating and editing categories and standards, writing drafts and saving revisions (standard:revision:save). Creating a library needs the Create libraries level, so make the library in SynC first. See Integrations.
The prompt at the end of this page gives the assistant the job, the sources to read and the order of calls. Before every save it can check the markup with POST /api/standards/validate-markdown, which runs the editor’s check and saves nothing. A key can do no more than your own account can.
How a standard is built
A standard is an outline of headings. A heading marked {toc} is a section, a heading marked {note} is a note, and an unmarked heading is a clause. Once any heading carries {toc}, every section needs it. Everything under a heading, up to the next heading, belongs to it: paragraphs, bullet lists and tables are cited with the heading above them, and text before the first heading is an error.
SynC numbers the headings from how they nest, so the source’s own numbering goes. The outline starts at a single #, a level can’t be skipped, and it stops at six levels. The check warns past four, because a clause numbered 3.2.7.2.4.3 is hard to cite and harder to find. Most SynC standards use three levels, occasionally four. A guide specification’s outline (part, article, paragraph, subparagraph, item) runs deeper, so a conversion flattens it:
- The articles become the top-level sections. A part heading such as General, Products or Execution adds a level and little else.
- A lead-in whose items all apply, such as “Provide the following:”, folds into the items under it, so each item is its own clause at the same level. Folding changes the outline, not the words. Where the project picks from the items, the list stays together: see “Patterns that recur” below.
- A titled paragraph that holds several obligations becomes a section. One that holds a single obligation is a clause.
- Short sub-items of one obligation are a bullet list under their clause.
Clause, bullet list, table or field
- A clause for each obligation that could be checked on its own. If a contractor could comply with one part and fail another, they are separate clauses.
- Bullets for the items of one obligation: what to submit, what a nameplate shows, which inspections a test includes. The clause introduces them and they are cited with it.
- A table for values in rows and columns: referenced standards, ratings by size, a schedule.
- A datasheet field only where the project chooses. If every project gets the same answer, it is text.
Datasheet fields
A field is a fenced datasheet block under the clause it belongs to, written as YAML. It attaches to the nearest heading above it; a heading can own several blocks, and one block can hold several fields as a list. label and type are required. The keys this page uses are options, default, unit, constraint, drawing_ref and derived. The markup guide lists them all, and a key it does not list is an error.
# Enclosure {toc}
## Enclosure rating
Enclosure: NEMA 250, type as selected below.
```datasheet
label: "Enclosure: Type"
type: radio
options:
- Type 1
- Type 3R
- Type 12
```
## Short-circuit current rating
Short-circuit current rating not less than the value scheduled.
```datasheet
label: "Short-Circuit Current Rating"
type: range
unit: kA
options:
min: 10
max: 200
setpoints: [10, 14, 22, 25, 35, 42, 65, 100, 200]
constraint: min
```Choosing a type
| The source asks for | Type |
|---|---|
| One of two to five options | radio |
| One of a longer list, or an ordered list that is not numeric | select |
| Any of several items from a short list | checkbox |
| Any of several items from a long list | listbox |
| A number | range, with unit and either step or setpoints |
| Free text, when nothing structured fits | text |
Those are the six types. A choice type lists its options one per line; a comma-separated string is an error. A range needs min and max under options, plus step for continuous values or setpoints (plain numbers) for standard ones such as trade sizes and ratings. A scale that runs backwards, such as wire gauge, is a select.
Use the unit the source uses, written as its symbol: A, kA, V, %, Ω, in, mm. unit applies to a range or a text field; on a choice type it is dropped, so the unit goes in the option labels. In clause text, keep dual units the way the source pairs them, as in “75 mm (3 inches)”.
Labels and quoting
A field’s label is often read away from its clause, so each label is unique in the standard: “Material: Liquidtight Connectors”, not thirty fields called “Material”. YAML reads a colon followed by a space as a new key and a # as a comment, so a label, an option, a drawing location or a derivation basis that contains either, or that starts with [, goes in quotes: label: "Material: Liquidtight Connectors". An unquoted label fails the check. An unquoted option can pass it and save broken, so quote both.
Which way a value binds
- On a range,
constraint: minwhen the value is a floor (“not less than”),maxwhen it is a ceiling,exactwhen it must match. Left out, a range binds exact. - On a checkbox or listbox,
any_ofwhen any selected item is acceptable (materials, acceptable manufacturers),all_ofwhen every selected item is required (submittals, listing criteria, features). Left out, all are required. - A rating or capacity the product must meet is a floor: current and short-circuit ratings, capacity, thickness, warranty length. A limit it must stay under is a ceiling: resistance, sound level, temperature rise, leakage. A system value is exact: voltage, phase, frequency.
- A radio, select or text field takes no constraint. With a constraint, the label names only the quantity: “Short-Circuit Current Rating”, not “Minimum Short-Circuit Current Rating”. The page writes out the direction.
Choosing a default
The default says where the answer lives.
| The source | Default |
|---|---|
| States or implies a value | That value. On a radio or select it must be one of the options; on a range it must sit within the bounds and on a step or setpoint |
| Offers a plain either/or with no preference | None. An empty field is a deliberate question |
| Leaves the value to the drawings | drawing_ref: "where on the drawings" and default: deferred. A deferred default without a drawing reference is an error |
| Accepts the manufacturer's standard, with no project decision expected | default: manufacturer |
| Lets the value follow from facts already stated, so anyone working it out gets the same answer | derived: "basis" and default: derived |
“Per drawings” and “Manufacturer’s standard” are states a field can be in, not options to list. A field is deferred to the drawings or derived, not both; the check does not catch a field with both, so the conversion has to.
A field that depends on another
SynC has no conditional fields. When a requirement applies only if another choice was made, the clause says so, “Where power circuit breakers are selected above, …”, and its field has no default unless the source suggests one. derived is for a value someone works out from facts already stated, including another field’s answer: an insulation level from the system voltage and the site altitude, a current transformer’s accuracy class from its ratio. It does not say that a field only applies when another choice is made, and a Required / Not required field whose answer is only a copy of another field’s adds nothing.
Choices, blanks and instructions in the source
A guide specification marks the decisions it leaves to the specifier: a choice between alternatives, a blank to fill, an optional paragraph, a note on when to keep or delete something. Each kind becomes one field, or goes. The brackets decide what is a choice; colour, shading or a paragraph style only help you find them. A bracket around words that are not a choice, such as a defined term, is text and stays.
| In the source | In SynC |
|---|---|
| A choice between alternatives | A radio (or select for a long list) when the project picks one, with the clause saying “as selected below”. A checkbox with any_of when any of several is acceptable, as with materials |
| A blank for a number | A range with the unit, spanning the real product range |
| Alternatives plus a blank | A select of the listed options, plus a text field labelled “Other …” under the same clause |
| A blank for a name or description | A text field |
| An optional paragraph | The paragraph as a clause, with a Required / Not required radio. For a paragraph that allows something (“may”), Permitted / Not permitted |
| An optional article or heading | The heading without its marks, with a Required / Not required radio directly under it |
| Optional items in a list | The full list as bullets, then a checkbox of the items the project includes |
| A value or the drawings | A field with drawing_ref. It starts deferred only if most projects would show the value on the drawings |
| A choice nested inside a choice | One field for the outer choice, then one field for each inner choice, under the same clause |
| The same question repeated on many items | One field, asked once where the items are introduced. Blanks in the rows of a schedule are different questions: one field per row |
Instructions to the specifier
Guide specifications carry notes addressed to whoever edits them: “Select …”, “Retain this paragraph if …”, “Delete if not required”, advice for one agency or another. A SynC standard is read as issued, so everything in it is read by the contractor. An instruction goes once a field asks its question, and an instruction about editing the document goes with it. A {note} stays only where it helps the reader of the issued specification: a definition, the reason for a requirement, what a section covers. A note never tells anyone what to do. An instruction that carries a rule, such as “not permitted in hazardous locations”, is a question for a person, not a requirement the conversion adds on its own.
Patterns that recur
- A list the project picks from. The introducing clause and the full items as a bullet list, then a checkbox under the same heading asking which items apply.
- Acceptable manufacturers or products. A checkbox with
any_of, plus a text field for others the project allows. - An optional requirement. A radio with Required and Not required.
- Referenced standards. One table under the clause that requires compliance, not a clause per standard.
- A fact about the project, not the section. Site altitude, seismic design category, adopted building code:
[[parameter: site-altitude]]in the sentence instead of a field. Parameter names are lower case with hyphens, and an existing name is reused exactly, because “site altitude” and “site-altitude” would be two parameters. - A location, route or arrangement only a drawing can show.
[[drawing: where to look]]inside the clause, never inside a datasheet block. - A reference to another section. Text, as the source words it, until that section is in SynC and can be cited.
[[opens a reference, so anything else written as[[draws a warning; a single bracket is plain text.
Work in three passes
Each pass has one job, and each pass is saved as its own revision, so a reviewer can compare them. A pass that both transcribes and improves loses track of what the source said.
- Pass 1, a faithful conversion. Every requirement in the source, as a clause, a bullet, a table row or a note, in the source’s words, with nothing modernized, tightened or corrected yet. Choices and blanks stay as plain text in single brackets, and instructions to the specifier stay as notes marked for removal. A count of clauses, notes and tables against the source closes the pass.
- Pass 2, datasheet fields. A field where the source offers a choice or leaves a blank, and for numbers that vary by project: ratings, sizes, quantities, warranty periods, training hours. No field for a value fixed by code or by a referenced standard, or for a physical constant. Drawing references and project parameters go in here, and the specifier instructions come out.
- Pass 3, a review report. What was found but not changed: a withdrawn or superseded referenced standard, a wrong code article, a stale paragraph reference, a typo, a passage copied from another section, values that contradict each other, each with a proposed correction. Corrections are applied only after someone approves them, as their own revision. The report changes no markup, so this pass saves no revision.
Word and PDF sources
- A guide specification in Word often marks its instructions to the specifier with a paragraph style, a colour or a review comment rather than words. A paragraph in a note style or note colour is an instruction, even inside a requirement, and the document’s comments (in a .docx,
word/comments.xml) are part of it: plain text extraction leaves them out. - Word list numbering does not appear in extracted text. A paragraph with its numbering switched off usually continues the paragraph above it.
- In a PDF, page headers, footers and page numbers are not part of the text.
Large specifications
A long specification converts one part at a time, with the same rules for every part, so repeated fields come out identical. The rules are settled before the first part. Changing them halfway means redoing the parts already done.
A prompt for your AI assistant
Replace LIBRARY NAME with the library to fill, then give your assistant the prompt, the source file and an API key made from the Edit standards preset. A finished SynC standard from the same discipline, attached as an example, helps it match your house style.
Convert the attached specification into a SynC standard, named after
its title, in my company library LIBRARY NAME, which already exists. If it
does not, stop and tell me. Use the company category that fits, and create
one only if none does. If I attached a finished SynC standard, follow its
structure.
Before you start, read:
- the markup guide: https://synergyinconstruction.com/standards/about/standards-markup-syntax.md
- the conversion guide: https://synergyinconstruction.com/help/converting-specifications
(it ends with this prompt; the sections above it explain the markup
and what a good conversion looks like)
- the API index: https://synergyinconstruction.com/api/help?format=index
(its guide lists the calls in order: GET /api/whoami for my company
id, POST /api/standards to create the standard, POST
/api/standards/:id/edit to open its draft, PUT
/api/standards/:id/working-copy to write the markup, and POST
/api/standards/:id/publish to save a revision)
Work in three passes. After each pass, check the markup with
POST /api/standards/validate-markdown and fix every error it reports;
treat its warnings as advice. Then save the pass as a new revision so I
can review it in SynC, where it renders properly. Save the first
revision with severity "major" so it is numbered 1.0.0, and later
passes as minor revisions. If my key cannot save a revision, leave the
draft in place and tell me. Stop after each pass and wait for me.
1. A faithful conversion. Keep every requirement and the source
wording. Add nothing. Drop the source's own numbering: SynC numbers
the headings. Keep each instruction to the specifier as a {note}
that starts "Specifier note:". Keep bracketed choices and blanks as
plain text in single brackets, and write [[ nowhere. Before going
on, check the counts of clauses, notes and tables against the
source.
2. Datasheet fields for the choices and blanks the source gives the
specifier, plus drawing references and project parameters. Reuse an
existing parameter name exactly. Remove every "Specifier note:",
keeping any fact the reader of the issued specification needs as a
plain note. Quote any label, option, location or basis that contains
": " or "#", or that starts with "[". Give no field both a
derivation and a drawing reference.
3. A review report, with no new revision: counts of sections, clauses,
notes and fields; the judgment calls I might change; errors in the
source with a proposed correction; the specifier instructions you
removed; references to other sections; open questions; any new
parameter names.
Do not fix errors in the source text. List them in the report. Apply
only the corrections I approve, and save them as their own revision.