Content standardization
Introduction
This guideline aims to maintain a consistent documentation style and help contributors standardize their content so that it seamlessly integrates into the documentation.
Text preferences
Use American English
For words that have multiple spellings, use American English over British English.
Examples:
- "decentralized" over "decentralised"
- "color" over "colour"
- "analyze" over "analyse"
Use active voice
Sentences using active voice are more concise and efficient, making your writing more engaging and easier to comprehend.
Active voice sentence: An actor acts on a target
"The smart contract processed a message."
Passive voice sentence: A target acts on an actor
"The message was processed by the smart contract."
This isn't an easy one, especially for non-native English speakers. If you aren't sure, don't worry. We'll help with any of these.
Grammar
This documentation uses cspell to correct grammar during development.
The cspell
will check the spelling and automatically suggest corrections in case of mistakes before creating a new commit. Feel free to add specific words to the cspell.json config and include them in the verification dictionary.
Date format
Use the "Mon D, YYYY" format. This approach is standard for American readers, spells out the month (or uses a three-letter abbreviation), and minimizes confusion with day–month ordering.
Preferred format:
- Nov 2, 2023
- Feb 11, 2023