[{"data":1,"prerenderedAt":355,"buildId":356},["ShallowReactive",2],{"docs:\u002Fguide":3},{"page":4,"section":17,"document":18,"credits":11,"prev":11,"next":353},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":9,"description":10,"tagline":10,"eyebrow":11,"credits":11,"keywords":12,"icon":13,"layout":14,"sidebar":15,"toc":15,"kind":11,"group":11,"navigation":15,"order":16},"index","\u002Fguide","guide\u002Findex.md","Introduction","Introduction to glosslint","Learn how glosslint checks product terms across ESLint, x18n and Markdown docs from one glossary, and what its three finding codes report.",null,[],"i-lucide-book-open","article",true,1,"guide",{"nodes":19,"toc":347},[20,24,32,56,63,66,72,75,169,182,188,209,214,236,242],[21,22,23],"p",{},"This page explains what glosslint checks, how its pieces connect, and where to go next in the guide. Read it first if you are evaluating glosslint or setting up a product glossary for your repository.",[25,26,31],"h2",{"id":27,"anchor":28},"why-one-glossary",{"label":29,"icon":30},"Section titled \"Why one glossary\"","#","Why one glossary",[21,33,34,35,39,40,43,44,47,48,51,52,55],{},"Product terms drift across a codebase. A button says ",[36,37,38],"code",{},"Buy a day pass",", a YAML locale file says ",[36,41,42],{},"Check-out",", a code comment says ",[36,45,46],{},"rack"," instead of ",[36,49,50],{},"dock",", and a Markdown guide writes ",[36,53,54],{},"e-bike",". People who are new to the project, and coding agents working from a prompt, do not know which word the product uses or why another word is wrong.",[21,57,58,59,62],{},"glosslint keeps one corpus of your product's words in ",[36,60,61],{},"glosslint.config.ts",". Each term holds its spelling, its casing rules, what the concept means, how it differs from nearby concepts, and which words to avoid. You can also load terms from a Markdown glossary table or extend the built-in tech and inclusive presets.",[21,64,65],{},"Every finding prints the reason and the term's meaning alongside the fix. People learn the product vocabulary while they fix lint errors, and coding agents get enough context to decide whether a suggested word fits the sentence.",[25,67,71],{"id":68,"anchor":69},"three-kinds-of-finding",{"label":70,"icon":30},"Section titled \"Three kinds of finding\"","Three kinds of finding",[21,73,74],{},"Every tool reports the same three finding codes:",[76,77,78,91],"table",{},[79,80,81],"thead",{},[82,83,84,88],"tr",{},[85,86,87],"th",{},"Code",[85,89,90],{},"What it reports",[92,93,94,128,144],"tbody",{},[82,95,96,102],{},[97,98,99],"td",{},[36,100,101],{},"GLOSSLINT_TERM",[97,103,104,105,107,108,111,112,107,114,117,118,107,121,124,125,127],{},"A term written with other splits or hyphens, such as ",[36,106,54],{}," for ",[36,109,110],{},"eBike"," or ",[36,113,42],{},[36,115,116],{},"Checkout",". An avoid word with the same key as a term, such as ",[36,119,120],{},"day-pass",[36,122,123],{},"Day Pass",", also reports ",[36,126,101],{},".",[82,129,130,135],{},[97,131,132],{},[36,133,134],{},"GLOSSLINT_AVOID",[97,136,137,138,47,140,143],{},"An avoid word used in place of a term, such as ",[36,139,46],{},[36,141,142],{},"Dock",". Its finding prints the reason why and offers a suggestion rather than an autofix.",[82,145,146,151],{},[97,147,148],{},[36,149,150],{},"GLOSSLINT_CASE",[97,152,153,154,157,158,161,162,165,166,168],{},"Wrong capitals on an ",[36,155,156],{},"exact"," term, a ",[36,159,160],{},"context"," term, or an abbreviation, such as ",[36,163,164],{},"day pass"," in a label or ",[36,167,123],{}," inside a sentence.",[21,170,171,172,177,178,181],{},"See ",[173,174,176],"a",{"href":175},"\u002Freference\u002Ffindings","Findings"," for the full structure of a finding, its JSON output, and the three ",[36,179,180],{},"fix.kind"," values.",[25,183,187],{"id":184,"anchor":185},"how-it-works",{"label":186,"icon":30},"Section titled \"How it works\"","How it works",[21,189,190,193,194,198,199,203,204,208],{},[36,191,192],{},"defineCorpus"," validates your config at load time and returns a flat corpus. One matcher checks text against that corpus, and ",[173,195,197],{"href":196},"\u002Fintegrations\u002Feslint","ESLint",", ",[173,200,202],{"href":201},"\u002Fintegrations\u002Fx18n","x18n"," and the ",[173,205,207],{"href":206},"\u002Fintegrations\u002Fcli","CLI"," each feed it the text they own.",[210,211],"pele",{"language":212,"content":213},"mermaid","flowchart LR\n  corpus[\"glosslint.config.ts\u003Cbr\u002F>glossary table + presets\"] --> matcher[\"Matcher\"]\n  matcher --> eslint[\"ESLint\u003Cbr\u002F>code, YAML locales,\u003Cbr\u002F>comments, identifiers\"]\n  matcher --> x18n[\"x18n\u003Cbr\u002F>translations\"]\n  matcher --> cli[\"CLI\u003Cbr\u002F>Markdown docs\"]\n  eslint --> findings[\"Findings\u003Cbr\u002F>why, fix, meaning\u003Cbr\u002F>for people and agents\"]\n  x18n --> findings\n  cli --> findings\n",[21,215,216,217,198,219,198,221,198,223,226,227,229,230,127],{},"Every example in these docs uses an invented bike-share app with terms like ",[36,218,142],{},[36,220,110],{},[36,222,123],{},[36,224,225],{},"Station"," and ",[36,228,116],{},". The complete working example lives in ",[173,231,233],{"href":232},"https:\u002F\u002Fgithub.com\u002Fonmax\u002Fglosslint\u002Fblob\u002Fmain\u002Fexamples\u002Fbasic",[36,234,235],{},"examples\u002Fbasic",[25,237,241],{"id":238,"anchor":239},"guide-pages",{"label":240,"icon":30},"Section titled \"Guide pages\"","Guide pages",[243,244,245,253,266,273,291,298,309,323,333],"ul",{},[246,247,248,252],"li",{},[173,249,251],{"href":250},"\u002Fguide\u002Finstallation","Installation",": install glosslint, check the Node 22.18 requirement, write a starter config, and run your first check and corpus test.",[246,254,255,259,260,262,263,127],{},[173,256,258],{"href":257},"\u002Fguide\u002Fcorpus","The corpus",": configure ",[36,261,61],{},", allow phrases that have a second meaning, and understand merge order across ",[36,264,265],{},"extends",[246,267,268,272],{},[173,269,271],{"href":270},"\u002Fguide\u002Fterms","Terms",": define each term's spelling, description, nuance, avoid words, examples, links, abbreviations, forms and translations.",[246,274,275,279,280,198,283,226,285,287,288,127],{},[173,276,278],{"href":277},"\u002Fguide\u002Fcasing","Casing",": choose between ",[36,281,282],{},"spelling",[36,284,156],{},[36,286,160],{}," casing, set case styles per text kind, and override detection with ",[36,289,290],{},"kindOf",[246,292,293,297],{},[173,294,296],{"href":295},"\u002Fguide\u002Fignored-text","Ignored text",": see which placeholders, ICU syntax, URLs, paths, backticks and code tokens glosslint blanks out before matching.",[246,299,300,304,305,308],{},[173,301,303],{"href":302},"\u002Fguide\u002Fglossary-table","Glossary table",": load terms from a Markdown table with ",[36,306,307],{},"fromGlossaryTable"," and map custom column headers.",[246,310,311,315,316,226,319,322],{},[173,312,314],{"href":313},"\u002Fguide\u002Fpresets","Presets",": extend the built-in ",[36,317,318],{},"tech",[36,320,321],{},"inclusive"," presets and override or allow individual terms.",[246,324,325,329,330,332],{},[173,326,328],{"href":327},"\u002Fguide\u002Fcase-police","case-police",": see how glosslint uses the case-police dictionaries in the ",[36,331,318],{}," preset.",[246,334,335,339,340,107,343,346],{},[173,336,338],{"href":337},"\u002Fguide\u002Fagents","Coding agents",": generate ",[36,341,342],{},".agents\u002Fterms.md",[36,344,345],{},"AGENTS.md",", follow the five-step agent workflow, and install the glosslint skill.",[348,350,351,352],{"id":27,"depth":349,"text":31},2,{"id":68,"depth":349,"text":71},{"id":184,"depth":349,"text":187},{"id":238,"depth":349,"text":241},{"path":250,"title":251,"description":354},"Install glosslint, check the Node 22.18 and optional peer requirements, write your first glosslint.config.ts, and run check and test.",1795627929536,"94d466e2-147b-430f-b5f0-25c6a986e462"]