Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: new words, annotation corrections, adj-of-a exceptions (#1270)
Andrew Dunbar36e4c7d2e3c2
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex d0b8fabc0..16d983e9c 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -10764,6 +10764,7 @@ Wigner/2MWii/1MWikileaksWikipedia/214M+Wiktionary/2MSWilberforce/2MWilbert/2MWilbur/2M@@ -12803,6 +12804,7 @@ appropriate/~54PYGNXDSappropriated/~45Uappropriateness/~1IMappropriation/~1M+appropriative/5appropriator/1SMapproval/~1EMapprovals/1@@ -13483,6 +13485,7 @@ avert/~4GDSavg/~1avian/~51aviary/~1SM+aviate/41DSGaviation/~1Maviator/~1MSaviatrices/19@@ -13616,6 +13619,8 @@ backhoe/14MSbacking/~154Mbacklash/~14MSbackless/5+backlight/14MSG+backlit/45backlog/~14MSbacklogged/45backlogging/4@@ -18256,6 +18261,7 @@ companionably/jcompanionship/~1Mcompanionway/1MScompany/~14SM+companywide/5 # in Wiktionary and https://seeds.sproutsocial.com/writing/grammar-and-mechanics/comparability/1Mcomparable/~51Icomparably/Ij@@ -20745,6 +20751,7 @@ descry/4GDSdesecrate/45DSGNdesecration/1Mdeselection/1+deserialization/1MSdeserialize/4SGDdesert/~154SDRZGMdeserter/1M@@ -21038,6 +21045,7 @@ differential/~51SMdifferentiate/~41DSGNdifferentiated/~45Udifferentiation/~1M+differentiator/1MSdifficult/~54Ydifficulty/~1SMdiffidence/1M@@ -22799,8 +22807,9 @@ enclave/~14MSenclose/~4GDSenclosed/~54Uenclosure/~1SM-encode/~41DRSZG+encode/~41DRSZencoder/~1M+encoding/1MSencomium/1MSencompass/~4GDSencore/~14DSMG@@ -24573,6 +24582,7 @@ fisher/~1Mfisherman/~1Mfishermen/~9fishery/~1SM+fisheye/1SMfishhook/14SMfishily/jfishiness/1M@@ -26723,6 +26733,7 @@ gray/~541MDRTGSP<graybeard/1SM<grayish/5<grayness/1M<+grayscale/1M5<graze/14DRSMZGgrazer/1Mgrease/~14DRSMZG@@ -26773,6 +26784,7 @@ grey/541PMDRTGS!@_greyhound/~14SMgreyish/5!@_greyness/1M!@_+greyscale/1M5!@_gribble/15Sgrid/~14MSgriddle/14SM@@ -28358,6 +28370,7 @@ hotplate/1SMhotpot/1Shots/14Mhotshot/514MS+hotspot/1MShotted/4hotter/~514hottest/~5@@ -33572,7 +33585,7 @@ mincemeat/1Mmincer/1Mmind/~14ADRSZGmind's-mindbogglingly/j+mindboggling/5Y<minded/~54Pmindfuck/1SM6mindful/~51YP@@ -34459,7 +34472,9 @@ multimeter/1SMmultimillionaire/1SMmultinational/~51SMmultipart/5+multipartitemultiparty/5+multiphonics/1Mmultiplanetary/5multiplayer/~51Mmultiple/~51MS@@ -37298,6 +37313,7 @@ parricide/1MSparring/4parrot/~14GMDSparry/~41GDSM+parsable/5parse/~41DRSGTparsec/1MSparser/~1SM@@ -38791,6 +38807,7 @@ polemicist/1SMpolemics/1Mpolestar/1SMpolice/~14DSMG+policeless/5policeman/~1Mpolicemen/~9policewoman/1M@@ -41554,6 +41571,7 @@ respectful/~5EYrespectfulness/1Mrespective/~5Yrespell/4SGD+respin/1MS4GDrespiration/~1Mrespirator/~1SMrespiratory/~5@@ -41705,7 +41723,8 @@ reverential/5Yreverie/14MSrevers/1Mreversal/~15SM-reverse/~514YR+reverse/~514Y+reverser/1MSreversibility/1reversible/~51reversibly/j@@ -42761,8 +42780,8 @@ schedule/~14ADSGschedule'sscheduled/~451Uscheduler/~1S-schema/~1-schemata/1+schema/~1MS+schemata/9schematic/~51SMschematically/jschematise/4GDS!_@@ -47028,6 +47047,7 @@ symbolism/~1Msymbolization/1Msymbolize/~4DSGsymbology/1+symlink/1MS4DGsymmetric/~5symmetrical/~5Ysymmetry/~1SM@@ -48336,6 +48356,7 @@ tool/~14ADGStool'stoolbar/~1SMtoolbox/~1MS+toolchain/1MStoolkit/~1toolless/5toolmaker/1MS@@ -50287,7 +50308,7 @@ venation/1Mvend/41DGSvendetta/~1SMvendible/51-vendor/~14MS+vendor/~14MSDGveneer/14MDGSvenerability/1Mvenerable/~5@@ -50728,6 +50749,7 @@ voracious/5PYvoraciousness/1Mvoracity/1Mvortex/~14MS+vortices/9votary/51SMvote/~14GVDSvote's@@ -52257,6 +52279,7 @@ DNS/2SM # domain name systemDOM/1SM # document object modelDRM/1M # digital rights managementDSL/1SM # domain-specific language+DX/1M # developer experienceDeepMind/2MDevOps/SMDirectX/2M@@ -52271,6 +52294,7 @@ Erdoğan/2M # surname, Turkish politicianEthereum/2M # digital currencyEvo/2MS # car modelExpedia/2M+FAT32/1M # file systemFIDO/12SMFIFA/1M # football/soccer associationFPGA/1SM # field-programmable gate array@@ -52313,6 +52337,7 @@ ISA/12MS # instruction set architecture; industry standard architectuIntelliJ/SMIntelliSense/2MJNI/2M # Java Native Interface+JS/1M # JavaScriptJSDoc/SMJSON/2M # data formatJVM/SM # Java virtual machine@@ -52332,6 +52357,7 @@ Kubernetes/2SMLADARLEGO/1SM # official trademark form of LegoLIDAR/1 # FIXME! elsewhere we have LiDAR+LLM/1MS # large language modelLLVM/1M # compiler systemLSP/1MS # language server protocolLTS/1SM@@ -52476,6 +52502,7 @@ Typst/SMUDP/12SM # internet protocolULA/1MS # uncommitted logic arrayURI/1SM # uniform resource identifier+UX/1M # user experienceVAG/2M # car companyVARCHAR/1MSVCS/1M # version control system@@ -52495,6 +52522,7 @@ WAL/21SMWASI/MSWASM/MS # see WebAssemblyWD40/1M+WIP/1M # work in progressWSL/M2 # windows subsystem for linuxWaymo/2MWebAssembly/M # see WASM@@ -52551,6 +52579,7 @@ olds/~ # common in phrasing such as "twenty year olds"pandoc/SM # !! please check and comment !! elsewhere we have Pandocpre/~+14 # !! please check and comment !! dictionaries only list prefix pre-raytracer/1 # dictionaries prefer: ray tracer+roadmap/1MS # overtook "road map" c. 2000 but not in dictionaries yetroyale/~15SM # !! please check and comment !! dictionaries only list noun sense type of custards.t./~ # !! please check and comment !!scatterplot/14SMG # dictionaries prefer: scatter plot@@ -52609,16 +52638,21 @@ CD-ROM/1MScentre-left/5!@_centre-right/5!@_clear-sighted/5+closed circuit/1MS+closed-circuit/5color code/14MDSG<color coded/5<colour code/14MDSG!@_colour coded/5!@_command line/1MS+company-wide # in Cambridge and OED dictionariescost cutting/1Mcost-effective/5cotter pin/1MScross section/1MScross-threaded/5+cul-de-sac/1MS+culs-de-sac/9custom-built/5custom-made/5cut scene/1MS@@ -52637,6 +52671,7 @@ dire wolves/9door to door/jdoor-to-door/Sdouble-decker/5+e-book/1MSeasy peasy/5editor in chief/1end user/1MS@@ -52651,6 +52686,7 @@ fact-checking/1Mfail-safe/1MS5far right/1MSfar-right/5+fast track/1MS4DGfeature-length/5first-hand/jfirst person/1M@@ -52667,6 +52703,8 @@ full on/5jfull-on/5jfull-scale/5full-time/5j+go around/4+go-around/1MSgold-plated/5gray wolf/1M<gray wolves/9<@@ -52749,6 +52787,7 @@ low-income/5low-level/5low-maintenance/5low-profile/5+low-quality/5lower-income/5made up/4made-up/5@@ -52760,6 +52799,7 @@ Mar-a-Lago/2MMercedes-Benz/2Mmiddle-sized/5mind-blowing/5+mind-boggling/5Y!@_mind game/1MSmock up/4mock-up/1MS@@ -52777,6 +52817,7 @@ object-oriented/5odd-numbered/5of course/joff-limits/5+off-ramp/1MSoff-road/1MSoff-roader/1MSoff-roading/1M@@ -52827,6 +52868,7 @@ red wolf/1Mred wolves/9right-hand/5right-wing/5+road map/1MS # standard in all dictionaries but overtaken by "roadmap" c. 2000rock face/1MSrun-up/1MSsame sex/1M@@ -52887,6 +52929,7 @@ thought-out/5thought-provoking/5three-quarters/1time-consuming/5Y+time frame/1MStime-honored/5<time-honoured/5!@_tit for tat/1@@ -52907,6 +52950,8 @@ uh-huhuh-ohun-American/5user-friendly/5+UTF-16/1M+UTF-32/1MUTF-8/1Mvoice-over/1MSvon Neumann/2@@ -52920,10 +52965,12 @@ web dev/1MSweb page/~1SMwelch plug/1SMwell-adjusted/5+well-established/5well-known/5well-made/5well-received/5well-respected/5+well-timed/5well-trodden/5well-used/5Wi-Fi/1Mdiff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rsindex 397dac740..6458a8446 100644--- a/harper-core/src/linting/adjective_of_a.rs+++ b/harper-core/src/linting/adjective_of_a.rs@@ -43,6 +43,7 @@ const FALSE_POSITIVES: &[&str] = &["multiple","one","part",+ "perspective","potential","precision","red",@@ -54,6 +55,7 @@ const FALSE_POSITIVES: &[&str] = &["something","sound","top",+ "waste",];fn is_false_positive(chars: &[char]) -> bool {@@ -568,4 +570,13 @@ mod tests {0,);}++ #[test]+ fn dont_flag_perspective() {+ assert_lint_count(+ "I always assess software by looking at it from the perspective of a new user.",+ AdjectiveOfA,+ 0,+ );+ }}diff --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 a9cecea13..76aa4fe51 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@@ -2933,9 +2933,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: “Ham”- - Replace with: “He”+ - Replace with: “H'm”+ - Replace with: “Ha”+ - Replace with: “Hem”diff --git a/harper-core/tests/text/linters/Computer science.snap.yml b/harper-core/tests/text/linters/Computer science.snap.ymlindex c3d5b47ba..aa021a465 100644--- a/harper-core/tests/text/linters/Computer science.snap.yml+++ b/harper-core/tests/text/linters/Computer science.snap.yml@@ -664,9 +664,9 @@ Message: |182 | Newell and Herbert A. Simon argued in 1975,| ^~ Did you mean to spell `A.` this way?Suggest:- - Replace with: “Ax”- - Replace with: “A”+ - Replace with: “Av”- Replace with: “Ab”+ - Replace with: “Ac”@@ -795,7 +795,7 @@ Message: |216 | that they are theory, abstraction (modeling), and design. Amnon H. Eden| ^~ Did you mean to spell `H.` this way?Suggest:- - Replace with: “Hi”+ - Replace with: “Hp”- Replace with: “H”- Replace with: “He”@@ -1010,8 +1010,8 @@ Message: || ^~ Did you mean to spell `R.` this way?Suggest:- Replace with: “Rm”- - Replace with: “R”- Replace with: “Re”+ - Replace with: “RC”@@ -1021,8 +1021,8 @@ Message: || ^~ Did you mean to spell `P.` this way?Suggest:- Replace with: “Pp”- - Replace with: “Pg”- - Replace with: “Pi”+ - Replace with: “P”+ - Replace with: “Pa”diff --git a/harper-core/tests/text/linters/Difficult sentences.snap.yml b/harper-core/tests/text/linters/Difficult sentences.snap.ymlindex 9164a8ea2..adb4ad1b5 100644--- a/harper-core/tests/text/linters/Difficult sentences.snap.yml+++ b/harper-core/tests/text/linters/Difficult sentences.snap.yml@@ -281,7 +281,7 @@ Message: |Suggest:- Replace with: “Pro”- Replace with: “P”- - Replace with: “Pa”+ - Replace with: “Par”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 57b515246..df821e99f 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@@ -29,8 +29,8 @@ Message: || ^~ Did you mean to spell `E.` this way?Suggest:- Replace with: “E”- - Replace with: “Ea”- - Replace with: “Ed”+ - Replace with: “Es”+ - Replace with: “EC”diff --git a/harper-core/tests/text/linters/The Constitution of the United States.snap.yml b/harper-core/tests/text/linters/The Constitution of the United States.snap.ymlindex 8a1dfdac6..3a39f871a 100644--- a/harper-core/tests/text/linters/The Constitution of the United States.snap.yml+++ b/harper-core/tests/text/linters/The Constitution of the United States.snap.yml@@ -39,7 +39,7 @@ Message: |11 | ## Article. I.| ^~ Did you mean to spell `I.` this way?Suggest:- - Replace with: “Ir”+ - Replace with: “Id”- Replace with: “IC”- Replace with: “IE”diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex 2dbafde46..5a98cc53e 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -3,7 +3,7 @@ Message: |3 | BY F. SCOTT FITZGERALD| ^~ Did you mean to spell `F.` this way?Suggest:- - Replace with: “Fa”+ - Replace with: “F”- Replace with: “Ff”- Replace with: “Fr”@@ -875,7 +875,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -909,7 +909,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -1000,7 +1000,7 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “Bf”+ - Replace with: “Bi”- Replace with: “Bk”@@ -1103,9 +1103,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: “Dc”- Replace with: “Dd”- - Replace with: “Do”+ - Replace with: “D”+ - Replace with: “Db”@@ -1274,7 +1274,7 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “Bf”+ - Replace with: “Bi”- Replace with: “Bk”@@ -2036,7 +2036,7 @@ Message: |Suggest:- Replace with: “W12's”- Replace with: “WAL's”- - Replace with: “WNW's”+ - Replace with: “WIP's”@@ -2287,8 +2287,8 @@ Message: || ^~ Did you mean to spell `R.` this way?Suggest:- Replace with: “Rm”- - Replace with: “R”- Replace with: “Re”+ - Replace with: “RC”@@ -2298,8 +2298,8 @@ Message: || ^~ Did you mean to spell `P.` this way?Suggest:- Replace with: “Pp”- - Replace with: “Pg”- - Replace with: “Pi”+ - Replace with: “P”+ - Replace with: “Pa”@@ -2363,8 +2363,8 @@ Message: || ^~ Did you mean to spell `S.` this way?Suggest:- Replace with: “Sf”+ - Replace with: “Sh”- Replace with: “So”- - Replace with: “Sq”@@ -2374,7 +2374,7 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “Bf”+ - Replace with: “Bi”- Replace with: “Bk”@@ -2385,9 +2385,9 @@ Message: |1863 | A. Flink, and the Hammerheads, and Beluga the tobacco importer, and Beluga’s| ^~ Did you mean to spell `A.` this way?Suggest:- - Replace with: “Ax”- - Replace with: “A”+ - Replace with: “Av”- Replace with: “Ab”+ - Replace with: “Ac”@@ -2466,8 +2466,8 @@ Message: || ^~ Did you mean to spell `S.` this way?Suggest:- Replace with: “Sf”+ - Replace with: “Sh”- Replace with: “So”- - Replace with: “Sq”@@ -2509,9 +2509,9 @@ Message: |1870 | Catlips and the Bembergs and G. Earl Muldoon, brother to that Muldoon who| ^~ Did you mean to spell `G.` this way?Suggest:- - Replace with: “Gt”- - Replace with: “G”+ - Replace with: “Go”- Replace with: “Gr”+ - Replace with: “Gs”@@ -2546,7 +2546,7 @@ Message: |Suggest:- Replace with: “Dab”- Replace with: “Dad”- - Replace with: “Dag”+ - Replace with: “Dam”@@ -2591,7 +2591,7 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “Bf”+ - Replace with: “Bi”- Replace with: “Bk”@@ -2602,7 +2602,7 @@ Message: || ^~ Did you mean to spell `De` this way?1873 | gamble, and when Ferret wandered into the garden it meant he was cleaned out andSuggest:- - Replace with: “Dc”+ - Replace with: “Db”- Replace with: “Dd”- Replace with: “Deb”@@ -2755,8 +2755,8 @@ Message: || ^~ Did you mean to spell `S.` this way?Suggest:- Replace with: “Sf”+ - Replace with: “Sh”- Replace with: “So”- - Replace with: “Sq”@@ -2812,9 +2812,9 @@ Message: |1882 | and Henry L. Palmetto, who killed himself by jumping in front of a subway train| ^~ Did you mean to spell `L.` this way?Suggest:- - Replace with: “Lg”+ - Replace with: “Lb”+ - Replace with: “L”- Replace with: “La”- - Replace with: “LC”@@ -2935,8 +2935,8 @@ Message: || ^~ Did you mean to spell `P.` this way?Suggest:- Replace with: “Pp”- - Replace with: “Pg”- - Replace with: “Pi”+ - Replace with: “P”+ - Replace with: “Pa”@@ -4957,7 +4957,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -5035,7 +5035,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -6239,9 +6239,9 @@ Message: |5122 | ghost of a superior “Hm!”| ^~ Did you mean to spell `Hm` this way?Suggest:- - Replace with: “H”- - Replace with: “Ham”- - Replace with: “He”+ - Replace with: “H'm”+ - Replace with: “Ha”+ - Replace with: “Hem”@@ -6301,7 +6301,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -6739,7 +6739,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: “Jg”+ - Replace with: “Jr”- Replace with: “J”- Replace with: “JD”@@ -6768,7 +6768,7 @@ Message: || ^~ Did you mean to spell `B.` this way?Suggest:- Replace with: “Bu”- - Replace with: “Bf”+ - Replace with: “Bi”- Replace with: “Bk”@@ -6778,7 +6778,7 @@ Message: |5455 | and I’m sort of helpless without them. My address is care of B. F.———”| ^~ Did you mean to spell `F.` this way?Suggest:- - Replace with: “Fa”+ - Replace with: “F”- Replace with: “Ff”- Replace with: “Fr”@@ -7171,7 +7171,7 @@ Message: |Suggest:- Replace with: “Ea”- Replace with: “Ed”- - Replace with: “Eel”+ - Replace with: “En”