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