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.
Inclusive
Section titled "Inclusive"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.
Use a preset
Section titled "Use a preset"List presets under Presets: in .agents/glossary.md:
# Glossary
Presets: tech, inclusiveOr 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()],
});Override a term
Section titled "Override a term"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
## GitHubTurn a term off
Section titled "Turn a term off"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