Skip to content

Commit 2650d56

Browse files
authored
Add writing and style guide to docs (#635)
1 parent 5305a54 commit 2650d56

6 files changed

Lines changed: 115 additions & 5 deletions

File tree

docs/astro.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export default defineConfig({
4444
},
4545
{
4646
label: "Guides",
47-
items: ["guides/setup", "guides/new-pdfs", "guides/building-forms"],
47+
items: [
48+
"guides/setup",
49+
"guides/new-pdfs",
50+
"guides/building-forms",
51+
"guides/writing",
52+
],
4853
},
4954
{
5055
label: "Understanding",
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
---
2+
title: Writing and Style Guide
3+
description: The name change process can be made easier to understand by following these writing guidelines.
4+
---
5+
6+
The guidelines below are designed to help craft guides for Namesake that are easy to understand and follow.
7+
8+
## Writing
9+
10+
### Use plain language
11+
12+
All readers can benefit from clear, straightforward writing, but this can be particularly important for people who:
13+
14+
- are reading in a non-native language
15+
- are frustrated, tired, or in a hurry
16+
- have cognitive, learning, or attention difficulties
17+
- do not have familiarity with the legal system
18+
19+
Aim for **clear** and **helpful** documentation that serves the reader above all else.
20+
21+
Usually this means choosing:
22+
23+
- shorter sentences and paragraphs
24+
- simpler vocabulary and phrases
25+
- less jargon
26+
- fewer assumptions about what the reader already knows
27+
- bullet points and section headings to break up chunks of text
28+
29+
For more information, read [plainlanguage.gov](https://www.plainlanguage.gov/).
30+
31+
### Write out abbreviations and acronyms
32+
33+
The first time you use an abbreviation or acronym, write it out in full.
34+
35+
> ✅ Mail your documents to the Rhode Island Bureau of Criminal Investigation (BCI).
36+
>
37+
> ❌ Mail your documents to BCI.
38+
39+
### Keep headings short
40+
41+
Headings display in the sidebar and should be kept short and descriptive. Headings should use the active voice and start with a verb.
42+
43+
> ✅ Get prepared
44+
>
45+
> ❌ Collect everything you need for your name change application
46+
47+
### Use descriptive links
48+
49+
When linking to external resources, use descriptive text that clearly indicates what the link is for. Avoid generic phrases like "click here" or "learn more".
50+
51+
> [Get a certified copy of your birth certificate](https://www.mass.gov/ordering-a-certificate) from the Registry of Vital Records.
52+
>
53+
> ❌ Get a certified copy of your birth certificate [here](https://www.mass.gov/ordering-a-certificate).
54+
55+
### Don't hide important info behind external links
56+
57+
A Namesake guide should be _self-contained_, allowing a reader to understand the process without navigating to other webpages. Put the information inline, and link to the source for readers who want to verify details.
58+
59+
### Collapse non-essential information
60+
61+
There are questions about the name change process which are important to answer but may not apply to the majority of readers. Answer these questions without making the page look long and intimidating by hiding them behind a toggle.
62+
63+
Use the `<details>` element to collapse non-essential information. For example:
64+
65+
```mdx wrap
66+
<details>
67+
<summary>What if my birth certificate is not written in English?</summary>
68+
69+
Birth certificates that are not written in English must include a written translation signed by the person translating the birth certificate with a statement that they are fluent in the foreign language and English and that the translation is a true and accurate translation. The translators signature must be notarized.
70+
71+
</details>
72+
```
73+
74+
Will display:
75+
76+
<details>
77+
<summary>What if my birth certificate is not written in English?</summary>
78+
79+
Birth certificates that are not written in English must include a written translation signed by the person translating the birth certificate with a statement that they are fluent in the foreign language and English and that the translation is a true and accurate translation. The translators signature must be notarized.
80+
81+
</details>
82+
83+
`<details>` elements should be placed _after_ the main content of a section.
84+
85+
## Technical
86+
87+
### Prevent link rot
88+
89+
When URLs are renamed, existing links to Namesake will break, causing [link rot](https://en.wikipedia.org/wiki/Link_rot). Avoid renaming files within `src/content` and `src/pages`, since these filenames are used to generate site URLs.
90+
91+
If renaming is unavoidable, add an entry to `redirects` in `astro.config.ts`:
92+
93+
```ts {3-5}
94+
// astro.config.ts
95+
export default defineConfig({
96+
redirects: {
97+
'/old-url': '/new-url',
98+
},
99+
});
100+
```
101+
102+
## Resources
103+
104+
- [Plain Language](https://plainlanguage.gov)
105+
- [Diátaxis](https://diataxis.fr)
106+
- [Hemingway](https://hemingwayapp.com)
107+
- [Astro Docs Docs](https://contribute.docs.astro.build/)

web/src/constants/fields.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ export const FIELD_DEFS = [
470470
label: "Relationship to the person you are filing for (other)",
471471
type: "string",
472472
},
473-
// Affidavit of Indigency
474473
{
475474
name: "indigencyBasis",
476475
label: "Reason for indigency",

web/src/constants/forms.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ export interface FormConfig {
8888
costs?: readonly FormCost[];
8989
/** If true, excluded from the public forms listing */
9090
unlisted?: boolean;
91-
9291
/** Ordered steps, including optional guards for conditional inclusion. */
9392
steps: readonly Step[];
9493
/** PDFs included in this form */

web/src/content/guides/ma/court-order.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The court petition is a formal request to the state to legally change your name.
1414

1515
To file, you will need:
1616

17-
1. A certified copy of your birth certificate (long-form). This is available from the [Registry of Vital Records](https://www.mass.gov/ordering-a-certificate) or from the city or town where you were born.
17+
1. A [certified copy of your birth certificate](https://www.mass.gov/ordering-a-certificate) (long-form). This is available from the Registry of Vital Records or from the city or town where you were born.
1818
2. Past name change documents, if applicable. For example, a marriage certificate or Judgment of Divorce.
1919

2020
<details>

web/src/content/guides/ri/court-order.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To file, you will need:
2222
<details>
2323
<summary>What if I don't have a certified birth certificate?</summary>
2424

25-
If you were born in Rhode Island, you can get a certified birth certificate through the [Department of Health](https://health.ri.gov/vital-records), usually through your local town hall.
25+
If you were born in Rhode Island, you can [get a certified birth certificate](https://health.ri.gov/vital-records) through the Department of Health, usually through your local town hall.
2626

2727
If you were born outside of Rhode Island, the National Center for Health Statistics maintains a list of where to [write for vital records](https://www.cdc.gov/nchs/w2w/index.htm). Follow instructions for your birth state.
2828

0 commit comments

Comments
 (0)