# Modifying non-inclusive words in mdlint

Fuchsia uses `mdlint`, a Markdown linter to enforce specific rules
for documentation in the Fuchsia Source Tree. `mdlint` has a non-inclusive
language detector that uses a JSON file of non-inclusive words and their
respective alternatives.

To update, remove, or add to the non-inclusive language list:

## Update the list

1. Open [`/tools/mdlint/rules/respectful_code_words.json`](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=tools/mdlint/rules/respectful_code_words.json).
2. To add or modify suggestions for a non-inclusive word, append a comma and
   write your new suggestion. For example:

       "master": "main, primary,new suggestion",

## Remove from list

1. Open [`/tools/mdlint/rules/respectful_code_words.json`](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=tools/mdlint/rules/respectful_code_words.json).
2. Delete the entire line containing the non-inclusive word and suggestions.

   > [!NOTE]
   > **Note:** If you delete the last word in the list, remove the comma from the new final word line.

## Add to list

1. Open [`/tools/mdlint/rules/respectful_code_words.json`](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=tools/mdlint/rules/respectful_code_words.json).
2. Add a newline between the words based upon the alphabetical order of the words in the list.
3. Add your word with its respective inclusive suggestions. For example:

   > [!NOTE]
   > **Note:** If your new word is at placed at the end of the JSON, do not end the line with a comma (`,`).

       "non-inclusive word": "first inclusive suggestion, second inclusive suggestion...",

[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/contribute/docs/modify-mdlint-inclusive-language.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/contribute/docs/modify-mdlint-inclusive-language.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/contribute/docs/modify-mdlint-inclusive-language.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/contribute/docs/modify-mdlint-inclusive-language.md "Edit the source code of this page")