[{"data":1,"prerenderedAt":2241,"buildId":2242},["ShallowReactive",2],{"docs:\u002Fguide\u002Fapi":3},{"page":4,"section":17,"document":18,"credits":10,"prev":2238,"next":10},{"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":15,"navigation":14,"order":16},"api","\u002Fguide\u002Fapi","guide\u002Fapi.md","JavaScript API","Reference for glosslint's JavaScript API: every entry point, including the Oxlint plugin and glossary readers, with functions and types.",null,[],"i-lucide-braces","article",true,"Reference",12,"guide",{"nodes":19,"toc":2207},[20,40,47,62,69,120,165,171,240,268,273,300,324,330,366,393,398,446,472,478,505,527,533,573,602,608,650,660,666,703,717,723,751,781,787,828,852,857,891,904,910,938,976,981,1106,1122,1127,1302,1308,1313,1330,1336,1367,1428,1434,1453,1484,1510,1516,1531,1537,1563,1598,1604,1637,1665,1671,1690,1716,1722,1751,1775,1781,1803],[21,22,23,24,29,30,34,35,39],"p",{},"glosslint ships six JavaScript package entry points plus a CLI binary. Use this reference when you load or lint a glossary file from code, call the matcher or formatters directly, or wire up ",[25,26,28],"a",{"href":27},"\u002Fintegrations\u002Feslint","ESLint",", ",[25,31,33],{"href":32},"\u002Fintegrations\u002Foxlint","Oxlint",", and ",[25,36,38],{"href":37},"\u002Fintegrations\u002Fx18n","x18n",".",[41,42,43],"h2",{"id":43,"anchor":44},"glosslint",{"label":45,"icon":46},"Section titled \"glosslint\"","#",[21,48,49,50,54,55,29,58,61],{},"The main entry point exports glossary file readers, ",[51,52,53],"code",{},"defineCorpus",", the matcher, string kind classification, finding formatters, corpus utilities, ",[51,56,57],{},"GlosslintConfigError",[51,59,60],{},"CONFIG_ERRORS",", and all core TypeScript types.",[63,64,68],"h3",{"id":65,"anchor":66},"fromglossary",{"label":67,"icon":46},"Section titled \"fromGlossary\"","fromGlossary",[70,71,74],"pre",{"language":72,"class":73,"wrap":14},"ts","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[51,75,77],{"class":76},"language-ts",[78,79,82,86,90,94,98,101,105,108,111,114,117],"span",{"class":80,"style":81},"line","display: inline",[78,83,85],{"style":84},"color:#CF222E;--shiki-dark:#FF7B72","function",[78,87,89],{"style":88},"color:#8250DF;--shiki-dark:#D2A8FF"," fromGlossary",[78,91,93],{"style":92},"color:#1F2328;--shiki-dark:#E6EDF3","(",[78,95,97],{"style":96},"color:#953800;--shiki-dark:#FFA657","path",[78,99,100],{"style":84},"?:",[78,102,104],{"style":103},"color:#0550AE;--shiki-dark:#79C0FF"," string",[78,106,107],{"style":84}," |",[78,109,110],{"style":96}," URL",[78,112,113],{"style":92},")",[78,115,116],{"style":84},":",[78,118,119],{"style":96}," Corpus",[21,121,122,123,126,127,130,131,134,135,138,139,141,142,145,146,149,150,153,154,149,157,160,161,39],{},"Reads a glossary Markdown file synchronously and returns a validated flat ",[51,124,125],{},"Corpus",". Defaults to ",[51,128,129],{},"\".agents\u002Fglossary.md\"","; a string resolves from ",[51,132,133],{},"process.cwd()",", and a ",[51,136,137],{},"URL"," resolves as a file URL. Throws ",[51,140,57],{}," with ",[51,143,144],{},"GLOSSLINT_C009"," when the file is missing, or with the first ",[51,147,148],{},"GLOSSLINT_G004"," to ",[51,151,152],{},"GLOSSLINT_G008"," problem when the file cannot be loaded. A file with only fixable problems (",[51,155,156],{},"G001",[51,158,159],{},"G003",") loads as its fixed form would. See ",[25,162,164],{"href":163},"\u002Fguide\u002Fglossary","The glossary file",[63,166,170],{"id":167,"anchor":168},"readglossary",{"label":169,"icon":46},"Section titled \"readGlossary\"","readGlossary",[70,172,173],{"language":72,"class":73,"wrap":14},[51,174,175,198,199,198,212,198,224,198,235],{"class":76},[78,176,177,179,182,184,187,189,191,193,195],{"class":80,"style":81},[78,178,85],{"style":84},[78,180,181],{"style":88}," readGlossary",[78,183,93],{"style":92},[78,185,186],{"style":96},"text",[78,188,116],{"style":84},[78,190,104],{"style":103},[78,192,113],{"style":92},[78,194,116],{"style":84},[78,196,197],{"style":92}," {","\n",[78,200,201,204,206,209],{"class":80,"style":81},[78,202,203],{"style":96},"  problems",[78,205,116],{"style":84},[78,207,208],{"style":96}," GlossaryProblem",[78,210,211],{"style":92},"[];",[78,213,214,217,219,221],{"class":80,"style":81},[78,215,216],{"style":96},"  corpus",[78,218,100],{"style":84},[78,220,119],{"style":96},[78,222,223],{"style":92},";",[78,225,226,229,231,233],{"class":80,"style":81},[78,227,228],{"style":96},"  fixed",[78,230,100],{"style":84},[78,232,104],{"style":103},[78,234,223],{"style":92},[78,236,237],{"class":80,"style":81},[78,238,239],{"style":92},"}",[21,241,242,243,246,247,250,251,254,255,149,258,261,262,265,266,39],{},"Parses glossary Markdown text without touching disk. Returns every ",[51,244,245],{},"GlossaryProblem"," sorted by line number (including ",[51,248,249],{},"GLOSSLINT_G009"," for failing examples). ",[51,252,253],{},"corpus"," is defined when no ",[51,256,257],{},"G004",[51,259,260],{},"G008"," problem exists; ",[51,263,264],{},"fixed"," holds the canonical Markdown text when the file can be rewritten without dropping text and differs from ",[51,267,186],{},[63,269,53],{"id":270,"anchor":271},"definecorpus",{"label":272,"icon":46},"Section titled \"defineCorpus\"",[70,274,275],{"language":72,"class":73,"wrap":14},[51,276,277],{"class":76},[78,278,279,281,284,286,289,291,294,296,298],{"class":80,"style":81},[78,280,85],{"style":84},[78,282,283],{"style":88}," defineCorpus",[78,285,93],{"style":92},[78,287,288],{"style":96},"input",[78,290,116],{"style":84},[78,292,293],{"style":96}," CorpusInput",[78,295,113],{"style":92},[78,297,116],{"style":84},[78,299,119],{"style":96},[21,301,302,303,305,306,309,310,313,314,316,317,319,320,323],{},"Validates every field in ",[51,304,288],{},", merges corpora listed in ",[51,307,308],{},"extends"," from left to right before applying ",[51,311,312],{},"input.terms",", and returns a frozen flat ",[51,315,125],{},". Throws ",[51,318,57],{}," on an invalid corpus or term. See ",[25,321,53],{"href":322},"\u002Fguide\u002Fcorpus"," for merge order and field details.",[63,325,329],{"id":326,"anchor":327},"creatematcher",{"label":328,"icon":46},"Section titled \"createMatcher\"","createMatcher",[70,331,332],{"language":72,"class":73,"wrap":14},[51,333,334],{"class":76},[78,335,336,338,341,343,345,347,349,351,354,356,359,361,363],{"class":80,"style":81},[78,337,85],{"style":84},[78,339,340],{"style":88}," createMatcher",[78,342,93],{"style":92},[78,344,253],{"style":96},[78,346,116],{"style":84},[78,348,119],{"style":96},[78,350,29],{"style":92},[78,352,353],{"style":96},"options",[78,355,100],{"style":84},[78,357,358],{"style":96}," MatcherOptions",[78,360,113],{"style":92},[78,362,116],{"style":84},[78,364,365],{"style":96}," Matcher",[21,367,368,369,371,372,375,376,378,379,382,383,386,387,389,390,39],{},"Compiles ",[51,370,253],{}," into a reusable ",[51,373,374],{},"Matcher"," with a readonly ",[51,377,253],{}," property and a ",[51,380,381],{},"check(text, kind?)"," method. Pass ",[51,384,385],{},"{ identifierAvoid: true }"," in ",[51,388,353],{}," to report avoid words when checking text as kind ",[51,391,392],{},"\"identifier\"",[63,394,395],{"id":395,"anchor":396},"check",{"label":397,"icon":46},"Section titled \"check\"",[70,399,400],{"language":72,"class":73,"wrap":14},[51,401,402],{"class":76},[78,403,404,406,409,411,414,416,418,420,422,424,426,428,431,433,436,438,440,443],{"class":80,"style":81},[78,405,85],{"style":84},[78,407,408],{"style":88}," check",[78,410,93],{"style":92},[78,412,413],{"style":96},"matcher",[78,415,116],{"style":84},[78,417,365],{"style":96},[78,419,29],{"style":92},[78,421,186],{"style":96},[78,423,116],{"style":84},[78,425,104],{"style":103},[78,427,29],{"style":92},[78,429,430],{"style":96},"kind",[78,432,100],{"style":84},[78,434,435],{"style":96}," TextKind",[78,437,113],{"style":92},[78,439,116],{"style":84},[78,441,442],{"style":96}," Finding",[78,444,445],{"style":92},"[]",[21,447,448,449,452,453,455,456,458,459,462,463,467,468,471],{},"Calls ",[51,450,451],{},"matcher.check(text, kind)"," and returns every finding in ",[51,454,186],{},", read as ",[51,457,430],{},", which defaults to ",[51,460,461],{},"\"unknown\"",". See ",[25,464,466],{"href":465},"\u002Fguide\u002Ffindings","Findings format"," for the returned ",[51,469,470],{},"Finding"," shape.",[63,473,477],{"id":474,"anchor":475},"kindof",{"label":476,"icon":46},"Section titled \"kindOf\"","kindOf",[70,479,480],{"language":72,"class":73,"wrap":14},[51,481,482],{"class":76},[78,483,484,486,489,491,494,496,499,501,503],{"class":80,"style":81},[78,485,85],{"style":84},[78,487,488],{"style":88}," kindOf",[78,490,93],{"style":92},[78,492,493],{"style":96},"site",[78,495,116],{"style":84},[78,497,498],{"style":96}," KindSite",[78,500,113],{"style":92},[78,502,116],{"style":84},[78,504,435],{"style":96},[21,506,507,508,511,512,515,516,519,520,523,524,526],{},"Returns glosslint's default ",[51,509,510],{},"TextKind"," for a string from its key, attribute, or element ",[51,513,514],{},"name",", its closing punctuation, and, when ",[51,517,518],{},"shown"," is ",[51,521,522],{},"true",", its length and capitalisation. Adapters use this function unless their custom ",[51,525,477],{}," option returns a kind first.",[63,528,532],{"id":529,"anchor":530},"formatfinding",{"label":531,"icon":46},"Section titled \"formatFinding\"","formatFinding",[70,534,535],{"language":72,"class":73,"wrap":14},[51,536,537],{"class":76},[78,538,539,541,544,546,549,551,553,555,558,560,562,564,567,569,571],{"class":80,"style":81},[78,540,85],{"style":84},[78,542,543],{"style":88}," formatFinding",[78,545,93],{"style":92},[78,547,548],{"style":96},"finding",[78,550,116],{"style":84},[78,552,442],{"style":96},[78,554,107],{"style":84},[78,556,557],{"style":96}," CliFinding",[78,559,29],{"style":92},[78,561,353],{"style":96},[78,563,100],{"style":84},[78,565,566],{"style":96}," FormatOptions",[78,568,113],{"style":92},[78,570,116],{"style":84},[78,572,104],{"style":103},[21,574,575,576,578,579,582,583,29,586,29,589,34,592,595,596,149,599,601],{},"Formats one ",[51,577,470],{}," or ",[51,580,581],{},"CliFinding"," in the tree format, starting with the headline and followed by ",[51,584,585],{},"why",[51,587,588],{},"fix",[51,590,591],{},"term",[51,593,594],{},"see"," branches when present. Set ",[51,597,598],{},"options.color",[51,600,522],{}," for ANSI colors; color is off by default.",[63,603,607],{"id":604,"anchor":605},"formatfindings",{"label":606,"icon":46},"Section titled \"formatFindings\"","formatFindings",[70,609,610],{"language":72,"class":73,"wrap":14},[51,611,612],{"class":76},[78,613,614,616,619,621,624,626,629,631,633,635,638,640,642,644,646,648],{"class":80,"style":81},[78,615,85],{"style":84},[78,617,618],{"style":88}," formatFindings",[78,620,93],{"style":92},[78,622,623],{"style":96},"findings",[78,625,116],{"style":84},[78,627,628],{"style":92}," (",[78,630,470],{"style":96},[78,632,107],{"style":84},[78,634,557],{"style":96},[78,636,637],{"style":92},")[], ",[78,639,353],{"style":96},[78,641,100],{"style":84},[78,643,566],{"style":96},[78,645,113],{"style":92},[78,647,116],{"style":84},[78,649,104],{"style":103},[21,651,652,653,656,657,659],{},"Formats every finding in the tree format separated by blank lines and appends a summary line. Pass ",[51,654,655],{},"options.files"," to include the file count in the summary, and ",[51,658,598],{}," for ANSI colors.",[63,661,665],{"id":662,"anchor":663},"tojson",{"label":664,"icon":46},"Section titled \"toJson\"","toJson",[70,667,668],{"language":72,"class":73,"wrap":14},[51,669,670],{"class":76},[78,671,672,674,677,679,681,683,685,688,691,693,696,698,700],{"class":80,"style":81},[78,673,85],{"style":84},[78,675,676],{"style":88}," toJson",[78,678,93],{"style":92},[78,680,623],{"style":96},[78,682,116],{"style":84},[78,684,557],{"style":96},[78,686,687],{"style":92},"[], ",[78,689,690],{"style":96},"files",[78,692,116],{"style":84},[78,694,695],{"style":103}," number",[78,697,113],{"style":92},[78,699,116],{"style":84},[78,701,702],{"style":96}," CliReport",[21,704,705,706,709,710,713,714,39],{},"Builds the ",[51,707,708],{},"{ findings, summary }"," object printed by ",[51,711,712],{},"glosslint check --format json",". Counts total findings, total files, and findings per ",[51,715,716],{},"FindingCode",[63,718,722],{"id":719,"anchor":720},"testcorpus",{"label":721,"icon":46},"Section titled \"testCorpus\"","testCorpus",[70,724,725],{"language":72,"class":73,"wrap":14},[51,726,727],{"class":76},[78,728,729,731,734,736,738,740,742,744,746,749],{"class":80,"style":81},[78,730,85],{"style":84},[78,732,733],{"style":88}," testCorpus",[78,735,93],{"style":92},[78,737,253],{"style":96},[78,739,116],{"style":84},[78,741,119],{"style":96},[78,743,113],{"style":92},[78,745,116],{"style":84},[78,747,748],{"style":96}," CorpusTestFailure",[78,750,445],{"style":92},[21,752,753,754,757,758,761,762,757,765,768,769,772,773,776,777,780],{},"Checks every term's ",[51,755,756],{},"examples.good"," and ",[51,759,760],{},"examples.bad"," strings using ",[51,763,764],{},"createMatcher(corpus)",[51,766,767],{},"kindOf({ text, shown: true })",". Returns a ",[51,770,771],{},"CorpusTestFailure"," for each ",[51,774,775],{},"good"," example flagged for its term and each ",[51,778,779],{},"bad"," example not flagged for its term.",[63,782,786],{"id":783,"anchor":784},"printcorpus",{"label":785,"icon":46},"Section titled \"printCorpus\"","printCorpus",[70,788,789],{"language":72,"class":73,"wrap":14},[51,790,791],{"class":76},[78,792,793,795,798,800,802,804,806,808,811,813,817,819,822,824,826],{"class":80,"style":81},[78,794,85],{"style":84},[78,796,797],{"style":88}," printCorpus",[78,799,93],{"style":92},[78,801,253],{"style":96},[78,803,116],{"style":84},[78,805,119],{"style":96},[78,807,29],{"style":92},[78,809,810],{"style":96},"format",[78,812,116],{"style":84},[78,814,816],{"style":815},"color:#0A3069;--shiki-dark:#A5D6FF"," \"md\"",[78,818,107],{"style":84},[78,820,821],{"style":815}," \"json\"",[78,823,113],{"style":92},[78,825,116],{"style":84},[78,827,104],{"style":103},[21,829,830,831,833,834,837,838,628,841,844,845,848,849,39],{},"Formats ",[51,832,253],{}," as a Markdown glossary (",[51,835,836],{},"\"md\"",") or pretty-printed JSON containing ",[51,839,840],{},"{ terms, allow }",[51,842,843],{},"\"json\"","). In Markdown, terms with more than a spelling get their own ",[51,846,847],{},"##"," section, and bare spelling-only terms appear together under ",[51,850,851],{},"## Spelling",[63,853,854],{"id":854,"anchor":855},"explain",{"label":856,"icon":46},"Section titled \"explain\"",[70,858,859],{"language":72,"class":73,"wrap":14},[51,860,861],{"class":76},[78,862,863,865,868,870,872,874,876,878,881,883,885,887,889],{"class":80,"style":81},[78,864,85],{"style":84},[78,866,867],{"style":88}," explain",[78,869,93],{"style":92},[78,871,253],{"style":96},[78,873,116],{"style":84},[78,875,119],{"style":96},[78,877,29],{"style":92},[78,879,880],{"style":96},"query",[78,882,116],{"style":84},[78,884,104],{"style":103},[78,886,113],{"style":92},[78,888,116],{"style":84},[78,890,104],{"style":103},[21,892,893,894,896,897,899,900,903],{},"Looks up what ",[51,895,253],{}," says about a word or phrase, matching terms, abbreviations, locale forms, avoid words, matcher findings, or mentions, and formats each match with its description, nuance, ",[51,898,585],{},", avoid list, examples, links, and related terms. Returns ",[51,901,902],{},"No term in the corpus matches \"\u003Cquery>\"."," when nothing matches.",[63,905,909],{"id":906,"anchor":907},"tox18nglossary",{"label":908,"icon":46},"Section titled \"toX18nGlossary\"","toX18nGlossary",[70,911,912],{"language":72,"class":73,"wrap":14},[51,913,914],{"class":76},[78,915,916,918,921,923,925,927,929,931,933,936],{"class":80,"style":81},[78,917,85],{"style":84},[78,919,920],{"style":88}," toX18nGlossary",[78,922,93],{"style":92},[78,924,253],{"style":96},[78,926,116],{"style":84},[78,928,119],{"style":96},[78,930,113],{"style":92},[78,932,116],{"style":84},[78,934,935],{"style":96}," X18nGlossaryEntry",[78,937,445],{"style":92},[21,939,940,941,943,944,141,947,29,949,29,952,955,956,959,960,757,963,34,966,969,970,973,974,39],{},"Converts each term in ",[51,942,253],{}," into an ",[51,945,946],{},"X18nGlossaryEntry",[51,948,591],{},[51,950,951],{},"translations",[51,953,954],{},"forms",", a ",[51,957,958],{},"note"," combining ",[51,961,962],{},"description",[51,964,965],{},"nuance",[51,967,968],{},"doNotTranslate: true"," for ",[51,971,972],{},"exact"," terms without ",[51,975,951],{},[63,977,57],{"id":978,"anchor":979},"glosslintconfigerror",{"label":980,"icon":46},"Section titled \"GlosslintConfigError\"",[70,982,983],{"language":72,"class":73,"wrap":14},[51,984,985,198,1001,198,1015,198,1028,198,1041,198,1054,198,1102],{"class":76},[78,986,987,990,993,996,999],{"class":80,"style":81},[78,988,989],{"style":84},"class",[78,991,992],{"style":96}," GlosslintConfigError",[78,994,995],{"style":84}," extends",[78,997,998],{"style":103}," Error",[78,1000,197],{"style":92},[78,1002,1003,1006,1009,1011,1013],{"class":80,"style":81},[78,1004,1005],{"style":84},"  readonly",[78,1007,1008],{"style":96}," code",[78,1010,116],{"style":84},[78,1012,104],{"style":103},[78,1014,223],{"style":92},[78,1016,1017,1019,1022,1024,1026],{"class":80,"style":81},[78,1018,1005],{"style":84},[78,1020,1021],{"style":96}," why",[78,1023,116],{"style":84},[78,1025,104],{"style":103},[78,1027,223],{"style":92},[78,1029,1030,1032,1035,1037,1039],{"class":80,"style":81},[78,1031,1005],{"style":84},[78,1033,1034],{"style":96}," fix",[78,1036,116],{"style":84},[78,1038,104],{"style":103},[78,1040,223],{"style":92},[78,1042,1043,1045,1048,1050,1052],{"class":80,"style":81},[78,1044,1005],{"style":84},[78,1046,1047],{"style":96}," term",[78,1049,100],{"style":84},[78,1051,104],{"style":103},[78,1053,223],{"style":92},[78,1055,1056,1059,1061,1063,1065,1068,1070,1072,1074,1077,1079,1081,1083,1085,1087,1089,1091,1093,1095,1097,1099],{"class":80,"style":81},[78,1057,1058],{"style":84},"  constructor",[78,1060,93],{"style":92},[78,1062,353],{"style":96},[78,1064,116],{"style":84},[78,1066,1067],{"style":92}," { ",[78,1069,51],{"style":96},[78,1071,116],{"style":84},[78,1073,104],{"style":103},[78,1075,1076],{"style":92},"; ",[78,1078,585],{"style":96},[78,1080,116],{"style":84},[78,1082,104],{"style":103},[78,1084,1076],{"style":92},[78,1086,588],{"style":96},[78,1088,116],{"style":84},[78,1090,104],{"style":103},[78,1092,1076],{"style":92},[78,1094,591],{"style":96},[78,1096,100],{"style":84},[78,1098,104],{"style":103},[78,1100,1101],{"style":92}," });",[78,1103,1104],{"class":80,"style":81},[78,1105,239],{"style":92},[21,1107,1108,1109,29,1111,34,1113,1116,1117,1121],{},"Error class thrown by ",[51,1110,53],{},[51,1112,68],{},[51,1114,1115],{},"glosslint\u002Feslint"," on an invalid corpus, missing or broken glossary file, or conflicting ESLint options. See ",[25,1118,1120],{"href":1119},"\u002Fguide\u002Fconfig-errors","Config and glossary errors"," for every error code and fix.",[63,1123,60],{"id":1124,"anchor":1125},"config_errors",{"label":1126,"icon":46},"Section titled \"CONFIG_ERRORS\"",[70,1128,1129],{"language":72,"class":73,"wrap":14},[51,1130,1131,198,1143,198,1157,198,1171,198,1185,198,1199,198,1213,198,1227,198,1241,198,1255,198,1269,198,1283,198,1297],{"class":76},[78,1132,1133,1136,1139,1141],{"class":80,"style":81},[78,1134,1135],{"style":84},"const",[78,1137,1138],{"style":103}," CONFIG_ERRORS",[78,1140,116],{"style":84},[78,1142,197],{"style":92},[78,1144,1145,1147,1150,1152,1155],{"class":80,"style":81},[78,1146,1005],{"style":84},[78,1148,1149],{"style":96}," unknownField",[78,1151,116],{"style":84},[78,1153,1154],{"style":815}," \"GLOSSLINT_C001\"",[78,1156,223],{"style":92},[78,1158,1159,1161,1164,1166,1169],{"class":80,"style":81},[78,1160,1005],{"style":84},[78,1162,1163],{"style":96}," missingTerm",[78,1165,116],{"style":84},[78,1167,1168],{"style":815}," \"GLOSSLINT_C002\"",[78,1170,223],{"style":92},[78,1172,1173,1175,1178,1180,1183],{"class":80,"style":81},[78,1174,1005],{"style":84},[78,1176,1177],{"style":96}," badCase",[78,1179,116],{"style":84},[78,1181,1182],{"style":815}," \"GLOSSLINT_C003\"",[78,1184,223],{"style":92},[78,1186,1187,1189,1192,1194,1197],{"class":80,"style":81},[78,1188,1005],{"style":84},[78,1190,1191],{"style":96}," avoidIsTerm",[78,1193,116],{"style":84},[78,1195,1196],{"style":815}," \"GLOSSLINT_C004\"",[78,1198,223],{"style":92},[78,1200,1201,1203,1206,1208,1211],{"class":80,"style":81},[78,1202,1005],{"style":84},[78,1204,1205],{"style":96}," duplicateTerm",[78,1207,116],{"style":84},[78,1209,1210],{"style":815}," \"GLOSSLINT_C005\"",[78,1212,223],{"style":92},[78,1214,1215,1217,1220,1222,1225],{"class":80,"style":81},[78,1216,1005],{"style":84},[78,1218,1219],{"style":96}," badSkip",[78,1221,116],{"style":84},[78,1223,1224],{"style":815}," \"GLOSSLINT_C006\"",[78,1226,223],{"style":92},[78,1228,1229,1231,1234,1236,1239],{"class":80,"style":81},[78,1230,1005],{"style":84},[78,1232,1233],{"style":96}," badType",[78,1235,116],{"style":84},[78,1237,1238],{"style":815}," \"GLOSSLINT_C007\"",[78,1240,223],{"style":92},[78,1242,1243,1245,1248,1250,1253],{"class":80,"style":81},[78,1244,1005],{"style":84},[78,1246,1247],{"style":96}," notCorpus",[78,1249,116],{"style":84},[78,1251,1252],{"style":815}," \"GLOSSLINT_C008\"",[78,1254,223],{"style":92},[78,1256,1257,1259,1262,1264,1267],{"class":80,"style":81},[78,1258,1005],{"style":84},[78,1260,1261],{"style":96}," noGlossary",[78,1263,116],{"style":84},[78,1265,1266],{"style":815}," \"GLOSSLINT_C009\"",[78,1268,223],{"style":92},[78,1270,1271,1273,1276,1278,1281],{"class":80,"style":81},[78,1272,1005],{"style":84},[78,1274,1275],{"style":96}," badCasing",[78,1277,116],{"style":84},[78,1279,1280],{"style":815}," \"GLOSSLINT_C011\"",[78,1282,223],{"style":92},[78,1284,1285,1287,1290,1292,1295],{"class":80,"style":81},[78,1286,1005],{"style":84},[78,1288,1289],{"style":96}," glossaryAndCorpus",[78,1291,116],{"style":84},[78,1293,1294],{"style":815}," \"GLOSSLINT_C012\"",[78,1296,223],{"style":92},[78,1298,1299],{"class":80,"style":81},[78,1300,1301],{"style":92},"};",[21,1303,1304,1305,1307],{},"Maps corpus and loader validation error names to their stable ",[51,1306,57],{}," codes.",[41,1309,1115],{"id":1310,"anchor":1311},"glosslinteslint",{"label":1312,"icon":46},"Section titled \"glosslint\u002Feslint\"",[21,1314,1315,1316,1319,1320,628,1323,1326,1327,1329],{},"Provides the ESLint flat config factory and its ",[51,1317,1318],{},"GlosslintEslintOptions"," type. Requires the optional peer dependency ",[51,1321,1322],{},"eslint",[51,1324,1325],{},">=9.15.0","). See ",[25,1328,28],{"href":27}," for setup and rule behavior.",[63,1331,1335],{"id":1332,"anchor":1333},"glosslint-eslint",{"label":1334,"icon":46},"Section titled \"glosslint (ESLint)\"","glosslint (ESLint)",[70,1337,1338],{"language":72,"class":73,"wrap":14},[51,1339,1340],{"class":76},[78,1341,1342,1345,1348,1351,1354,1357,1359,1362,1364],{"class":80,"style":81},[78,1343,1344],{"style":84},"export",[78,1346,1347],{"style":84}," default",[78,1349,1350],{"style":84}," function",[78,1352,1353],{"style":88}," glosslint",[78,1355,1356],{"style":96},"(options",[78,1358,100],{"style":84},[78,1360,1361],{"style":96}," GlosslintEslintOptions)",[78,1363,116],{"style":84},[78,1365,1366],{"style":96}," Linter.Config[]",[21,1368,1369,1370,141,1373,29,1376,34,1379,1382,1383,757,1386,1382,1389,1392,1393,1396,1397,578,1400,1403,1404,1406,1407,757,1410,1412,1413,1416,1417,29,1420,1423,1424,1427],{},"Returns a single-element array containing an ESLint flat config object named ",[51,1371,1372],{},"\"glosslint\"",[51,1374,1375],{},"glosslint\u002Fterm",[51,1377,1378],{},"glosslint\u002Favoid",[51,1380,1381],{},"glosslint\u002Fcomment"," set to ",[51,1384,1385],{},"\"error\"",[51,1387,1388],{},"glosslint\u002Fidentifier",[51,1390,1391],{},"\"warn\"",". Uses ",[51,1394,1395],{},"options.corpus"," if passed, else loads ",[51,1398,1399],{},"options.glossary",[51,1401,1402],{},".agents\u002Fglossary.md"," from ",[51,1405,133],{}," once when the config is built. Passing both ",[51,1408,1409],{},"glossary",[51,1411,253],{}," throws ",[51,1414,1415],{},"GLOSSLINT_C012",". It sets no parser, so your ESLint config supplies ",[51,1418,1419],{},"typescript-eslint",[51,1421,1422],{},"vue-eslint-parser",", or ",[51,1425,1426],{},"yaml-eslint-parser"," for the files you lint.",[41,1429,1433],{"id":1430,"anchor":1431},"glosslintoxlint",{"label":1432,"icon":46},"Section titled \"glosslint\u002Foxlint\"","glosslint\u002Foxlint",[21,1435,1436,1437,757,1440,1443,1444,628,1447,1450,1451,39],{},"Provides the Oxlint JavaScript plugin default export and its ",[51,1438,1439],{},"GlosslintOxlintPlugin",[51,1441,1442],{},"GlosslintOxlintSettings"," types. Requires the optional peer dependency ",[51,1445,1446],{},"oxlint",[51,1448,1449],{},">=1.94.0","). Oxlint JS plugins are alpha in Oxlint 1.94. See ",[25,1452,33],{"href":32},[70,1454,1455],{"language":72,"class":73,"wrap":14},[51,1456,1457,198,1475],{"class":76},[78,1458,1459,1462,1465,1468,1470,1473],{"class":80,"style":81},[78,1460,1461],{"style":84},"declare",[78,1463,1464],{"style":84}," const",[78,1466,1467],{"style":103}," plugin",[78,1469,116],{"style":84},[78,1471,1472],{"style":96}," GlosslintOxlintPlugin",[78,1474,223],{"style":92},[78,1476,1477,1479,1481],{"class":80,"style":81},[78,1478,1344],{"style":84},[78,1480,1347],{"style":84},[78,1482,1483],{"style":92}," plugin;",[21,1485,1486,1487,1490,1491,1494,1495,1498,1499,1501,1502,1505,1506,1509],{},"Referenced by module specifier in ",[51,1488,1489],{},".oxlintrc.json"," as ",[51,1492,1493],{},"\"jsPlugins\": [\"glosslint\u002Foxlint\"]",". Exposes ",[51,1496,1497],{},"{ meta: { name: \"glosslint\" }, rules: { term, avoid, comment, identifier } }",". Reads ",[51,1500,1402],{}," (or ",[51,1503,1504],{},"settings.glosslint.glossary",") from ",[51,1507,1508],{},"context.cwd"," on the first file and caches the corpus for the process.",[41,1511,1515],{"id":1512,"anchor":1513},"glosslintx18n",{"label":1514,"icon":46},"Section titled \"glosslint\u002Fx18n\"","glosslint\u002Fx18n",[21,1517,1518,1519,1319,1522,628,1525,1326,1528,1530],{},"Provides the x18n plugin factory and its ",[51,1520,1521],{},"GlosslintX18nOptions",[51,1523,1524],{},"@x18n\u002Fcore",[51,1526,1527],{},">=0.1.14",[25,1529,38],{"href":37}," for setup and fix behavior.",[63,1532,1536],{"id":1533,"anchor":1534},"glosslint-x18n",{"label":1535,"icon":46},"Section titled \"glosslint (x18n)\"","glosslint (x18n)",[70,1538,1539],{"language":72,"class":73,"wrap":14},[51,1540,1541],{"class":76},[78,1542,1543,1545,1547,1549,1551,1553,1555,1558,1560],{"class":80,"style":81},[78,1544,1344],{"style":84},[78,1546,1347],{"style":84},[78,1548,1350],{"style":84},[78,1550,1353],{"style":88},[78,1552,1356],{"style":96},[78,1554,100],{"style":84},[78,1556,1557],{"style":96}," GlosslintX18nOptions)",[78,1559,116],{"style":84},[78,1561,1562],{"style":96}," Plugin",[21,1564,1565,1566,1568,1569,1571,1572,628,1575,1577,1578,628,1581,1584,1585,628,1588,1590,1591,1593,1594,1597],{},"Returns an ",[51,1567,1524],{}," plugin named ",[51,1570,1372],{}," that adds the checks ",[51,1573,1574],{},"glosslint-term",[51,1576,1385],{},"), ",[51,1579,1580],{},"glosslint-avoid",[51,1582,1583],{},"\"warning\"","), and ",[51,1586,1587],{},"glosslint-case",[51,1589,1385],{},") over source-locale messages and hard-coded strings. Importing this entry point also augments ",[51,1592,1524],{},"'s ",[51,1595,1596],{},"CheckIds"," interface with those three check IDs.",[41,1599,1603],{"id":1600,"anchor":1601},"glosslintpresetstech",{"label":1602,"icon":46},"Section titled \"glosslint\u002Fpresets\u002Ftech\"","glosslint\u002Fpresets\u002Ftech",[21,1605,1606,1607,1609,1610,1612,1613,1616,1617,1620,1621,1623,1624,1627,1628,1630,1631,462,1633,39],{},"Exports a default ",[51,1608,125],{}," containing 477 product and technology names generated from case-police 2.2.1 (each an ",[51,1611,972],{}," term with ",[51,1614,1615],{},"skip: [\"lower\", \"upper\"]",") and 7 joined spellings in ",[51,1618,1619],{},"allow",". In ",[51,1622,1402],{},", write ",[51,1625,1626],{},"Presets: tech","; in ",[51,1629,53],{},", pass it inside ",[51,1632,308],{},[25,1634,1636],{"href":1635},"\u002Fguide\u002Fpresets","Built-in presets",[70,1638,1639],{"language":72,"class":73,"wrap":14},[51,1640,1641,198,1656],{"class":76},[78,1642,1643,1645,1647,1650,1652,1654],{"class":80,"style":81},[78,1644,1461],{"style":84},[78,1646,1464],{"style":84},[78,1648,1649],{"style":103}," corpus",[78,1651,116],{"style":84},[78,1653,119],{"style":96},[78,1655,223],{"style":92},[78,1657,1658,1660,1662],{"class":80,"style":81},[78,1659,1344],{"style":84},[78,1661,1347],{"style":84},[78,1663,1664],{"style":92}," corpus;",[41,1666,1670],{"id":1667,"anchor":1668},"glosslintpresetsinclusive",{"label":1669,"icon":46},"Section titled \"glosslint\u002Fpresets\u002Finclusive\"","glosslint\u002Fpresets\u002Finclusive",[21,1672,1606,1673,1675,1676,1678,1679,1623,1681,1627,1684,1630,1686,462,1688,39],{},[51,1674,125],{}," containing 37 inclusive-wording terms with reasons on each avoid word, inline examples, and an empty ",[51,1677,1619],{}," list. In ",[51,1680,1402],{},[51,1682,1683],{},"Presets: inclusive",[51,1685,53],{},[51,1687,308],{},[25,1689,1636],{"href":1635},[70,1691,1692],{"language":72,"class":73,"wrap":14},[51,1693,1694,198,1708],{"class":76},[78,1695,1696,1698,1700,1702,1704,1706],{"class":80,"style":81},[78,1697,1461],{"style":84},[78,1699,1464],{"style":84},[78,1701,1649],{"style":103},[78,1703,116],{"style":84},[78,1705,119],{"style":96},[78,1707,223],{"style":92},[78,1709,1710,1712,1714],{"class":80,"style":81},[78,1711,1344],{"style":84},[78,1713,1347],{"style":84},[78,1715,1664],{"style":92},[41,1717,1721],{"id":1718,"anchor":1719},"glosslint-cli-binary",{"label":1720,"icon":46},"Section titled \"glosslint CLI binary\"","glosslint CLI binary",[21,1723,1724,1725,1728,1729,1732,1733,628,1735,1738,1739,1728,1741,1744,1745,578,1748,39],{},"The package registers one executable in ",[51,1726,1727],{},"package.json"," ",[51,1730,1731],{},"bin",": ",[51,1734,43],{},[51,1736,1737],{},".\u002Fdist\u002Fcli.mjs","). It is not listed under ",[51,1740,1727],{},[51,1742,1743],{},"exports",", so run it from your shell with ",[51,1746,1747],{},"npx glosslint",[51,1749,1750],{},"pnpm exec glosslint",[21,1752,1753,1754,1757,1758,29,1761,29,1764,34,1767,462,1770,1774],{},"It provides ",[51,1755,1756],{},"glosslint [check] [...paths]"," (default command), ",[51,1759,1760],{},"glosslint doctor",[51,1762,1763],{},"glosslint test",[51,1765,1766],{},"glosslint print",[51,1768,1769],{},"glosslint explain \u003Cquery>",[25,1771,1773],{"href":1772},"\u002Fintegrations\u002Fcli","CLI"," for all flags and exit codes.",[41,1776,1780],{"id":1777,"anchor":1778},"types",{"label":1779,"icon":46},"Section titled \"Types\"","Types",[21,1782,1783,1784,1786,1787,1789,1790,1577,1792,757,1794,1789,1796,1584,1798,1789,1800,1802],{},"Every type below is exported from ",[51,1785,43],{},", except ",[51,1788,1318],{}," (from ",[51,1791,1115],{},[51,1793,1439],{},[51,1795,1442],{},[51,1797,1433],{},[51,1799,1521],{},[51,1801,1515],{},").",[1804,1805,1806,1816,1825,1838,1847,1856,1879,1893,1919,1938,1958,1988,1996,2005,2014,2027,2037,2046,2054,2067,2082,2091,2102,2111,2123,2133,2171,2181,2189],"ul",{},[1807,1808,1809,1812,1813,39],"li",{},[51,1810,1811],{},"Avoid",": Object form of an avoid entry, ",[51,1814,1815],{},"{ word: string; why?: string }",[1807,1817,1818,1821,1822,39],{},[51,1819,1820],{},"CaseMode",": How capitals are checked on a term: ",[51,1823,1824],{},"\"exact\" | \"spelling\" | \"context\"",[1807,1826,1827,1830,1831,1834,1835,39],{},[51,1828,1829],{},"CaseStyle",": Case style for a ",[51,1832,1833],{},"context"," term: ",[51,1836,1837],{},"\"title\" | \"sentence\" | \"lower\" | \"upper\" | \"as-written\"",[1807,1839,1840,1732,1843,1846],{},[51,1841,1842],{},"Casing",[51,1844,1845],{},"Partial\u003CRecord\u003CCasingKind, CaseStyle>>"," mapping text kinds to case styles.",[1807,1848,1849,1852,1853,39],{},[51,1850,1851],{},"CasingKind",": Text kinds that accept a case style: ",[51,1854,1855],{},"\"label\" | \"header\" | \"sentence\"",[1807,1857,1858,1860,1861,29,1864,29,1866,29,1869,34,1872,1875,1876,39],{},[51,1859,581],{},": Finding returned by the CLI, adding ",[51,1862,1863],{},"file",[51,1865,80],{},[51,1867,1868],{},"column",[51,1870,1871],{},"fix.result",[51,1873,1874],{},"TermSummary"," in place of the full ",[51,1877,1878],{},"Term",[1807,1880,1881,1884,1885,1887,1888,1890,1891,39],{},[51,1882,1883],{},"CliReport",": JSON structure printed by ",[51,1886,712],{}," and returned by ",[51,1889,665],{},", holding ",[51,1892,708],{},[1807,1894,1895,1897,1898,757,1900,1902,1903,29,1906,29,1909,1911,1912,1915,1916,39],{},[51,1896,125],{},": Validated, flat corpus returned by ",[51,1899,68],{},[51,1901,53],{},", with ",[51,1904,1905],{},"kind: \"glosslint.corpus\"",[51,1907,1908],{},"terms",[51,1910,1619],{},", optional ",[51,1913,1914],{},"casing",", and optional ",[51,1917,1918],{},"wholeLabel",[1807,1920,1921,1924,1925,1927,1928,29,1930,29,1932,29,1934,34,1936,39],{},[51,1922,1923],{},"CorpusInput",": Configuration object accepted by ",[51,1926,53],{},", with optional ",[51,1929,308],{},[51,1931,1908],{},[51,1933,1619],{},[51,1935,1914],{},[51,1937,1918],{},[1807,1939,1940,1942,1943,1902,1945,29,1947,29,1950,628,1953,1584,1956,39],{},[51,1941,771],{},": One failing term example from ",[51,1944,722],{},[51,1946,591],{},[51,1948,1949],{},"example",[51,1951,1952],{},"expected",[51,1954,1955],{},"\"finding\" | \"none\"",[51,1957,623],{},[1807,1959,1960,1962,1963,1902,1966,29,1968,29,1971,29,1974,29,1976,1979,1980,1915,1982,29,1984,34,1986,39],{},[51,1961,470],{},": One match returned by ",[51,1964,1965],{},"Matcher.check",[51,1967,51],{},[51,1969,1970],{},"start",[51,1972,1973],{},"end",[51,1975,186],{},[51,1977,1978],{},"message",", full ",[51,1981,591],{},[51,1983,585],{},[51,1985,588],{},[51,1987,594],{},[1807,1989,1990,1992,1993,39],{},[51,1991,716],{},": Union of the three finding codes: ",[51,1994,1995],{},"\"GLOSSLINT_TERM\" | \"GLOSSLINT_AVOID\" | \"GLOSSLINT_CASE\"",[1807,1997,1998,2001,2002,39],{},[51,1999,2000],{},"Fix",": Replacement attached to a finding, ",[51,2003,2004],{},"{ kind: FixKind; replace: string }",[1807,2006,2007,2010,2011,39],{},[51,2008,2009],{},"FixKind",": Action safety level of a fix: ",[51,2012,2013],{},"\"autofix\" | \"suggestion\" | \"rename\"",[1807,2015,2016,2019,2020,757,2022,1732,2024,39],{},[51,2017,2018],{},"FormatOptions",": Options for ",[51,2021,532],{},[51,2023,607],{},[51,2025,2026],{},"{ color?: boolean; files?: number }",[1807,2028,2029,2031,2032,1732,2034,39],{},[51,2030,245],{},": One problem returned by ",[51,2033,170],{},[51,2035,2036],{},"{ code: string; line: number; why: string; fix: string; fixable: boolean; term?: string }",[1807,2038,2039,2019,2041,1732,2043,39],{},[51,2040,1318],{},[51,2042,1115],{},[51,2044,2045],{},"{ glossary?: string | URL; corpus?: Corpus; files?: string[]; ignoreCallees?: string[]; identifierAvoid?: boolean; kindOf?: KindOf }",[1807,2047,2048,2050,2051,39],{},[51,2049,1439],{},": Oxlint plugin object ",[51,2052,2053],{},"{ meta: { name: \"glosslint\" }; rules: Record\u003C\"term\" | \"avoid\" | \"comment\" | \"identifier\", OxlintRule> }",[1807,2055,2056,2058,2059,386,2062,1732,2064,39],{},[51,2057,1442],{},": Shape of ",[51,2060,2061],{},"settings.glosslint",[51,2063,1489],{},[51,2065,2066],{},"{ glossary?: string; ignoreCallees?: string[]; identifierAvoid?: boolean }",[1807,2068,2069,2019,2071,1732,2073,2076,2077,757,2079,2081],{},[51,2070,1521],{},[51,2072,1515],{},[51,2074,2075],{},"{ glossary?: string | URL; corpus?: Corpus; sourceLocale?: string; kindOf?: KindOf }",", all optional; ",[51,2078,1409],{},[51,2080,253],{}," exclude each other.",[1807,2083,2084,2087,2088,39],{},[51,2085,2086],{},"KindOf",": Custom kind classifier ",[51,2089,2090],{},"(site: KindSite) => TextKind | undefined",[1807,2092,2093,2096,2097,1732,2099,39],{},[51,2094,2095],{},"KindSite",": String context passed to ",[51,2098,477],{},[51,2100,2101],{},"{ text: string; name?: string; file?: string; shown?: boolean }",[1807,2103,2104,2107,2108,39],{},[51,2105,2106],{},"Link",": Reference link on a term, ",[51,2109,2110],{},"{ title: string; url: string }",[1807,2112,2113,2115,2116,2118,2119,757,2121,39],{},[51,2114,374],{},": Compiled corpus returned by ",[51,2117,329],{},", exposing readonly ",[51,2120,253],{},[51,2122,381],{},[1807,2124,2125,2019,2128,1732,2130,39],{},[51,2126,2127],{},"MatcherOptions",[51,2129,329],{},[51,2131,2132],{},"{ identifierAvoid?: boolean }",[1807,2134,2135,2137,2138,2140,2141,29,2143,29,2145,29,2147,29,2150,29,2153,29,2156,29,2159,29,2162,29,2164,29,2167,34,2169,39],{},[51,2136,1878],{},": Corpus entry with required ",[51,2139,591],{}," and optional ",[51,2142,962],{},[51,2144,965],{},[51,2146,585],{},[51,2148,2149],{},"abbr",[51,2151,2152],{},"avoid",[51,2154,2155],{},"examples",[51,2157,2158],{},"links",[51,2160,2161],{},"case",[51,2163,1914],{},[51,2165,2166],{},"skip",[51,2168,954],{},[51,2170,951],{},[1807,2172,2173,1732,2175,2178,2179,39],{},[51,2174,1874],{},[51,2176,2177],{},"Pick\u003CTerm, \"term\" | \"description\" | \"nuance\">",", carried on each ",[51,2180,581],{},[1807,2182,2183,2185,2186,39],{},[51,2184,510],{},": Context of a checked string: ",[51,2187,2188],{},"\"label\" | \"header\" | \"sentence\" | \"comment\" | \"identifier\" | \"unknown\"",[1807,2190,2191,2193,2194,141,2196,2140,2198,29,2200,29,2202,34,2204,39],{},[51,2192,946],{},": Entry produced by ",[51,2195,909],{},[51,2197,591],{},[51,2199,951],{},[51,2201,954],{},[51,2203,958],{},[51,2205,2206],{},"doNotTranslate",[2208,2227,2230,2231,2234,2235,2236,2237],{"id":43,"depth":2209,"text":43,"children":2210},2,[2211,2213,2214,2215,2216,2217,2218,2219,2220,2221,2222,2223,2224,2225,2226],{"id":65,"depth":2212,"text":68},3,{"id":167,"depth":2212,"text":170},{"id":270,"depth":2212,"text":53},{"id":326,"depth":2212,"text":329},{"id":395,"depth":2212,"text":395},{"id":474,"depth":2212,"text":477},{"id":529,"depth":2212,"text":532},{"id":604,"depth":2212,"text":607},{"id":662,"depth":2212,"text":665},{"id":719,"depth":2212,"text":722},{"id":783,"depth":2212,"text":786},{"id":854,"depth":2212,"text":854},{"id":906,"depth":2212,"text":909},{"id":978,"depth":2212,"text":57},{"id":1124,"depth":2212,"text":60},{"id":1310,"depth":2209,"text":1115,"children":2228},[2229],{"id":1332,"depth":2212,"text":1335},{"id":1430,"depth":2209,"text":1433},{"id":1512,"depth":2209,"text":1515,"children":2232},[2233],{"id":1533,"depth":2212,"text":1536},{"id":1600,"depth":2209,"text":1603},{"id":1667,"depth":2209,"text":1670},{"id":1718,"depth":2209,"text":1721},{"id":1777,"depth":2209,"text":1780},{"path":1119,"title":2239,"description":2240},"Config errors","Reference for glosslint config and glossary errors: the C001 to C012 and G001 to G009 codes, what triggers each, and how to fix it.",1795769376179,"ebb2a05d-f63d-473e-9d47-1831648e3a0a"]