Conventions

Published

November 20, 2024

A message can only make an impact when it is received, so presentation is (almost) everything.

Comprehensive assistance

Conveying knowledge and empowering users starts in the product interface. While external documentation can be helpful for supporting advanced functionality, users should not be lost on the basics without further reading.

  • Make it interactive. Embedded user tutorials should exist whenever possible, and be intuitive and not obstructive.
  • Show only what’s necessary when necessary. Progressive disclosure1 can help guide workflows as well as minimize visual clutter.

American English

While the ValidMind community spans far and wide, its heart finds its home in Palo Alto, California. When writing for ValidMind, keep things consistent by using American English2 spelling and grammar conventions.

2 US Department of State: American English

American English examples
Correct Incorrect
At the center of this page, you will see the elements organized from most recent to least recent by default. At the centre of this page, you will see the elements organised from most recent to least recent by default.

Titles

  • Task titles should always start with a verb and nouns should be in the plural if they describe an object acted on.
  • For tasks that have child topic tasks, the starting verb should always be a gerund (“-ing”).
  • Reference titles should include only the name of the content described unless it emcompasses a broader range of topics, in which case the title should end in “reference”.
Titles examples
Correct Incorrect
Register models in the inventory Inventory model registration
Working with the model inventory Use the model inventory
Developer reference Articles for developers

Formatting

Sentence case

In general, follow sentence-style capitalization3 to minimize the confusion of when to capitalize and when not to capitalize.

3 Microsoft: Capitalization

  • Exceptions include referencing specific elements in the user interface (UI) that have their own casing to ensure that documentation matches the user experience, or when generating titles of publications such as blog posts.
  • For UI elements that are in all caps, use the markdown smallcaps class to display these elements.
Sentence case examples
Correct Incorrect
Get started with ValidMind Get Started with ValidMind
In the left sidebar, click Model Inventory. In the left sidebar, click model inventory.
Honor the Human with ValidMind Honor the human with ValidMind
On the landing page of your model, locate the [model status]{.smallcaps} section: On the landing page of your model, locate the MODEL STATUS section:

Headings

  • Make them imperative! Individual task headings are a call to action. Gerunds (“-ing”) are acceptable when introducing a set of instructions with individual tasks.
  • Avoid numbered headings. Most headers do not require numbering, as order can be discerned from context. Numbering headers can make it difficult to shift information around when information changes.
  • Don’t use terminal punctuation. While headings should be in sentence case, they are not sentences.
Heading examples
Correct Incorrect
Login to ValidMind 1. Logging into ValidMind.

Responsive columns

To make sure our docs site works well on mobile, we use Tachyons CSS4 with flexbox. Quarto’s default support for CSS Grid is not responsive and should not be used.

Enable Tachyons CSS in the front matter with:

filters:
    - tachyons

Correct:

:::: {.flex .flex-wrap .justify-around}

::: {.w-50-ns}
Column 1, 50% wide
:::

::: {.w-50-ns}
Column 2, 50% wide
:::

::::

Incorrect:

::: {.grid}

::: {.g-col-6}
Column 1, 50% wide
:::

::: {.g-col-6}
Column 2, 50% wide
:::

:::

Emphasis

Use emphatic styling sparingly, in order not to overwhelm the reader with visual distractions.

  • Bolding — Some light bolding can be helpful to draw attention to core concepts. Bolding is also used to highlight UI elements that the user can interact with, such as links or buttons.
  • Italics — Italics should not be used for emphasis, only for first uses of terms on the page to set the stage.
  • Quotation marks — Quotation marks should generally only be employed for quoting speech.
Emphasis examples
Correct Incorrect
At ValidMind, we value transparency and accessibility — we aim to speak simply and effectively. (e.g. Highlighting the important concept within a sentence.) At ValidMind, we value transparency and accessibility — we aim to speak simply and effectively. (e.g. Highlighting the entire sentence.)
In the ValidMind Platform, click Model Inventory on the left sidebar. In the ValidMind Platform, click “Model Inventory” on the left sidebar.
Uncertainty can be summed up as the difference between reality and the outputs from the model selected to approximate reality. “Uncertainty” can be summed up as the difference between reality and the outputs from the model selected to approximate reality.
“ValidMind is the only platform today that is purpose-built for model risk management professionals in the banking industry,” Jacobi says. At ValidMind, we value “transparency and accessibility” — we aim to speak simply and effectively.

Callouts

We use two types of callouts8 to call attention to supplementary information or issue warnings:

8 Quarto: Callout Blocks

.callout

For supplemental information. Notes and tips should follow this formatting.

.callout-important

For warnings and caveats. Warnings, important information, and cautions should follow this format.

Callouts examples
Correct Incorrect
::: {.callout title="Example note or tip"} ::: {.callout-note title="Incorrect note"}
::: {.callout-important title="Example warning, important, or caution"} ::: {.callout-warning title="Incorrect warning"}

Content types

Filenames

Filenames should generally match the title of the article9 or concisely summarize the content, and be descriptive but not overly lengthy.

  • Filenames for concepts should generally only be made up of nouns and end in -overview if they introduce a product area.
  • Do not include extraneous keywords.
  • A good filename makes the contents obvious!
Filenames examples
Correct Incorrect
style-guide.qmd style-guide-technical-writing.qmd
example-model-workflow.png customize-workflow-mrm-governance.png
model-documentation-overview.qmd automated-testing-and-documentation.qmd
model-lifecycle.gif img4.gif
If you move or rename a file, use a Quarto alias to redirect users to the new page.

For example, for an original file named site/guide/overview.qmd moved and renamed to site/about/new-overview.qmd, you would insert the following into the new-overview.qmd’s YAML header:10

---
title: "New overview"
aliases:
  - ../guide/overview.html
---

10 Quarto: Redirects

Screenshots

  • Screen captures of the UI or other elements to assist users with their tasks should have the .screenshot class applied to them, which will add a border distinguishing the image from the rest of the text.
  • When necessary, interactive elements within a larger complex screenshot should be highlighted for ease of comprehension.
  • For screenshots with lots of detail, append the .lightbox class to them to allow users to enlarge them. You can also enable .lightbox at the page level for all images by adding the following to the YAML header:
lightbox: true
Screenshot examples
Correct Incorrect
Screenshot of the verification email sent by ValidMind
![Verification email sent by ValidMind](/guide/configuration/verify-email.png){width=70% fig-alt="Screenshot of the verification email sent by ValidMind" .screenshot .lightbox} ![](/guide/configuration/verify-email.png){width=80%}

Videos

  • For internally hosted videos, YouTube hosted videos and playlists, and other videos that can be hotlinked, use Quarto’s built-in video embed functionality.11
  • For videos services that cannot be hotlinked (for example, Loom), use their provided embed code with our custom styling appended to the iframe.

11 Quarto: Videos

Hotlinked
{{< video https://www.youtube.com/embed/rIR8Mql7eGs?si=vnZA_zP4tAjFjI4r title='ValidMind QuickStart' >}}
Embedded
<div style="position: relative; padding-bottom: 65.2962515114873%; height: 0;"><iframe src="https://www.loom.com/embed/4d0572607d254b04a5c951b4d3f91f73?sid=ac7ffa93-e9e2-42f0-9392-abcf8d52c104" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 90%; height: 90%; box-shadow: 5px 5px 5px #ccc; border-radius: 5px; border: 1px solid #196972;"></iframe></div>

Code

  • Format code in its own code block.12
  • Declare the code language within the pre-formatted block to properly trigger syntax highlighting.

12 Quarto: Source Code

13 Jupyter Notebooks: Code Cells

Within a Jupyter Notebook, simply use a code cell13 rather than a markdown cell.

Correct:

%pip install -q validmind
Incorrect:
      Using Python, call %pip install -q validmind.

Parameters, values, and files

Use backticks to enclose keyboard commands, parameters, field values, and file names/extensions.

Backtick examples
Correct Incorrect
Learn how to store model identifier credentials in a .env file instead of using inline credentials. Learn how to store model identifier credentials in a “.env” file instead of using inline credentials.
For example, the classifier_full_suite test suite runs tests from the tabular_dataset and classifier test suites to fully document the data and model sections for binary classification model use cases. For example, the “classifier_full_suite” test suite runs tests from the “tabular_dataset” and “classifier” test suites to fully document the data and model sections for binary classification model use cases.
Under When these conditions are met, you are able to set both AND and OR conditions. Under When these conditions are met, you are able to set both “AND” and “OR” conditions.

Mathematics

  • Mathematical formulas should be rendered using LaTeX formatting.14
  • On our WordPress blog posts, this is taken care of by the WP Quick LaTeX plugin.15

14 Quarto: LaTeX Equations

15 WordPress: WP QuickLaTeX

Mathematical formula examples
Correct Incorrect
\(likes \sim Binomial(n_{feedbacks},p_{like})\) $likes \sim Binomial(n_{feedbacks},p_{like})$

Proper nouns

In the context of model risk management, proper nouns include specific models, laws, or regulations, such as “Basel IV” or “SR 11-7.” These refer to specific frameworks or guidelines and you spell them with initial capital letters or exactly as indicated by official sources.

  • Terms that are not proper nouns include general concepts such as “model validation,” “stress testing,” “risk assessment,” and “backtesting.”
  • These are common terms in the field and are not capitalized unless starting a sentence.
Proper noun examples
Correct Incorrect
SS1/23 – Model risk management principles for banks Model Validation
validation report basel 4
machine learning Financial Services industry

Product names

Within our documentation (https://docs.validmind.ai/), you are able to reference constants such as the ValidMind Library and ValidMind Platform via variables.16

16 Quarto: Variables

  • Use the variables shown on the table below instead of writing out the phrases to enable consistency between guides everywhere except for image alt text or Mermaid charts.17
  • If product names need to be updated, simply amend the _variables.yml file18 to see changes reflected throughout all guides.
  • Please note that variables will not work within any of the Jupyter Notebook code samples19 as these are technically standalone files.

18 ValidMind GitHub: _variables.yml

ValidMind product variable keys
Product Name Variable Key Description

ValidMind AI risk platform

{{< var validmind.product >}} Comphrensive suite of tools with a library for documenting and testing models, alongside a platform hosting cloud-based tools, APIs, databases, and validation engines.

ValidMind Library

{{< var validmind.developer >}} Open-source library that connects to the ValidMind Platform.

ValidMind Platform

{{< var validmind.platform >}} Hosted multi-tenant architecture that includes a cloud-based web interface.

Python Library API

{{< var validmind.api >}} Used to make calls to the ValidMind Library.20

ValidMind

{{< var vm.product >}} Short form of ValidMind AI risk platform.

library

{{< var vm.developer >}} Short form of ValidMind Library.

platform

{{< var vm.platform >}} Short form of ValidMind Platform.

Python API

{{< var validmind.api >}} Short form of Python Library API.

https://app.prod.validmind.ai

{{< var url.us1 >}} US-hosted ValidMind Platform URL.

https://app.ca1.validmind.ai

{{< var url.ca1 >}} CA-hosted ValidMind Platform URL.

Refer also to the glossary for extended information on product names.

Training materials

The ValidMind Academy21 is delivered in Revealjs presentation format,22 with a slightly different set of conventions:

  • Training courses consist of:

    1. A course registration page.23
    2. The course slides themselves.24
  • Training materials use several supplementary style sheets to apply an alternate site theme:

    1. ValidMind Academy pages: training.css25
    2. Course slides: slides.scss26
  • Each course lives in its own subdirectory within our training, where the name of the directory reflects the name of the course.

25 ValidMind GitHub: training.css

26 ValidMind GitHub: slides.scss

Training subdirectory examples
Correct Incorrect
/training/administrator-training/administrator-fundamentals.qmd /training/administrator-fundamentals/administrator-fundamentals.qmd

Course registration

  • Course registration pages outline what the course covers and how to sign up for the course.

  • Registration pages make use of our custom .preview extension27 to display the tile card for the course. These previews act like links but they provide a live preview of the page linked to.

    First enable course previews in the front matter:

    filters:
      - preview

27 ValidMind GitHub: preview extension

Then reference the file to embed within the body of the page:

::: {.preview source="/training/administrator-fundamentals/administrator-fundamentals.qmd"}
:::
Optional
Specify a different target for the preview to preview a training course but link to the registration page, for example:
::: {.preview source="administrator-fundamentals.qmd" target="administrator-fundamentals-register.qmd"}
:::

A screenshot showing an example of a course registration page

Example of a course registration page

Course slides

  • Training slides make use of Tachyons CSS28 styled with our custom .overlay class to provide demonstration overlays.

    Enable Tachyons CSS in the front matter with:

    filters:
        - tachyons

Example overlay box:

:::: {.fr .f3 .mv5 .nr4 .pa5 .overlay}
From  ** Settings** in the ValidMind Platform, <br>you can: 

- Set up your organization
- Onboard new users
- Manage roles, groups and <br>permissions
- Configure the model inventory
- Manage templates and workflows
- And much more!

Try it **live** on the next page. 
::::

A screenshot showing an example of a training overlay

Example of a training overlay
  • Training slides use inline links only instead of footnotes,29 as footnotes are not visible in presentation mode.

What’s next