|
| 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/) |
0 commit comments