[{"data":1,"prerenderedAt":772,"buildId":773},["ShallowReactive",2],{"docs:\u002Fguide\u002Fpresets":3},{"page":4,"section":16,"document":17,"credits":10,"prev":767,"next":770},{"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},"presets","\u002Fguide\u002Fpresets","guide\u002Fpresets.md","Built-in presets","Use the tech and inclusive presets in glosslint to check 477 technology names and 37 inclusive terms, then override or turn off entries.",null,[],"i-lucide-layers","article",true,8,"guide",{"nodes":18,"toc":760},[19,32,40,79,101,134,140,161,183,186,192,203,470,481,487,497,541,557,627,635,641,647,678],[20,21,22,23,27,28,31],"p",{},"glosslint ships two built-in corpora that you can merge into your project before adding your own product terms. Use ",[24,25,26],"code",{},"glosslint\u002Fpresets\u002Ftech"," to enforce standard casing on product and technology names, and ",[24,29,30],{},"glosslint\u002Fpresets\u002Finclusive"," to flag non-inclusive wording with reasons and replacements.",[33,34,39],"h2",{"id":35,"anchor":36},"tech-preset",{"label":37,"icon":38},"Section titled \"Tech preset\"","#","Tech preset",[20,41,42,44,45,48,49,48,52,55,56,59,60,63,64,67,68,55,71,74,75,78],{},[24,43,26],{}," contains 477 product and technology names, such as ",[24,46,47],{},"GitHub",", ",[24,50,51],{},"iOS",[24,53,54],{},"Wi-Fi"," and ",[24,57,58],{},"Apple Pay",". Every entry is an ",[24,61,62],{},"exact"," term with ",[24,65,66],{},"skip: [\"lower\", \"upper\"]",". Words written all lowercase or all uppercase pass, so ",[24,69,70],{},"github",[24,72,73],{},"GITHUB"," pass while ",[24,76,77],{},"Github"," is reported.",[20,80,81,88,89,93,94,100],{},[82,83,85],"a",{"href":84},"https:\u002F\u002Fgithub.com\u002Fonmax\u002Fglosslint\u002Fblob\u002Fmain\u002Fscripts\u002Ftech.ts",[24,86,87],{},"scripts\u002Ftech.ts"," generates the preset from the dictionaries of ",[82,90,92],{"href":91},"https:\u002F\u002Fgithub.com\u002Fantfu\u002Fcase-police","case-police"," 2.2.1 by Anthony Fu, under the MIT License. The third-party license notice lives in ",[82,95,97],{"href":96},"https:\u002F\u002Fgithub.com\u002Fonmax\u002Fglosslint\u002Fblob\u002Fmain\u002FNOTICE",[24,98,99],{},"NOTICE",".",[20,102,103,104,48,107,48,110,48,113,48,116,48,119,55,122,125,126,129,130,100],{},"case-police lists 488 entries across five dictionaries, which collapse into 477 distinct keys. Seven joined spellings share a key with a spaced form in the preset: ",[24,105,106],{},"AntDesign",[24,108,109],{},"AntDesignVue",[24,111,112],{},"CompositionAPI",[24,114,115],{},"GraphRAG",[24,117,118],{},"NaiveUI",[24,120,121],{},"TailwindCSS",[24,123,124],{},"WindiCSS",". The preset keeps the spaced form as the term and puts those 7 joined spellings in its ",[24,127,128],{},"allow"," list, so both forms pass. For a full comparison with case-police, see ",[82,131,133],{"href":132},"\u002Fguide\u002Fcase-police","Coming from case-police",[33,135,139],{"id":136,"anchor":137},"inclusive-preset",{"label":138,"icon":38},"Section titled \"Inclusive preset\"","Inclusive preset",[20,141,142,144,145,148,149,152,153,156,157,160],{},[24,143,30],{}," contains 37 terms for inclusive wording, such as ",[24,146,147],{},"allowlist"," for \"whitelist\", ",[24,150,151],{},"staffed"," for \"manned\", and ",[24,154,155],{},"placeholder"," for \"dummy data\". Every term has a description, avoid words with reasons, and good and bad examples that ",[24,158,159],{},"glosslint test"," checks.",[20,162,163,164,167,168,48,171,48,174,48,177,55,180,100],{},"Words that also have a plain technical sense, such as ",[24,165,166],{},"master"," for a git branch, never appear on their own. The preset lists them only inside phrases that pin the meaning, such as ",[24,169,170],{},"\"master server\"",[24,172,173],{},"\"master node\"",[24,175,176],{},"\"master database\"",[24,178,179],{},"\"master process\"",[24,181,182],{},"\"dummy data\"",[20,184,185],{},"The inclusive preset shares no keys with the tech preset, so you can extend both together without collisions.",[33,187,191],{"id":188,"anchor":189},"extending-presets",{"label":190,"icon":38},"Section titled \"Extending presets\"","Extending presets",[20,193,194,195,198,199,202],{},"Import the presets you want and list them in ",[24,196,197],{},"extends"," inside ",[24,200,201],{},"glosslint.config.ts",":",[204,205,208],"pre",{"language":206,"filename":201,"class":207},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,209,211,234,235,234,249,234,263,234,265,234,281,234,289,234,294,234,299,234,309,234,319,234,329,234,352,234,369,234,386,234,391,234,402,234,417,234,438,234,445,234,463],{"class":210},"language-ts",[212,213,216,220,224,227,231],"span",{"class":214,"style":215},"line","display: inline",[212,217,219],{"style":218},"color:#CF222E;--shiki-dark:#FF7B72","import",[212,221,223],{"style":222},"color:#1F2328;--shiki-dark:#E6EDF3"," { defineCorpus } ",[212,225,226],{"style":218},"from",[212,228,230],{"style":229},"color:#0A3069;--shiki-dark:#A5D6FF"," \"glosslint\"",[212,232,233],{"style":222},";","\n",[212,236,237,239,242,244,247],{"class":214,"style":215},[212,238,219],{"style":218},[212,240,241],{"style":222}," inclusive ",[212,243,226],{"style":218},[212,245,246],{"style":229}," \"glosslint\u002Fpresets\u002Finclusive\"",[212,248,233],{"style":222},[212,250,251,253,256,258,261],{"class":214,"style":215},[212,252,219],{"style":218},[212,254,255],{"style":222}," tech ",[212,257,226],{"style":218},[212,259,260],{"style":229}," \"glosslint\u002Fpresets\u002Ftech\"",[212,262,233],{"style":222},[212,264],{"class":214,"style":215},[212,266,267,270,273,277],{"class":214,"style":215},[212,268,269],{"style":218},"export",[212,271,272],{"style":218}," default",[212,274,276],{"style":275},"color:#8250DF;--shiki-dark:#D2A8FF"," defineCorpus",[212,278,280],{"style":279},"color:#953800;--shiki-dark:#FFA657","({",[212,282,283,286],{"class":214,"style":215},[212,284,285],{"style":222},"  extends: [tech, inclusive]",[212,287,288],{"style":279},",",[212,290,291],{"class":214,"style":215},[212,292,293],{"style":222},"  terms: [",[212,295,296],{"class":214,"style":215},[212,297,298],{"style":222},"    {",[212,300,301,304,307],{"class":214,"style":215},[212,302,303],{"style":222},"      term: ",[212,305,306],{"style":229},"\"Dock\"",[212,308,288],{"style":222},[212,310,311,314,317],{"class":214,"style":215},[212,312,313],{"style":222},"      description: ",[212,315,316],{"style":229},"\"A powered stand where one bike is locked.\"",[212,318,288],{"style":222},[212,320,321,324,327],{"class":214,"style":215},[212,322,323],{"style":222},"      nuance: ",[212,325,326],{"style":229},"\"A station is a group of docks.\"",[212,328,288],{"style":222},[212,330,331,334,337,340,343,346,349],{"class":214,"style":215},[212,332,333],{"style":222},"      avoid: [{ word: ",[212,335,336],{"style":229},"\"rack\"",[212,338,339],{"style":222},", why: ",[212,341,342],{"style":229},"\"Racks are unpowered.\"",[212,344,345],{"style":222}," }, ",[212,347,348],{"style":229},"\"bay\"",[212,350,351],{"style":222},"],",[212,353,354,357,360,363,366],{"class":214,"style":215},[212,355,356],{"style":222},"      examples: { good: [",[212,358,359],{"style":229},"\"Return the bike to any dock\"",[212,361,362],{"style":222},"], bad: [",[212,364,365],{"style":229},"\"Return the bike to any rack\"",[212,367,368],{"style":222},"] },",[212,370,371,374,377,380,383],{"class":214,"style":215},[212,372,373],{"style":222},"      links: [{ title: ",[212,375,376],{"style":229},"\"Docks\"",[212,378,379],{"style":222},", url: ",[212,381,382],{"style":229},"\"https:\u002F\u002Fexample.com\u002Fdocs\u002Fdocks\"",[212,384,385],{"style":222}," }],",[212,387,388],{"class":214,"style":215},[212,389,390],{"style":222},"    },",[212,392,393,396,399],{"class":214,"style":215},[212,394,395],{"style":222},"    { term: ",[212,397,398],{"style":229},"\"Checkout\"",[212,400,401],{"style":222}," },",[212,403,404,406,409,412,415],{"class":214,"style":215},[212,405,395],{"style":222},[212,407,408],{"style":229},"\"eBike\"",[212,410,411],{"style":222},", case: ",[212,413,414],{"style":229},"\"exact\"",[212,416,401],{"style":222},[212,418,419,421,424,427,430,433,436],{"class":214,"style":215},[212,420,395],{"style":222},[212,422,423],{"style":229},"\"Day Pass\"",[212,425,426],{"style":222},", abbr: [",[212,428,429],{"style":229},"\"DP\"",[212,431,432],{"style":222},"], case: ",[212,434,435],{"style":229},"\"context\"",[212,437,401],{"style":222},[212,439,440,443],{"class":214,"style":215},[212,441,442],{"style":222},"  ]",[212,444,288],{"style":279},[212,446,447,450,453,455,458,461],{"class":214,"style":215},[212,448,449],{"style":222},"  allow: [",[212,451,452],{"style":229},"\"check out our\"",[212,454,48],{"style":222},[212,456,457],{"style":229},"\"roof rack\"",[212,459,460],{"style":222},"]",[212,462,288],{"style":279},[212,464,465,468],{"class":214,"style":215},[212,466,467],{"style":279},"})",[212,469,233],{"style":222},[20,471,472,473,477,478,480],{},"You can also combine presets with a ",[82,474,476],{"href":475},"\u002Fguide\u002Fglossary-table","Glossary table"," in the same ",[24,479,197],{}," array.",[33,482,486],{"id":483,"anchor":484},"replacing-a-preset-term",{"label":485,"icon":38},"Section titled \"Replacing a preset term\"","Replacing a preset term",[20,488,489,490,55,493,496],{},"glosslint merges terms by key. A key is the term's words joined and lowercased, letters and digits only. ",[24,491,492],{},"\"Re-charge point\"",[24,494,495],{},"\"recharge point\""," share a key.",[498,499,500,517,530,533],"ol",{},[501,502,503,504,506,507,55,510,513,514,516],"li",{},"glosslint reads ",[24,505,197],{}," from left to right. A later corpus replaces an earlier term with the same key. If a glossary table sits after ",[24,508,509],{},"tech",[24,511,512],{},"inclusive"," in ",[24,515,197],{},", a table row replaces any preset term with the same words.",[501,518,519,520,523,524,526,527,100],{},"Your corpus's own ",[24,521,522],{},"terms"," replace every term from ",[24,525,197],{}," with the same key. Listing two of your own terms with the same key throws ",[24,528,529],{},"GLOSSLINT_C005",[501,531,532],{},"A term is replaced whole. Fields are not merged.",[501,534,535,537,538,540],{},[24,536,128],{}," lists add up, starting with each ",[24,539,197],{}," entry and ending with your own.",[20,542,543,544,546,547,550,551,553,554,556],{},"Because replacement is whole, include every field you want on your override. For example, replacing ",[24,545,47],{}," without ",[24,548,549],{},"skip"," turns on checks for lowercase ",[24,552,70],{}," and uppercase ",[24,555,73],{}," too:",[204,558,559],{"language":206,"filename":201,"class":207},[24,560,561,234,573,234,585,234,587,234,597,234,604,234,621],{"class":210},[212,562,563,565,567,569,571],{"class":214,"style":215},[212,564,219],{"style":218},[212,566,223],{"style":222},[212,568,226],{"style":218},[212,570,230],{"style":229},[212,572,233],{"style":222},[212,574,575,577,579,581,583],{"class":214,"style":215},[212,576,219],{"style":218},[212,578,255],{"style":222},[212,580,226],{"style":218},[212,582,260],{"style":229},[212,584,233],{"style":222},[212,586],{"class":214,"style":215},[212,588,589,591,593,595],{"class":214,"style":215},[212,590,269],{"style":218},[212,592,272],{"style":218},[212,594,276],{"style":275},[212,596,280],{"style":279},[212,598,599,602],{"class":214,"style":215},[212,600,601],{"style":222},"  extends: [tech]",[212,603,288],{"style":279},[212,605,606,609,612,614,616,619],{"class":214,"style":215},[212,607,608],{"style":222},"  terms: [{ term: ",[212,610,611],{"style":229},"\"GitHub\"",[212,613,411],{"style":222},[212,615,414],{"style":229},[212,617,618],{"style":222}," }]",[212,620,288],{"style":279},[212,622,623,625],{"class":214,"style":215},[212,624,467],{"style":279},[212,626,233],{"style":222},[20,628,629,630,634],{},"See ",[82,631,633],{"href":632},"\u002Fguide\u002Fcorpus","The corpus"," for every corpus field and merge detail.",[33,636,640],{"id":637,"anchor":638},"switching-a-preset-term-off",{"label":639,"icon":38},"Section titled \"Switching a preset term off\"","Switching a preset term off",[20,642,643,644,646],{},"To turn off a preset term without replacing it, add its spellings to ",[24,645,128],{},". glosslint drops any finding that sits inside an allowed phrase.",[20,648,649,650,652,653,656,657,660,661,663,664,667,668,55,671,674,675,677],{},"Entries in ",[24,651,128],{}," match in any case, match across spaces, hyphens and underscores, and match plurals ending in ",[24,654,655],{},"s"," or ",[24,658,659],{},"es",". To stop flagging an avoid word from the inclusive preset, add it to ",[24,662,128],{},", such as ",[24,665,666],{},"\"whitelist\"",". To turn off a multi-word tech term, allow both the spaced form and the joined form, such as ",[24,669,670],{},"\"Apple Pay\"",[24,672,673],{},"\"ApplePay\"",", because spaces in ",[24,676,128],{}," match separators rather than joined words:",[204,679,680],{"language":206,"filename":201,"class":207},[24,681,682,234,694,234,706,234,718,234,720,234,730,234,736,234,754],{"class":210},[212,683,684,686,688,690,692],{"class":214,"style":215},[212,685,219],{"style":218},[212,687,223],{"style":222},[212,689,226],{"style":218},[212,691,230],{"style":229},[212,693,233],{"style":222},[212,695,696,698,700,702,704],{"class":214,"style":215},[212,697,219],{"style":218},[212,699,241],{"style":222},[212,701,226],{"style":218},[212,703,246],{"style":229},[212,705,233],{"style":222},[212,707,708,710,712,714,716],{"class":214,"style":215},[212,709,219],{"style":218},[212,711,255],{"style":222},[212,713,226],{"style":218},[212,715,260],{"style":229},[212,717,233],{"style":222},[212,719],{"class":214,"style":215},[212,721,722,724,726,728],{"class":214,"style":215},[212,723,269],{"style":218},[212,725,272],{"style":218},[212,727,276],{"style":275},[212,729,280],{"style":279},[212,731,732,734],{"class":214,"style":215},[212,733,285],{"style":222},[212,735,288],{"style":279},[212,737,738,740,742,744,746,748,750,752],{"class":214,"style":215},[212,739,449],{"style":222},[212,741,670],{"style":229},[212,743,48],{"style":222},[212,745,673],{"style":229},[212,747,48],{"style":222},[212,749,666],{"style":229},[212,751,460],{"style":222},[212,753,288],{"style":279},[212,755,756,758],{"class":214,"style":215},[212,757,467],{"style":279},[212,759,233],{"style":222},[761,763,764,765,766],{"id":35,"depth":762,"text":39},2,{"id":136,"depth":762,"text":139},{"id":188,"depth":762,"text":191},{"id":483,"depth":762,"text":486},{"id":637,"depth":762,"text":640},{"path":475,"title":768,"description":769},"Glossary tables","Load a Markdown glossary table straight into your glosslint corpus with fromGlossaryTable, including avoid words, abbreviations, notes and links.",{"path":132,"title":133,"description":771},"How glosslint's tech preset matches case-police 2.2.1 across 488 entries, where the 7 joined spellings differ, and how to migrate.",1795627930335,"94d466e2-147b-430f-b5f0-25c6a986e462"]