Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: "reservation" annotations; issue #2120 (#2134)
Andrew Dunbar5124c0740e9b
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 446f0843f..7a58b68bc 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -1120,6 +1120,7 @@ Benet/gBenetton/gBengal/ONSgBengali/JNg+Bengaluru/OgBenghazi/OgBenin/OgBeninese/JNg@@ -1606,7 +1607,7 @@ Burke/OgBurks/OgBurl/OgBurlington/Og-Burma/Og+Burma/Og # old name of MyanmarBurmese/JNOgBurnett/OgBurns/Og@@ -1650,6 +1651,7 @@ CCTV/NO # closed-circuit televisionCCU/NCD/NSgVCDC/ON+CDMX/Og # Mexico City, see also DFCDT/NCEO/NgS # chief executive officerCF/NOJ@@ -1969,7 +1971,7 @@ Cesar/OgCesarean/JNgCessna/OgCetus/Og-Ceylon/ONg+Ceylon/ONg # old name of Sri LankaCeylonese/JNCezanne/gCf/g@@ -2037,6 +2039,7 @@ Chattahoochee/OgChattanooga/OgChatterley/OgChatterton/Og+Chattogram/OgChaucer/OgChauncey/OgChautauqua/ONg@@ -2111,7 +2114,7 @@ Chiron/OgChisholm/OgChișinău/OgChisinau/Og-Chittagong/Og+Chittagong/Og # old name of ChattogramChivas/gChloe/OgChoctaw/ONJSg@@ -2553,6 +2556,7 @@ DDT/NSDE/ON # US state (Delaware)DEA/ONDEC/NOSd+DF/Og # Distrito Federal, see also CDMXDH/NODHS/ODI/N@@ -2581,6 +2585,7 @@ DUI/NDVD/NSDVR/NSgVDWI/NV+Dacca/Og # old spelling of DhakaDachau/OgDacron/NSgDada/Ng@@ -3320,6 +3325,7 @@ Esther/OgEstonia/OgEstonian/JNSgEstrada/Og+Eswatini/OgEthan/OgEthel/OgEthelred/Og@@ -3862,6 +3868,7 @@ Gayle/OgGaza/OgGaziantep/OgGd/g+Gdańsk/OgGdansk/OgGe/OgGeffen/Og@@ -5311,6 +5318,7 @@ Kalb/gKalevala/OgKalgoorlie/Og # cityKali/Og+Kaliningrad/OgKalmyk/JNOg # ethnicityKama/OgKamchatka/Og@@ -5458,7 +5466,8 @@ Khabarovsk/OgKhachaturian/OgKhalid/OgKhan/Og-Kharkov/Og+Kharkiv/Og+Kharkov/Og # old name of KharkivKhartoum/OgKhayyam/gKhazar/NOJg@@ -5477,7 +5486,7 @@ Kidd/OgKiel/OgKierkegaard/OgKieth/g-Kiev/ONg+Kiev/ONg # old name of KyivKigali/OgKikuyu/NOgKilauea/Og@@ -5549,6 +5558,7 @@ Knuths/OKobe/OgKoch/OgKochab/Og+Kochi/OgKodachrome/OgKodak/gKodaly/g@@ -5565,6 +5575,8 @@ Kommunizma/gKonami/OgKong/OgKongo/OgJ+Königsberg/Og # old name of Kaliningrad+Konigsberg/OgKonrad/gKoontz/OgKoppel/g@@ -5852,7 +5864,7 @@ Len/OgLena/OgLenard/OgLenin/Og-Leningrad/Og+Leningrad/Og # old name of St. PetersburgLeninism/NmgLeninist/JNgLennon/Og@@ -6127,6 +6139,8 @@ Ludwig/OgLuella/OgLufthansa/OgLuftwaffe/Og+Lugansk/Og # old name of Luhansk+Luhansk/OgLuger/ONgLugosi/gLuigi/Og@@ -6154,7 +6168,7 @@ Luxembourgian/NJLuz/OgLuzon/OgLviv/Og-Lvov/Og+Lvov/Og # old name of LvivLyX/gLyallpur/OLycra/Ng@@ -6324,7 +6338,7 @@ Makarios/gMaker/OgMalabar/ONgMalabo/Og-Malacca/ONg+Malacca/ONg # old spelling of MelakaMalachi/OgMalaga/OgMalagasy/NgJ@@ -6699,6 +6713,7 @@ Meir/OgMejia/OgMekong/OgMel/Og+Melaka/OgMelanesia/OgMelanesian/JNgMelanie/Og@@ -7166,7 +7181,8 @@ Myrdal/OgMyrna/OgMyron/OgMyrtle/Og-Mysore/Og # old name of karnataka+Mysore/Og # old name of karnataka state and mysuru city+Mysuru/OgMyst/gN/NgN'Djamena/O # capital of Chad@@ -7588,7 +7604,7 @@ October/ONVSgOdell/OgOder/OgOdesa/Og-Odessa/Og+Odessa/Og # old spelling of OdesaOdets/gOdia/ONg # language, previously OriyaOdin/Og@@ -8193,6 +8209,7 @@ Pompeian/JNPompeii/OgPompey/OgPonce/Og+Pondicherry/Og # old name of PuducherryPontchartrain/gPontiac/ONSgPontianak/Og@@ -8200,7 +8217,7 @@ Pontic/JOgPonzi/OgSPooh/OgPoole/Og-Poona/Og+Poona/Og # old name of PunePope/ONgPopeye/OgPopocatepetl/Og@@ -8317,6 +8334,7 @@ Pu/Og # plutoniumPuccini/OgPuck/OgPuckett/Og+Puducherry/OgPuebla/OgPueblo/OgPuerto/O@@ -8326,6 +8344,7 @@ Pulaski/OgPulitzer/NOgPullman/NOSgPunch/ONg+Pune/OgPunic/JNOgPunjab/OgPunjabi/JONwg@@ -8492,7 +8511,7 @@ Randell/OgRandi/gRandolph/OgRandy/Og-Rangoon/Og+Rangoon/Og # old name of YangonRankin/OgRankine/OgRaoul/g@@ -9359,7 +9378,7 @@ Shula/OgShylock/ONgShylockian/gSi/Og-Siam/Og+Siam/Og # old name of ThailandSiamese/JONgSibelius/gSiberia/ONg@@ -9586,7 +9605,7 @@ Stael/gStafford/ONgStairMaster/gStalin/Og-Stalingrad/Og+Stalingrad/Og # old name of VolgogradStalinism/NmgStalinist/JNgStallone/Og@@ -10027,6 +10046,7 @@ Thessaly/OgThieu/gThimbu/ONg # capital of bhutanThimphu/O # capital of bhutan+Thiruvananthapuram/OgThomas/NOgThomism/NgThomistic/Jg@@ -10063,6 +10083,7 @@ Ticonderoga/OgTide/gTienanmen/OgTiffany/ONg+Tiflis/Og # old name of TbilisiTigris/OgTijuana/Og # cityTillich/g@@ -10097,6 +10118,7 @@ Titanic/JONgTitian/Og # painterTiticaca/Og # lakeTito/Og # president+Titograd/Og # old name of PodgoricaTitus/OgTitusville/OgTl/g # thallium@@ -10204,6 +10226,7 @@ Trippe/OgTrisha/OgTristan/OgTriton/Og+Trivandrum/Og # old name of ThiruvananthapuramTrobriand/JgTroilus/OgTrojan/NgSJ@@ -10360,8 +10383,10 @@ Uighur/ONJgUjungpandang/gUkraine/OgUkrainian/JNOSg+Ulaanbaatar/OgUlster/ONgUltrasuede/Ng+Uluru/OgUlyanovsk/OgUlysses/OgUmbriel/Og@@ -10580,6 +10605,8 @@ Vince/OgVincent/OgVindemiatrix/OgVineland/g+Vinnitsa/Og # old name of Vinnytsia+Vinnytsia/OgVinson/OgViola/OgViolet/Og@@ -11068,7 +11095,8 @@ Zane/OgZanuck/gZanzibar/OgZapata/Og-Zaporozhye/Og+Zaporizhzhia/Og+Zaporozhye/Og # old name of ZaporizhzhiaZapotec/NOJg # ethnicityZappa/OgZara/Og@@ -19163,7 +19191,7 @@ cor/~Ncoracle/NSgcoral/~NwSgJcorbel/NSgV-cord/~NSgVGdEr+cord/~NSgVGdrcordage/Ngcordial/~JYNSgcordiality/Nmg@@ -41925,7 +41953,7 @@ resentful/~JYpresentfulness/Nmgresentment/~NgSreserpine/Ng-reservation/ ~NgS+reservation/~NgSresveratrol/Ngreserved/~VtTJYUreservedness/Nmgdiff --git a/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml b/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.ymlindex cf6863881..aadc922c6 100644--- a/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml+++ b/harper-core/tests/text/linters/Alice's Adventures in Wonderland.snap.yml@@ -3207,9 +3207,9 @@ Message: |2477 | eagerly that the Gryphon said, in a rather offended tone, “Hm! No accounting for| ^~ Did you mean to spell `Hm` this way?Suggest:- - Replace with: “H”- Replace with: “H'm”- - Replace with: “Hem”+ - Replace with: “Ha”+ - Replace with: “Ham”diff --git a/harper-core/tests/text/linters/Computer science.snap.yml b/harper-core/tests/text/linters/Computer science.snap.ymlindex b0a2b1e10..1a50f419e 100644--- a/harper-core/tests/text/linters/Computer science.snap.yml+++ b/harper-core/tests/text/linters/Computer science.snap.yml@@ -635,8 +635,8 @@ Message: || ^~ Did you mean to spell `A.` this way?Suggest:- Replace with: “Ax”- - Replace with: “A”- Replace with: “Ab”+ - Replace with: “Ac”@@ -988,9 +988,9 @@ Message: |393 | term "architecture" in computer literature can be traced to the work of Lyle R.| ^~ Did you mean to spell `R.` this way?Suggest:- - Replace with: “R”- Replace with: “Rd”- - Replace with: “Re”+ - Replace with: “R”+ - Replace with: “RC”@@ -999,8 +999,8 @@ Message: |394 | Johnson and Frederick P. Brooks Jr., members of the Machine Organization| ^~ Did you mean to spell `P.` this way?Suggest:- - Replace with: “Pp”- - Replace with: “Pa”+ - Replace with: “Pt”+ - Replace with: “P”- Replace with: “Pd”diff --git a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml b/harper-core/tests/text/linters/Part-of-speech tagging.snap.ymlindex 169d4bb3f..88275fe31 100644--- a/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml+++ b/harper-core/tests/text/linters/Part-of-speech tagging.snap.yml@@ -39,8 +39,8 @@ Message: || ^~ Did you mean to spell `E.` this way?Suggest:- Replace with: “Em”- - Replace with: “E”- - Replace with: “Ea”+ - Replace with: “Ed”+ - Replace with: “EC”@@ -78,7 +78,7 @@ Message: |Suggest:- Replace with: “Nun”- Replace with: “Non”- - Replace with: “N1”+ - Replace with: “NV”diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex 69785b4aa..a0576e06f 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -819,7 +819,7 @@ Message: |Suggest:- Replace with: “Ta”- Replace with: “Tb”- - Replace with: “Ti”+ - Replace with: “Tn”@@ -828,7 +828,7 @@ Message: |664 | it, you perceive, after a moment, the eyes of Doctor T. J. Eckleburg. The eyes| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -853,7 +853,7 @@ Message: |Suggest:- Replace with: “Ta”- Replace with: “Tb”- - Replace with: “Ti”+ - Replace with: “Tn”@@ -862,7 +862,7 @@ Message: |665 | of Doctor T. J. Eckleburg are blue and gigantic—their retinas are one yard high.| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -929,8 +929,8 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “B”- Replace with: “Be”+ - Replace with: “Bf”@@ -1055,9 +1055,9 @@ Message: |784 | We backed up to a gray old man who bore an absurd resemblance to John D.| ^~ Did you mean to spell `D.` this way?Suggest:- - Replace with: “Db”- Replace with: “Dc”- - Replace with: “Do”+ - Replace with: “DA”+ - Replace with: “DE”@@ -1246,8 +1246,8 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “B”- Replace with: “Be”+ - Replace with: “Bf”@@ -1342,9 +1342,9 @@ Message: |1122 | Daisy! Dai———”| ^~~ Did you mean to spell `Dai` this way?Suggest:+ - Replace with: “Day”- Replace with: “Dab”- Replace with: “Dad”- - Replace with: “Dais”@@ -2386,9 +2386,9 @@ Message: |1858 | farther out on the Island came the Cheadles and the O. R. P. Schraeders, and the| ^~ Did you mean to spell `R.` this way?Suggest:- - Replace with: “R”- Replace with: “Rd”- - Replace with: “Re”+ - Replace with: “R”+ - Replace with: “RC”@@ -2397,8 +2397,8 @@ Message: |1858 | farther out on the Island came the Cheadles and the O. R. P. Schraeders, and the| ^~ Did you mean to spell `P.` this way?Suggest:- - Replace with: “Pp”- - Replace with: “Pa”+ - Replace with: “Pt”+ - Replace with: “P”- Replace with: “Pd”@@ -2475,8 +2475,8 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “B”- Replace with: “Be”+ - Replace with: “Bf”@@ -2487,8 +2487,8 @@ Message: || ^~ Did you mean to spell `A.` this way?Suggest:- Replace with: “Ax”- - Replace with: “A”- Replace with: “Ab”+ - Replace with: “Ac”@@ -2611,8 +2611,8 @@ Message: || ^~ Did you mean to spell `G.` this way?Suggest:- Replace with: “Gt”- - Replace with: “Gm”- Replace with: “Go”+ - Replace with: “Gr”@@ -2654,9 +2654,9 @@ Message: |1871 | afterward strangled his wife. Da Fontano the promoter came there, and Ed Legros| ^~ Did you mean to spell `Da` this way?Suggest:+ - Replace with: “Dab”- Replace with: “Dad”- Replace with: “Dam”- - Replace with: “Day”@@ -2701,8 +2701,8 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “B”- Replace with: “Be”+ - Replace with: “Bf”@@ -2724,7 +2724,7 @@ Message: |Suggest:- Replace with: “Db”- Replace with: “Dc”- - Replace with: “Dd”+ - Replace with: “Def”@@ -2934,7 +2934,7 @@ Message: |Suggest:- Replace with: “L”- Replace with: “Lb”- - Replace with: “Lg”+ - Replace with: “Lo”@@ -3054,8 +3054,8 @@ Message: |1896 | Fitz-Peters and Mr. P. Jewett, once head of the American Legion, and Miss| ^~ Did you mean to spell `P.` this way?Suggest:- - Replace with: “Pp”- - Replace with: “Pa”+ - Replace with: “Pt”+ - Replace with: “P”- Replace with: “Pd”@@ -5447,7 +5447,7 @@ Message: |Suggest:- Replace with: “Ta”- Replace with: “Tb”- - Replace with: “Ti”+ - Replace with: “Tn”@@ -5456,7 +5456,7 @@ Message: |3874 | while in silence. Then as Doctor T. J. Eckleburg’s faded eyes came into sight| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -5516,7 +5516,7 @@ Message: |Suggest:- Replace with: “Ta”- Replace with: “Tb”- - Replace with: “Ti”+ - Replace with: “Tn”@@ -5525,7 +5525,7 @@ Message: |3948 | behind. Over the ashheaps the giant eyes of Doctor T. J. Eckleburg kept their| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -7004,9 +7004,9 @@ Message: |5122 | ghost of a superior “Hm!”| ^~ Did you mean to spell `Hm` this way?Suggest:- - Replace with: “H”- Replace with: “H'm”- - Replace with: “Hem”+ - Replace with: “Ha”+ - Replace with: “Ham”@@ -7072,7 +7072,7 @@ Message: |Suggest:- Replace with: “Ta”- Replace with: “Tb”- - Replace with: “Ti”+ - Replace with: “Tn”@@ -7081,7 +7081,7 @@ Message: |5156 | of Doctor T. J. Eckleburg, which had just emerged, pale and enormous, from the| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -7479,8 +7479,8 @@ Message: || ^~ Did you mean to spell `C.` this way?Suggest:- Replace with: “Cw”- - Replace with: “C”- Replace with: “Cc”+ - Replace with: “Ch”@@ -7585,7 +7585,7 @@ Message: |5412 | “If he’d of lived, he’d of been a great man. A man like James J. Hill. He’d of| ^~ Did you mean to spell `J.` this way?Suggest:- - Replace with: “Jr”+ - Replace with: “Jg”- Replace with: “J”- Replace with: “JD”@@ -7614,8 +7614,8 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “B”- Replace with: “Be”+ - Replace with: “Bf”