[{"data":1,"prerenderedAt":946,"buildId":947},["ShallowReactive",2],{"docs:\u002Fguide\u002Fcasing":3},{"page":4,"section":16,"document":17,"credits":10,"prev":940,"next":942},{"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},"casing","\u002Fguide\u002Fcasing","guide\u002Fcasing.md","Casing rules","Pick exact, spelling, or context casing per term, see how glosslint tells labels from sentences, and set case styles per kind of text.",null,[],"i-lucide-case-sensitive","article",true,5,"guide",{"nodes":18,"toc":929},[19,66,74,165,214,269,294,352,358,508,511,521,594,628,634,710,718,743,769,775,785,811,823,830,840,892],[20,21,22,23,27,28,31,32,35,36,39,40,47,48,51,52,54,55,58,59,65],"p",{},"Use the default ",[24,25,26],"code",{},"spelling"," mode for most terms, ",[24,29,30],{},"exact"," for names that keep one form, and ",[24,33,34],{},"context"," when capitals change between labels and sentences. Set ",[24,37,38],{},"Case:"," per term in ",[41,42,44],"a",{"href":43},"\u002Fguide\u002Fglossary",[24,45,46],{},".agents\u002Fglossary.md",", and ",[24,49,50],{},"Casing:"," to style ",[24,53,34],{}," terms in labels, headers, and sentences, at the top for the whole glossary or under one term. ",[24,56,57],{},"wholeLabel"," lives in ",[41,60,62],{"href":61},"\u002Fguide\u002Fcorpus",[24,63,64],{},"defineCorpus",".",[67,68,73],"h2",{"id":69,"anchor":70},"case-modes",{"label":71,"icon":72},"Section titled \"Case modes\"","#","Case modes",[75,76,77,93],"table",{},[78,79,80],"thead",{},[81,82,83,87,90],"tr",{},[84,85,86],"th",{},"Mode",[84,88,89],{},"Pick this when",[84,91,92],{},"Example",[94,95,96,122,143],"tbody",{},[81,97,98,103,106],{},[99,100,101],"td",{},[24,102,26],{},[99,104,105],{},"Default. Only word splits and hyphens matter. Capitals stay as written.",[99,107,108,111,112,115,116,111,119],{},[24,109,110],{},"\"Check-out\""," → ",[24,113,114],{},"\"Checkout\"",", ",[24,117,118],{},"\"check-out\"",[24,120,121],{},"\"checkout\"",[81,123,124,128,131],{},[99,125,126],{},[24,127,30],{},[99,129,130],{},"One form must appear everywhere.",[99,132,133,136,137,111,140],{},[24,134,135],{},"\"E-bike\""," and ",[24,138,139],{},"\"Ebike\"",[24,141,142],{},"\"eBike\"",[81,144,145,149,152],{},[99,146,147],{},[24,148,34],{},[99,150,151],{},"Capitals depend on where the text is: Title Case in labels, lowercase in sentences.",[99,153,154,111,157,160,161,164],{},[24,155,156],{},"\"Buy a day pass\"",[24,158,159],{},"\"Buy a Day Pass\""," on a button; ",[24,162,163],{},"\"Buy a day pass at the kiosk.\""," in a sentence",[20,166,167,168,170,171,136,174,177,178,180,181,115,184,111,187,136,190,111,193,196,197,199,200,202,203,206,207,210,211,65],{},"Every term matches its plurals. Outside ",[24,169,30],{},", it also matches its ",[24,172,173],{},"ed",[24,175,176],{},"ing"," forms, and a term ending in ",[24,179,176],{}," matches its stem: under ",[24,182,183],{},"Prerendering",[24,185,186],{},"\"pre-rendered\"",[24,188,189],{},"\"prerendered\"",[24,191,192],{},"\"pre-renders\"",[24,194,195],{},"\"prerenders\"",". glosslint checks only the spelling of an ",[24,198,173],{}," or ",[24,201,176],{}," form, so ",[24,204,205],{},"\"Another Day Passed\""," in a label is not a ",[24,208,209],{},"Day Pass",". It doesn't read doubled consonants, as in ",[24,212,213],{},"\"shipped\"",[215,216,219],"pre",{"language":217,"filename":46,"class":218,"wrap":14},"md","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,220,222,231,232,231,234,231,239,231,245,231,247,231,252,231,257,231,259,231,264],{"class":221},"language-md",[223,224,227],"span",{"class":225,"style":226},"line","display: inline",[223,228,230],{"style":229},"color:#0550AE;--shiki-light-font-weight:bold;--shiki-dark:#79C0FF;--shiki-dark-font-weight:bold","# Glossary","\n",[223,233],{"class":225,"style":226},[223,235,236],{"class":225,"style":226},[223,237,238],{"style":229},"## Checkout",[223,240,241],{"class":225,"style":226},[223,242,244],{"style":243},"color:#1F2328;--shiki-dark:#E6EDF3","Case: spelling",[223,246],{"class":225,"style":226},[223,248,249],{"class":225,"style":226},[223,250,251],{"style":229},"## eBike",[223,253,254],{"class":225,"style":226},[223,255,256],{"style":243},"Case: exact",[223,258],{"class":225,"style":226},[223,260,261],{"class":225,"style":226},[223,262,263],{"style":229},"## Day Pass (DP)",[223,265,266],{"class":225,"style":226},[223,267,268],{"style":243},"Case: context",[20,270,271,272,274,275,278,279,282,283,286,287,290,291,65],{},"An ",[24,273,30],{}," name written as one word, like ",[24,276,277],{},"NuxtApp",", doesn't match the same words with spaces between them: \"a Nuxt app\" passes, while \"Nuxt-app\" is reported. A one-letter word still counts as part of the name, so \"E Bike\" → \"eBike\". To report a spaced form too, list it under the term's ",[24,280,281],{},"Avoid:",", as the ",[24,284,285],{},"tech"," preset does with ",[24,288,289],{},"web assembly"," for ",[24,292,293],{},"WebAssembly",[20,295,296,297,299,300,302,303,305,306,115,309,312,313,315,316,318,319,321,322,324,325,327,328,321,330,333,334,336,337,340,341,343,344,347,348,351],{},"Omit ",[24,298,38],{}," when you want ",[24,301,26],{},". In ",[24,304,46],{},", names with a capital after the first letter (",[24,307,308],{},"eBike",[24,310,311],{},"SOS",") pick ",[24,314,30],{}," without a ",[24,317,38],{}," line. A term's ",[24,320,50],{}," without ",[24,323,38],{}," makes it ",[24,326,34],{},", as ",[24,329,5],{},[24,331,332],{},"case"," does in ",[24,335,64],{},". glosslint always checks abbreviations like ",[24,338,339],{},"DP"," as ",[24,342,30],{},", except all-lowercase forms pass: ",[24,345,346],{},"\"dp\""," passes, ",[24,349,350],{},"\"Dp\""," is reported.",[67,353,357],{"id":354,"anchor":355},"how-context-picks-text-kind",{"label":356,"icon":72},"Section titled \"How context picks text kind\"","How context picks text kind",[359,360,361,394,426,460,474,480,499],"ul",{},[362,363,364,368,369,115,372,115,375,378,379,381,382,385,386,115,388,378,391,65],"li",{},[365,366,367],"strong",{},"Headers."," Names containing ",[24,370,371],{},"header",[24,373,374],{},"column",[24,376,377],{},"col",", or ",[24,380,84],{}," (like AG Grid's ",[24,383,384],{},"headerName","), max 7 words, no closing ",[24,387,65],{},[24,389,390],{},"!",[24,392,393],{},"?",[362,395,396,399,400,115,403,115,406,115,409,115,412,415,416,419,420,115,422,378,424,65],{},[365,397,398],{},"Labels."," Names such as ",[24,401,402],{},"label",[24,404,405],{},"title",[24,407,408],{},"button",[24,410,411],{},"tab",[24,413,414],{},"heading",", or ending in ",[24,417,418],{},"name",", max 7 words, no closing ",[24,421,65],{},[24,423,390],{},[24,425,393],{},[362,427,428,399,431,115,434,115,437,115,440,115,443,378,446,415,449,115,451,378,453,455,456,459],{},[365,429,430],{},"Sentences.",[24,432,433],{},"description",[24,435,436],{},"tooltip",[24,438,439],{},"text",[24,441,442],{},"message",[24,444,445],{},"hint",[24,447,448],{},"help",[24,450,65],{},[24,452,390],{},[24,454,393],{},". A name that ends in one of these words is a sentence even when an earlier word places it, so ",[24,457,458],{},"headerTooltip"," is a sentence.",[362,461,462,465,466,469,470,473],{},[365,463,464],{},"Vue templates (ESLint)."," Element decides: ",[24,467,468],{},"\u003Ctemplate #header>"," is a header, ",[24,471,472],{},"\u003Ch2>"," is a label.",[362,475,476,479],{},[365,477,478],{},"Markdown (CLI)."," Headings are labels, table first rows are headers, paragraphs and list items are sentences.",[362,481,482,485,486,115,489,115,492,495,496,498],{},[365,483,484],{},"Shape fallback."," Template text and YAML values whose name doesn't place them, with 4 or fewer words and no closing stop count as labels unless they open like a sentence (",[24,487,488],{},"\"There is\"",[24,490,491],{},"\"This\"",[24,493,494],{},"\"Are you\"","). Longer strings count as labels only if already in Title Case. Shape-guessed fixes for ",[24,497,34],{}," terms are suggestions, not autofixes.",[362,500,501,504,505,507],{},[365,502,503],{},"Other strings."," Comments and unmatched strings skip ",[24,506,34],{}," checks.",[20,509,510],{},"Name matching, sentence openers, and Title Case rules assume English source text.",[512,513,517,518],"h3",{"id":514,"anchor":515},"overriding-with-kindof",{"label":516,"icon":72},"Section titled \"Overriding with kindOf\"","Overriding with ",[24,519,520],{},"kindOf",[215,522,524],{"language":523,"class":218,"wrap":14},"ts",[24,525,527],{"class":526},"language-ts",[223,528,529,532,535,537,539,542,545,549,552,556,559,563,566,569,572,575,578,581,584,587,591],{"class":225,"style":226},[223,530,520],{"style":531},"color:#953800;--shiki-dark:#FFA657",[223,533,534],{"style":243},": ({ ",[223,536,418],{"style":531},[223,538,115],{"style":243},[223,540,541],{"style":531},"file",[223,543,544],{"style":243}," }) ",[223,546,548],{"style":547},"color:#CF222E;--shiki-dark:#FF7B72","=>",[223,550,551],{"style":243}," (file?.",[223,553,555],{"style":554},"color:#8250DF;--shiki-dark:#D2A8FF","includes",[223,557,558],{"style":243},"(",[223,560,562],{"style":561},"color:#0A3069;--shiki-dark:#A5D6FF","\"\u002Fcharts\u002F\"",[223,564,565],{"style":243},") ",[223,567,568],{"style":547},"&&",[223,570,571],{"style":243}," name ",[223,573,574],{"style":547},"===",[223,576,577],{"style":561}," \"text\"",[223,579,580],{"style":547}," ?",[223,582,583],{"style":561}," \"label\"",[223,585,586],{"style":547}," :",[223,588,590],{"style":589},"color:#0550AE;--shiki-dark:#79C0FF"," undefined",[223,592,593],{"style":243},"),",[20,595,596,597,136,601,605,606,610,611,614,615,115,618,115,621,378,624,627],{},"Available in ",[41,598,600],{"href":599},"\u002Fintegrations\u002Feslint","ESLint",[41,602,604],{"href":603},"\u002Fintegrations\u002Fx18n","x18n",", not ",[41,607,609],{"href":608},"\u002Fintegrations\u002Foxlint","Oxlint",". Runs first with ",[24,612,613],{},"{ text, name, file, shown }"," and returns ",[24,616,617],{},"\"label\"",[24,619,620],{},"\"header\"",[24,622,623],{},"\"sentence\"",[24,625,626],{},"undefined",". Its fixes are autofixes.",[67,629,633],{"id":630,"anchor":631},"case-styles",{"label":632,"icon":72},"Section titled \"Case styles\"","Case styles",[75,635,636,648],{},[78,637,638],{},[81,639,640,643],{},[84,641,642],{},"Style",[84,644,645,647],{},[24,646,209],{}," becomes",[94,649,650,661,677,688,700],{},[81,651,652,656],{},[99,653,654],{},[24,655,405],{},[99,657,658,660],{},[24,659,209],{}," (default in labels and headers)",[81,662,663,668],{},[99,664,665],{},[24,666,667],{},"sentence",[99,669,670,378,673,676],{},[24,671,672],{},"day pass",[24,674,675],{},"Day pass"," at sentence start (default in sentences)",[81,678,679,684],{},[99,680,681],{},[24,682,683],{},"lower",[99,685,686],{},[24,687,672],{},[81,689,690,695],{},[99,691,692],{},[24,693,694],{},"upper",[99,696,697],{},[24,698,699],{},"DAY PASS",[81,701,702,707],{},[99,703,704],{},[24,705,706],{},"as-written",[99,708,709],{},"As written in the corpus",[20,711,712,713,715,716,65],{},"Headers inherit the label style unless set. Words with an inner capital like ",[24,714,308],{}," keep it in every style except ",[24,717,694],{},[215,719,720],{"language":217,"filename":46,"class":218,"wrap":14},[24,721,722,231,726,231,728,231,733,231,735,231,739],{"class":221},[223,723,724],{"class":225,"style":226},[223,725,230],{"style":229},[223,727],{"class":225,"style":226},[223,729,730],{"class":225,"style":226},[223,731,732],{"style":243},"Casing: header upper",[223,734],{"class":225,"style":226},[223,736,737],{"class":225,"style":226},[223,738,263],{"style":229},[223,740,741],{"class":225,"style":226},[223,742,268],{"style":243},[20,744,745,748,749,751,752,754,755,302,757,759,760,762,763,115,766,768],{},[24,746,747],{},"{ headerName: \"Day pass\" }"," fixes to ",[24,750,699],{},", while ",[24,753,156],{}," on a button becomes ",[24,756,159],{},[24,758,694],{}," headers, all-caps forms pass for ",[24,761,30],{}," terms and abbreviations too (",[24,764,765],{},"EBIKE",[24,767,339],{},").",[67,770,774],{"id":771,"anchor":772},"per-term-styles",{"label":773,"icon":72},"Section titled \"Per-term styles\"","Per-term styles",[20,776,777,778,780,781,784],{},"A term's own ",[24,779,50],{}," wins over the glossary's for that term. It takes the same ",[24,782,783],{},"\u003Ckind> \u003Cstyle>"," pairs:",[215,786,787],{"language":217,"filename":46,"class":218,"wrap":14},[24,788,789,231,793,231,795,231,799,231,801,231,806],{"class":221},[223,790,791],{"class":225,"style":226},[223,792,230],{"style":229},[223,794],{"class":225,"style":226},[223,796,797],{"class":225,"style":226},[223,798,732],{"style":243},[223,800],{"class":225,"style":226},[223,802,803],{"class":225,"style":226},[223,804,805],{"style":229},"## Ride history",[223,807,808],{"class":225,"style":226},[223,809,810],{"style":243},"Casing: label as-written",[20,812,813,814,302,817,819,820,65],{},"\"Ride history\" stays as written in labels, takes lowercase in sentences, and \"RIDE HISTORY\" in headers, from the glossary's ",[24,815,816],{},"header upper",[24,818,64],{},", the same term is ",[24,821,822],{},"{ term: \"Ride history\", casing: { label: \"as-written\" } }",[67,824,828],{"id":825,"anchor":826},"wholelabel",{"label":827,"icon":72},"Section titled \"wholeLabel\"",[24,829,57],{},[20,831,832,834,835,839],{},[24,833,57],{}," has no glossary field. Set it in a ",[41,836,837],{"href":61},[24,838,64],{}," corpus:",[215,841,842],{"language":523,"class":218,"wrap":14},[24,843,844,231,861,231,863],{"class":526},[223,845,846,849,852,855,858],{"class":225,"style":226},[223,847,848],{"style":547},"import",[223,850,851],{"style":243}," { defineCorpus, fromGlossary } ",[223,853,854],{"style":547},"from",[223,856,857],{"style":561}," \"glosslint\"",[223,859,860],{"style":243},";",[223,862],{"class":225,"style":226},[223,864,865,868,871,874,877,880,883,886,889],{"class":225,"style":226},[223,866,867],{"style":547},"const",[223,869,870],{"style":589}," corpus",[223,872,873],{"style":547}," =",[223,875,876],{"style":554}," defineCorpus",[223,878,879],{"style":243},"({ extends: [",[223,881,882],{"style":554},"fromGlossary",[223,884,885],{"style":243},"()], wholeLabel: ",[223,887,888],{"style":589},"true",[223,890,891],{"style":243}," });",[20,893,894,895,898,899,902,903,906,907,199,909,911,912,914,915,918,919,921,922,136,925,928],{},"By default only the term is checked (",[24,896,897],{},"\"Day pass price\""," becomes ",[24,900,901],{},"\"Day Pass price\"","). With ",[24,904,905],{},"wholeLabel: true",", every word of a ",[24,908,405],{},[24,910,694],{}," label or header holding a ",[24,913,34],{}," term is checked in one fix (",[24,916,917],{},"\"Day Pass Price\"","). In ",[24,920,405],{}," style, small words like ",[24,923,924],{},"\"a\"",[24,926,927],{},"\"of\""," stay lowercase unless first or after a dash or colon, and text in parentheses keeps its case.",[930,932,937,938,939],{"id":69,"depth":931,"text":73},2,{"id":354,"depth":931,"text":357,"children":933},[934],{"id":514,"depth":935,"text":936},3,"Overriding with kindOf",{"id":630,"depth":931,"text":633},{"id":771,"depth":931,"text":774},{"id":825,"depth":931,"text":57},{"path":61,"title":64,"description":941},"Build a corpus in TypeScript with defineCorpus for skip, wholeLabel, and merging corpora, then pass it to the tool that needs it.",{"path":943,"title":944,"description":945},"\u002Fguide\u002Fignored-text","What glosslint doesn't check","Code spans, AST positions, and Markdown syntax that glosslint ignores by default.",1795952941580,"f20d75f8-66fe-45da-ad80-3ee49bbc9209"]