[{"data":1,"prerenderedAt":602,"buildId":603},["ShallowReactive",2],{"docs:\u002Fguide\u002Fterms":3},{"page":4,"section":16,"document":17,"credits":10,"prev":598,"next":600},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"terms","\u002Fguide\u002Fterms","guide\u002Fterms.md","Defining terms","Configure glosslint terms with descriptions, nuance, avoid words, abbreviations, casing options, locale forms, and inline test examples.",null,[],"i-lucide-book-text","article",true,4,"guide",{"nodes":18,"toc":591},[19,29,37,49,189,195,459,465,486,489,521,533,539,559,565],[20,21,22,23,28],"p",{},"Each entry in a ",[24,25,27],"a",{"href":26},"\u002Fguide\u002Fcorpus","corpus"," defines one word or phrase from your product vocabulary. Add a term when you want glosslint to enforce its spelling, control its capitals, flag words to avoid, or print a definition alongside every finding.",[30,31,36],"h2",{"id":32,"anchor":33},"a-complete-term",{"label":34,"icon":35},"Section titled \"A complete term\"","#","A complete term",[20,38,39,40,44,45,48],{},"Only ",[41,42,43],"code",{},"term"," is required, so a minimal entry can be ",[41,46,47],{},"{ term: \"Checkout\" }",". Adding descriptions, nuance, avoid words, examples, and links gives people and coding agents the context behind each finding:",[50,51,54],"pre",{"language":52,"class":53},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[41,55,57,66,67,66,83,66,95,66,107,66,133,66,164,66,184],{"class":56},"language-ts",[58,59,62],"span",{"class":60,"style":61},"line","display: inline",[58,63,65],{"style":64},"color:#1F2328;--shiki-dark:#E6EDF3","{","\n",[58,68,69,73,76,80],{"class":60,"style":61},[58,70,72],{"style":71},"color:#953800;--shiki-dark:#FFA657","  term",[58,74,75],{"style":64},": ",[58,77,79],{"style":78},"color:#0A3069;--shiki-dark:#A5D6FF","\"Dock\"",[58,81,82],{"style":64},",",[58,84,85,88,90,93],{"class":60,"style":61},[58,86,87],{"style":71},"  description",[58,89,75],{"style":64},[58,91,92],{"style":78},"\"A powered stand where one bike is locked.\"",[58,94,82],{"style":64},[58,96,97,100,102,105],{"class":60,"style":61},[58,98,99],{"style":71},"  nuance",[58,101,75],{"style":64},[58,103,104],{"style":78},"\"A station is a group of docks.\"",[58,106,82],{"style":64},[58,108,109,112,115,118,121,124,127,130],{"class":60,"style":61},[58,110,111],{"style":71},"  avoid",[58,113,114],{"style":64},": [{ word: ",[58,116,117],{"style":78},"\"rack\"",[58,119,120],{"style":64},", why: ",[58,122,123],{"style":78},"\"Racks are unpowered.\"",[58,125,126],{"style":64}," }, ",[58,128,129],{"style":78},"\"bay\"",[58,131,132],{"style":64},"],",[58,134,135,138,141,144,147,150,153,156,158,161],{"class":60,"style":61},[58,136,137],{"style":71},"  examples",[58,139,140],{"style":64},": { ",[58,142,143],{"style":71},"good",[58,145,146],{"style":64},": [",[58,148,149],{"style":78},"\"Return the bike to any dock\"",[58,151,152],{"style":64},"], ",[58,154,155],{"style":71},"bad",[58,157,146],{"style":64},[58,159,160],{"style":78},"\"Return the bike to any rack\"",[58,162,163],{"style":64},"] },",[58,165,166,169,172,175,178,181],{"class":60,"style":61},[58,167,168],{"style":71},"  links",[58,170,171],{"style":64},": [{ title: ",[58,173,174],{"style":78},"\"Docks\"",[58,176,177],{"style":64},", url: ",[58,179,180],{"style":78},"\"https:\u002F\u002Fexample.com\u002Fdocs\u002Fdocks\"",[58,182,183],{"style":64}," }],",[58,185,186],{"class":60,"style":61},[58,187,188],{"style":64},"}",[30,190,194],{"id":191,"anchor":192},"term-fields",{"label":193,"icon":35},"Section titled \"Term fields\"","Term fields",[196,197,198,211],"table",{},[199,200,201],"thead",{},[202,203,204,208],"tr",{},[205,206,207],"th",{},"Field",[205,209,210],{},"What it does",[212,213,214,232,242,256,273,290,311,337,365,381,419,442],"tbody",{},[202,215,216,221],{},[217,218,219],"td",{},[41,220,43],{},[217,222,223,224,227,228,231],{},"The term as it should be written, such as ",[41,225,226],{},"Dock"," or ",[41,229,230],{},"eBike",". Required.",[202,233,234,239],{},[217,235,236],{},[41,237,238],{},"description",[217,240,241],{},"What the concept is, in one sentence. Every finding about the term prints it.",[202,243,244,249],{},[217,245,246],{},[41,247,248],{},"nuance",[217,250,251,252,255],{},"How the term differs from near ones and when not to use it. Every finding's message prints it, and it is the finding's ",[41,253,254],{},"why"," unless an avoid word gives its own reason.",[202,257,258,263],{},[217,259,260],{},[41,261,262],{},"avoid",[217,264,265,266,269,270,272],{},"Words to report in favour of this term. Each is a string, or ",[41,267,268],{},"{ word, why }"," where ",[41,271,254],{}," becomes the finding's reason.",[202,274,275,280],{},[217,276,277],{},[41,278,279],{},"examples",[217,281,282,285,286,289],{},[41,283,284],{},"{ good, bad }",": strings that ",[41,287,288],{},"glosslint test"," expects to pass and to be reported. They are the term's tests.",[202,291,292,297],{},[217,293,294],{},[41,295,296],{},"links",[217,298,299,302,303,306,307,310],{},[41,300,301],{},"[{ title, url }]",", pages that explain the term. The first ",[41,304,305],{},"url"," becomes the finding's ",[41,308,309],{},"see",".",[202,312,313,318],{},[217,314,315],{},[41,316,317],{},"case",[217,319,320,321,324,325,328,329,332,333,310],{},"How capitals are checked: ",[41,322,323],{},"exact",", ",[41,326,327],{},"spelling"," (the default), or ",[41,330,331],{},"context",". See ",[24,334,336],{"href":335},"\u002Fguide\u002Fcasing","Casing rules",[202,338,339,344],{},[217,340,341],{},[41,342,343],{},"casing",[217,345,346,347,349,350,353,354,356,357,359,360,362,363,310],{},"This term's case style per kind of text, over the corpus's ",[41,348,343],{},", such as ",[41,351,352],{},"{ label: \"as-written\" }",". A term with ",[41,355,343],{}," and no ",[41,358,317],{}," is a ",[41,361,331],{}," term. See ",[24,364,336],{"href":335},[202,366,367,372],{},[217,368,369],{},[41,370,371],{},"abbr",[217,373,374,375,378,379,310],{},"Abbreviations of the term, such as ",[41,376,377],{},"DP"," for Day Pass. They are always checked as ",[41,380,323],{},[202,382,383,388],{},[217,384,385],{},[41,386,387],{},"skip",[217,389,390,324,393,396,397,401,402,406,407,410,411,414,415,418],{},[41,391,392],{},"[\"lower\"]",[41,394,395],{},"[\"upper\"]",", or both: whole-word casings that always pass. The ",[24,398,400],{"href":399},"\u002Fguide\u002Fpresets","tech preset"," sets both, as ",[24,403,405],{"href":404},"\u002Fguide\u002Fcase-police","case-police"," does, so ",[41,408,409],{},"github"," and ",[41,412,413],{},"GITHUB"," pass while ",[41,416,417],{},"Github"," is reported.",[202,420,421,426],{},[217,422,423],{},[41,424,425],{},"forms",[217,427,428,429,432,433,437,438,441],{},"Other forms per locale, such as ",[41,430,431],{},"{ de: [\"Dockingstation\", \"Dockingstationen\"] }",". They go to ",[24,434,436],{"href":435},"\u002Fintegrations\u002Fx18n","x18n","'s glossary as they are, and ",[41,439,440],{},"glosslint explain"," finds a term by its forms.",[202,443,444,449],{},[217,445,446],{},[41,447,448],{},"translations",[217,450,451,452,455,456,458],{},"The term's translation per locale, such as ",[41,453,454],{},"{ de: \"Dock\" }",", passed to ",[24,457,436],{"href":435},"'s glossary as it is.",[30,460,464],{"id":461,"anchor":462},"avoid-words",{"label":463,"icon":35},"Section titled \"Avoid words\"","Avoid words",[20,466,467,468,470,471,473,474,476,477,480,481,483,484,310],{},"Each entry in ",[41,469,262],{}," is either a plain string like ",[41,472,129],{}," or an object ",[41,475,268],{}," like ",[41,478,479],{},"{ word: \"rack\", why: \"Racks are unpowered.\" }",". When ",[41,482,254],{}," is set, it becomes the finding's reason instead of ",[41,485,248],{},[20,487,488],{},"Matching follows three rules:",[490,491,492,496,503],"ul",{},[493,494,495],"li",{},"Avoid words match in any case.",[493,497,498,499,502],{},"An avoid word with two capitals in a row, such as ",[41,500,501],{},"SM",", matches only as written.",[493,504,505,506,509,510,513,514,332,517,310],{},"An avoid word with the same key as a term, such as ",[41,507,508],{},"day-pass"," for Day Pass, counts as a misspelling of that term and gives ",[41,511,512],{},"GLOSSLINT_TERM",", not ",[41,515,516],{},"GLOSSLINT_AVOID",[24,518,520],{"href":519},"\u002Freference\u002Ffindings","Findings",[522,523,526],"github-callout",{"type":524,"title":525},"note","Note",[20,527,528,529,532],{},"A term's key is its words joined and lowercased, letters and digits only. See ",[24,530,531],{"href":26},"The corpus"," for how keys work during merging.",[30,534,538],{"id":535,"anchor":536},"plurals",{"label":537,"icon":35},"Section titled \"Plurals\"","Plurals",[20,540,541,542,227,545,548,549,551,552,555,556,310],{},"Plurals ending in ",[41,543,544],{},"s",[41,546,547],{},"es"," match both terms and avoid words. You do not need to list plural forms separately in ",[41,550,262],{},": glosslint reports ",[41,553,554],{},"\"racks\""," and suggests ",[41,557,558],{},"\"docks\"",[30,560,564],{"id":561,"anchor":562},"testing-terms-with-examples",{"label":563,"icon":35},"Section titled \"Testing terms with examples\"","Testing terms with examples",[20,566,567,568,570,571,573,574,576,577,581,582,584,585,587,588,590],{},"The ",[41,569,279],{}," field holds ",[41,572,284],{}," lists that act as the term's tests. When you run ",[41,575,288],{}," through the ",[24,578,580],{"href":579},"\u002Fintegrations\u002Fcli","CLI",", every string in ",[41,583,143],{}," must pass with no findings, and every string in ",[41,586,155],{}," must give a finding for that term. Run ",[41,589,288],{}," in CI and after editing your corpus.",[592,594,595,596,597],{"id":32,"depth":593,"text":36},2,{"id":191,"depth":593,"text":194},{"id":461,"depth":593,"text":464},{"id":535,"depth":593,"text":538},{"id":561,"depth":593,"text":564},{"path":26,"title":531,"description":599},"Define your glosslint corpus in glosslint.config.ts, combine presets and glossary tables, allow phrases, and control merge order.",{"path":335,"title":336,"description":601},"How glosslint checks capitals with exact, spelling and context terms, and how case styles set the casing of labels, headers and sentences.",1795627930084,"94d466e2-147b-430f-b5f0-25c6a986e462"]