[{"data":1,"prerenderedAt":639,"buildId":640},["ShallowReactive",2],{"docs:\u002Fguide\u002Fglossary-table":3},{"page":4,"section":16,"document":17,"credits":10,"prev":631,"next":635},{"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},"glossary-table","\u002Fguide\u002Fglossary-table","guide\u002Fglossary-table.md","Glossary tables","Load a Markdown glossary table straight into your glosslint corpus with fromGlossaryTable, including avoid words, abbreviations, notes and links.",null,[],"i-lucide-table","article",true,7,"guide",{"nodes":18,"toc":624},[19,28,36,59,155,174,180,190,245,251,254,346,373,379,382,482,485,570,576,588,603],[20,21,22,23,27],"p",{},"If your team already keeps a glossary page in Markdown, you do not have to copy every entry into TypeScript. ",[24,25,26],"code",{},"fromGlossaryTable"," reads a Markdown table and turns each row into a term in your corpus.",[29,30,35],"h2",{"id":31,"anchor":32},"loading-a-table",{"label":33,"icon":34},"Section titled \"Loading a table\"","#","Loading a table",[20,37,38,39,42,43,46,47,50,51,54,55,58],{},"Call ",[24,40,41],{},"fromGlossaryTable(path, columns?)"," inside ",[24,44,45],{},"extends"," in ",[24,48,49],{},"glosslint.config.ts",". Pass a ",[24,52,53],{},"URL"," built from ",[24,56,57],{},"import.meta.url"," to resolve the path relative to the config file. A plain string resolves from the current working folder instead.",[60,61,64],"pre",{"language":62,"filename":49,"class":63},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,65,67,90,91,90,93,90,109,90,148],{"class":66},"language-ts",[68,69,72,76,80,83,87],"span",{"class":70,"style":71},"line","display: inline",[68,73,75],{"style":74},"color:#CF222E;--shiki-dark:#FF7B72","import",[68,77,79],{"style":78},"color:#1F2328;--shiki-dark:#E6EDF3"," { defineCorpus, fromGlossaryTable } ",[68,81,82],{"style":74},"from",[68,84,86],{"style":85},"color:#0A3069;--shiki-dark:#A5D6FF"," \"glosslint\"",[68,88,89],{"style":78},";","\n",[68,92],{"class":70,"style":71},[68,94,95,98,101,105],{"class":70,"style":71},[68,96,97],{"style":74},"export",[68,99,100],{"style":74}," default",[68,102,104],{"style":103},"color:#8250DF;--shiki-dark:#D2A8FF"," defineCorpus",[68,106,108],{"style":107},"color:#953800;--shiki-dark:#FFA657","({",[68,110,111,114,116,119,122,125,127,130,133,135,138,142,145],{"class":70,"style":71},[68,112,113],{"style":78},"  extends: [",[68,115,26],{"style":103},[68,117,118],{"style":78},"(",[68,120,121],{"style":74},"new",[68,123,124],{"style":103}," URL",[68,126,118],{"style":78},[68,128,129],{"style":85},"\".\u002Fdocs\u002Fglossary.md\"",[68,131,132],{"style":78},", ",[68,134,75],{"style":74},[68,136,137],{"style":78},".",[68,139,141],{"style":140},"color:#0550AE;--shiki-dark:#79C0FF","meta",[68,143,144],{"style":78},".url))]",[68,146,147],{"style":107},",",[68,149,150,153],{"class":70,"style":71},[68,151,152],{"style":107},"})",[68,154,89],{"style":78},[20,156,157,158,160,161,166,167,169,170,173],{},"Because ",[24,159,26],{}," returns a corpus, it follows the merge rules described in ",[162,163,165],"a",{"href":164},"\u002Fguide\u002Fcorpus","The corpus",". Place it after a preset in ",[24,168,45],{}," so table entries override preset terms with the same key. Any term you also list under ",[24,171,172],{},"terms"," replaces the table row whole.",[29,175,179],{"id":176,"anchor":177},"example-table",{"label":178,"icon":34},"Section titled \"Example table\"","Example table",[20,181,182,183,189],{},"This is ",[162,184,186],{"href":185},"https:\u002F\u002Fgithub.com\u002Fonmax\u002Fglosslint\u002Fblob\u002Fmain\u002Fexamples\u002Fbasic\u002Fdocs\u002Fglossary.md",[24,187,188],{},"examples\u002Fbasic\u002Fdocs\u002Fglossary.md",":",[60,191,194],{"language":192,"filename":193,"class":63},"md","docs\u002Fglossary.md",[24,195,197,90,202,90,207,90,225,90,230,90,235,90,240],{"class":196},"language-md",[68,198,199],{"class":70,"style":71},[68,200,201],{"style":78},"| Use            | Avoid                                  | Meaning                                        | Notes                                      | Links                                         |",[68,203,204],{"class":70,"style":71},[68,205,206],{"style":78},"| -------------- | -------------------------------------- | ---------------------------------------------- | ------------------------------------------ | --------------------------------------------- |",[68,208,209,212,215,218,222],{"class":70,"style":71},[68,210,211],{"style":78},"| Station        | hub (riders confuse it with the depot) | A group of docks on one street corner.         |                                            | [",[68,213,214],{"style":85},"Stations",[68,216,217],{"style":78},"](",[68,219,221],{"style":220},"color:#1F2328;--shiki-light-text-decoration:underline;--shiki-dark:#E6EDF3;--shiki-dark-text-decoration:underline","https:\u002F\u002Fexample.com\u002Fdocs\u002Fstations",[68,223,224],{"style":78},") |",[68,226,227],{"class":70,"style":71},[68,228,229],{"style":78},"| Rider          | customer                               | A person with an account who can unlock bikes. | Staff who move bikes are crew, not riders. |                                               |",[68,231,232],{"class":70,"style":71},[68,233,234],{"style":78},"| Ride           | trip                                   | The time from unlocking a bike to docking it.  |                                            |                                               |",[68,236,237],{"class":70,"style":71},[68,238,239],{"style":78},"| Week Pass (WP) | weekly ticket                          | Unlimited 30-minute rides for seven days.      |                                            | https:\u002F\u002Fexample.com\u002Fdocs\u002Fpasses               |",[68,241,242],{"class":70,"style":71},[68,243,244],{"style":78},"| kiosk          | terminal                               | The screen at a station where you buy passes.  | Always lowercase.                          |                                               |",[29,246,250],{"id":247,"anchor":248},"how-it-is-read",{"label":249,"icon":34},"Section titled \"How it is read\"","How it is read",[20,252,253],{},"The reader maps columns by header name and parses each cell with a small set of rules:",[255,256,257,269,279,298,301,311,326,336],"ul",{},[258,259,260,261,264,265,268],"li",{},"The reader takes the first table whose header has a ",[24,262,263],{},"Use"," or ",[24,266,267],{},"Term"," column, in any case. It skips tables inside code fences, and stops at the first blank line.",[258,270,271,274,275,278],{},[24,272,273],{},"Avoid"," becomes the avoid list. Commas separate words, and ",[24,276,277],{},"word (reason)"," gives the reason.",[258,280,281,264,284,287,288,291,292,287,295,137],{},[24,282,283],{},"Description",[24,285,286],{},"Meaning"," becomes ",[24,289,290],{},"description",", and ",[24,293,294],{},"Notes",[24,296,297],{},"nuance",[258,299,300],{},"Top-level commas in the term cell make several terms. The row's avoid words go to the first one.",[258,302,303,306,307,310],{},[24,304,305],{},"Week Pass (WP)"," gives the term and its abbreviation. Parentheses holding more than single words, such as ",[24,308,309],{},"Rider (anyone with an account)",", go to the nuance instead.",[258,312,313,314,317,318,321,322,325],{},"A name with an inner capital, such as ",[24,315,316],{},"eBike",", or all capitals, such as ",[24,319,320],{},"SOS",", is ",[24,323,324],{},"exact",". So is a term whose notes say \"lowercase\".",[258,327,328,329,332,333,137],{},"Markdown links in any cell, and bare URLs in a ",[24,330,331],{},"Links"," column, become ",[24,334,335],{},"links",[258,337,338,339,264,342,345],{},"The reader drops backticks, and bold or italic markers around a whole cell. A cell holding only ",[24,340,341],{},"-",[24,343,344],{},"—"," counts as empty.",[20,347,348,349,351,352,355,356,359,360,364,365,369,370,372],{},"If the file has no table with a matching term column, ",[24,350,26],{}," throws ",[24,353,354],{},"GLOSSLINT_NO_GLOSSARY_TABLE",". If the table lists two rows with the same term key, it throws ",[24,357,358],{},"GLOSSLINT_DUPLICATE_TERM",". See ",[162,361,363],{"href":362},"\u002Freference\u002Fconfig-errors","Config errors"," for every load-time code, and ",[162,366,368],{"href":367},"\u002Fguide\u002Fcasing","Casing"," for how ",[24,371,324],{}," terms behave.",[29,374,378],{"id":375,"anchor":376},"custom-column-names",{"label":377,"icon":34},"Section titled \"Custom column names\"","Custom column names",[20,380,381],{},"Pass a second argument when your table uses other header names. Header matching is case-insensitive.",[383,384,385,401],"table",{},[386,387,388],"thead",{},[389,390,391,395,398],"tr",{},[392,393,394],"th",{},"Option",[392,396,397],{},"Default header",[392,399,400],{},"Term field",[402,403,404,422,437,453,468],"tbody",{},[389,405,406,412,418],{},[407,408,409],"td",{},[24,410,411],{},"term",[407,413,414,264,416],{},[24,415,263],{},[24,417,267],{},[407,419,420],{},[24,421,411],{},[389,423,424,429,433],{},[407,425,426],{},[24,427,428],{},"avoid",[407,430,431],{},[24,432,273],{},[407,434,435],{},[24,436,428],{},[389,438,439,443,449],{},[407,440,441],{},[24,442,290],{},[407,444,445,264,447],{},[24,446,283],{},[24,448,286],{},[407,450,451],{},[24,452,290],{},[389,454,455,460,464],{},[407,456,457],{},[24,458,459],{},"notes",[407,461,462],{},[24,463,294],{},[407,465,466],{},[24,467,297],{},[389,469,470,474,478],{},[407,471,472],{},[24,473,335],{},[407,475,476],{},[24,477,331],{},[407,479,480],{},[24,481,335],{},[20,483,484],{},"Other header names go in the second argument:",[60,486,487],{"language":62,"filename":49,"class":63},[24,488,489,90,515,90,525,90,535,90,545,90,555,90,565],{"class":66},[68,490,491,493,495,497,499,501,504,506,508,510,512],{"class":70,"style":71},[68,492,26],{"style":103},[68,494,118],{"style":78},[68,496,121],{"style":74},[68,498,124],{"style":103},[68,500,118],{"style":78},[68,502,503],{"style":85},"\".\u002Fglossary.md\"",[68,505,132],{"style":78},[68,507,75],{"style":74},[68,509,137],{"style":78},[68,511,141],{"style":140},[68,513,514],{"style":78},".url), {",[68,516,517,520,523],{"class":70,"style":71},[68,518,519],{"style":78},"  term: ",[68,521,522],{"style":85},"\"Word\"",[68,524,147],{"style":78},[68,526,527,530,533],{"class":70,"style":71},[68,528,529],{"style":78},"  avoid: ",[68,531,532],{"style":85},"\"Instead of\"",[68,534,147],{"style":78},[68,536,537,540,543],{"class":70,"style":71},[68,538,539],{"style":78},"  description: ",[68,541,542],{"style":85},"\"Definition\"",[68,544,147],{"style":78},[68,546,547,550,553],{"class":70,"style":71},[68,548,549],{"style":78},"  notes: ",[68,551,552],{"style":85},"\"Usage\"",[68,554,147],{"style":78},[68,556,557,560,563],{"class":70,"style":71},[68,558,559],{"style":78},"  links: ",[68,561,562],{"style":85},"\"See\"",[68,564,147],{"style":78},[68,566,567],{"class":70,"style":71},[68,568,569],{"style":78},"});",[29,571,575],{"id":572,"anchor":573},"keeping-the-glossary-out-of-checks",{"label":574,"icon":34},"Section titled \"Keeping the glossary out of checks\"","Keeping the glossary out of checks",[577,578,581],"github-callout",{"type":579,"title":580},"warning","Warning",[20,582,583,584,587],{},"A table full of avoid words reports itself, so keep the glossary page out of the paths that ",[24,585,586],{},"glosslint check"," reads.",[20,589,590,591,593,594,598,599,602],{},"When your glossary sits at ",[24,592,193],{},", point ",[162,595,597],{"href":596},"\u002Fintegrations\u002Fcli","the CLI"," at the docs subfolder you want checked instead of the whole ",[24,600,601],{},"docs"," directory:",[60,604,607],{"language":605,"frame":606,"class":63},"sh","terminal",[24,608,610],{"class":609},"language-sh",[68,611,612,615,618,621],{"class":70,"style":71},[68,613,614],{"style":107},"npx",[68,616,617],{"style":85}," glosslint",[68,619,620],{"style":85}," check",[68,622,623],{"style":85}," docs\u002Fguide",[625,627,628,629,630],{"id":31,"depth":626,"text":35},2,{"id":176,"depth":626,"text":179},{"id":247,"depth":626,"text":250},{"id":375,"depth":626,"text":378},{"id":572,"depth":626,"text":575},{"path":632,"title":633,"description":634},"\u002Fguide\u002Fignored-text","What glosslint skips","See what text glosslint blanks before matching, which code strings ESLint ignores, and which Markdown and MDX syntax the CLI skips.",{"path":636,"title":637,"description":638},"\u002Fguide\u002Fpresets","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.",1795627930173,"94d466e2-147b-430f-b5f0-25c6a986e462"]