Skip to content
DocSpade Style GuideDocSpade Style Guide

Code and technical terms

Technical readers copy what they see, so precision matters more here than anywhere else. These rules keep terms, acronyms and references to code consistent, so readers can search for them and trust them.

Acronym definition

Readers who meet an acronym for the first time cannot guess what it means. Write the full term first and put the acronym in parentheses, for example ‘single sign-on (SSO)’. Common acronyms such as API, URL and HTML are exempt.

Avoid: Turn on HSTS for your site.

Use: Turn on HTTP Strict Transport Security (HSTS) for your site.

Severity: suggestion. Rule name: DocSpade.AcronymDefinition.

Http methods

HTTP methods are written in capital letters, as in the specification: GET, POST, PUT, PATCH, DELETE.

Here are some of the terms the rule replaces. The rule checks 12 terms in all.

AvoidUse
get requestGET request
post requestPOST request
put requestPUT request
patch requestPATCH request
delete requestDELETE request
Get requestGET request
Post requestPOST request
Put requestPUT request

Severity: suggestion. Rule name: DocSpade.HttpMethods.

Http status words

Write a status code as a number and a name, for example ‘404 Not Found’, and use one term for the whole family of codes.

Here are some of the terms the rule replaces.

AvoidUse
http codeHTTP status code
response codestatus code
http errorHTTP error status
404 page404 Not Found page
status numberstatus code

Severity: suggestion. Rule name: DocSpade.HttpStatusWords.

Technical terms

One name for each concept keeps the documentation searchable and avoids readers wondering whether two terms mean different things.

Here are some of the terms the rule replaces. The rule checks 20 terms in all.

AvoidUse
url addressURL
web addressURL
end-userend user
enduserend user
api tokenAPI key
query stringquery parameters
get parametersquery parameters
url parametersquery parameters

Severity: suggestion. Rule name: DocSpade.TechnicalTerms.

File path style

Paths, file names and commands are code. Put them in backticks so readers can copy them and so they are not translated.

Avoid: Open C:\Users\Public\notes.txt in an editor.

Use: Open `C:\Users\Public\notes.txt` in an editor.

Severity: suggestion. Rule name: DocSpade.FilePathStyle.

Code in prose

Commands, flags and file names are easy to misread inside a sentence. Backticks set them apart and let readers copy them exactly.

Avoid: Run npm install in the project folder.

Use: Run `npm install` in the project folder.

Severity: suggestion. Rule name: DocSpade.CodeInProse.

File extensions

A file extension in plain text, such as .md or .json, reads as the end of a sentence or a typo. Put it in backticks, or write ‘Markdown file’.

Avoid: Save the file as notes .json in the folder.

Use: Save the file as a JSON file in the folder.

Severity: suggestion. Rule name: DocSpade.FileExtensions.

Command words

‘Type the command’ is vague about which command. Name the command, format it as code, and say ‘run’ instead of ‘execute’ or ‘fire’.

The rule flags terms such as execute the command, fire the command, invoke the command, issue the command, type the command.

Severity: suggestion. Rule name: DocSpade.CommandWords.

Execute and run

‘Run’ is the plain verb for starting a command, script or job. ‘Execute’ also means to put someone to death, so we avoid it for readers who translate literally.

Here are some of the terms the rule replaces. The rule checks 9 terms in all.

AvoidUse
executerun
executesruns
executedran
executingrunning
executionrun
invokecall
invokescalls
invokedcalled

Severity: suggestion. Rule name: DocSpade.ExecuteAndRun.

Placeholder style

Mixed placeholder styles such as {id}, [id] and :id confuse readers about what to replace. In prose, use the same style as the code sample next to it.

Avoid: Replace [YOUR-API-KEY] with the key.

Use: Replace <your-api-key> with the key.

Severity: suggestion. Rule name: DocSpade.PlaceholderStyle.

Specific error terms

Say ‘the page shows the error 404 Not Found’. ‘Doesn’t work’ and ‘throws an error’ do not help a reader search for the cause.

The rule flags terms such as throws an error, doesn’t work, does not work, fails silently, breaks, crashes, blows up, is broken, stops working.

Severity: suggestion. Rule name: DocSpade.SpecificErrorTerms.

Abbreviated terms

Spell out short forms of common terms in prose. Keep the short form in code and commands.

Here are some of the terms the rule replaces. The rule checks 17 terms in all.

AvoidUse
env varenvironment variable
env varsenvironment variables
paramparameter
paramsparameters
argargument
argsarguments
dirdirectory
dirsdirectories

Severity: suggestion. Rule name: DocSpade.AbbreviatedTerms.

Deprecated wording

A deprecation notice has three parts: what is deprecated, what replaces it, and when it will stop working. Do not leave the reader with only the warning.

Avoid: The classic editor is deprecated.

Use: Use the new editor. The classic editor stops working on March 1, 2027.

Severity: suggestion. Rule name: DocSpade.DeprecatedWording.

Localhost wording

Hostnames, ports and addresses are code. Format them so readers copy them exactly.

The rule flags terms such as localhost, 127.0.0.1, 0.0.0.0.

Severity: suggestion. Rule name: DocSpade.LocalhostWording.

Was this page helpful?

Powered by Docspade © 2026