GitHub 8
Skip to content

Built-in presets

Extend the built-in tech and inclusive presets from your glossary or config file, and override or turn off entries.

glosslint ships two presets, tech and inclusive. Their keys do not overlap, so you can extend both at once.

glosslint/presets/tech checks the casing of product and technology names like GitHub and Apple Pay. It is built from case-police and skips all-lowercase and all-uppercase words, so github and GITHUB pass while Github is reported. Browse src/presets/tech.ts or read Coming from case-police.

glosslint/presets/inclusive flags non-inclusive terms and suggests replacements, such as allowlist for "whitelist" or placeholder for "dummy data". Everyday technical uses like a git master branch are left alone; only specific phrases like "master server" are flagged. See src/presets/inclusive.ts for the full list.

List presets under Presets: in .agents/glossary.md:

# Glossary

Presets: tech, inclusive
.agents/glossary.md

Or import them in defineCorpus:

import { defineCorpus, fromGlossary } from "glosslint";
import inclusive from "glosslint/presets/inclusive";
import tech from "glosslint/presets/tech";

const corpus = defineCorpus({
  extends: [tech, inclusive, fromGlossary()],
});
ts

Defining a term with the same name replaces the preset entry completely, so ## GitHub drops tech's skip setting and checks github and GITHUB too. See Merge order.

# Glossary

Presets: tech

## GitHub
.agents/glossary.md

Add a word to Allow: to silence it, listing both spaced and joined forms for multi-word terms because spaces only match separators.

# Glossary

Presets: tech, inclusive
Allow: Apple Pay, ApplePay, whitelist
.agents/glossary.md