Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: dictionary curation (#4248)
Andrew Dunbar34575ef3f4ec
diff --git a/harper-core/annotations.json b/harper-core/annotations.jsonindex 82a2b6696..420b7b820 100644--- a/harper-core/annotations.json+++ b/harper-core/annotations.json@@ -666,7 +666,7 @@},"x": {"#": "swear word property",- "//": "'xxx' used to be a placeholder for swear words",+ "//": "mnemonic: 'xxx' used to be a placeholder for swear words","propagate": true,"metadata": {"swear": truediff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 99b7d7d61..4bb3e4f8f 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -2130,6 +2130,7 @@ Chișinău/OgChisinau/OgChittagong/Og # old name of ChattogramChivas/g+Chloë/OgChloe/OgChoctaw/ONSgJChomsky/Og@@ -11833,6 +11834,7 @@ adware/Nmgadze/NSgVaegis/~Ngaeon/NSg!_₹+# æonaerate/VdSGnaeration/Ngaerator/NSg@@ -13023,6 +13025,8 @@ appurtenant/JNapricot/NwgSJapron/~NgSVapropos/JPN+# à propos+# àproposapse/~NSgapt/~JY^pNiapter/Jc@@ -14641,10 +14645,10 @@ besotting/V6besought/VtTbespangle/VdSGbespatter/VGSd-bespeak/VGSN+bespeak/VbGSNbespectacled/J-bespoke/~JV-bespoken/VJ+bespoke/~JVt+bespoken/VTJbest/~JuNSgVGdAbestial/JYNbestiality/Ng@@ -19365,6 +19369,7 @@ coop/~NgSVd>GZcooper/~NgVdGcooperage/Ngcooperate/~VdSGnv+# coöperatecooperation/~Nmgcooperative/~JYpNgScooperativeness/Ng@@ -19536,6 +19541,7 @@ corsage/NgScorsair/~NgScorset/NSgVGdcortege/NgS+# cortègecortex/~NgScortical/~Jcortices/9@@ -19912,6 +19918,7 @@ creativity/~Ngcreator/~NgScreature/~NSgcreche/NSg+# crèchecred/Ncredence/~NmgVcredential/JNSgVGd@@ -19943,6 +19950,9 @@ crematoria/N9crematorium/~N0gScrematory/JNSgcreme/~JNSgV+# crème+# crème brulée+# crème brûléecrenelate/VGdSXncrenelation/Ngcrenellate/VdSGnX!@_₹@@ -20467,6 +20477,7 @@ daddy/~NSgVJdado/~N0gVdadoes/N9Vdaemon/~NgS+# dæmondaemonic/Jdaffiness/Ngdaffodil/~NSgJ@@ -20493,6 +20504,7 @@ dairymen/9dairywoman/Ngdairywomen/9dais/~NgS+# daïsdaisy/~NSgdale/~NSgdalliance/NgS@@ -20788,6 +20800,7 @@ decompiler/NgSdecongestant/NwgSdeconstructionism/Nmgdecor/NgS+# décordecorate/~VGdSrnvdecorating/~V6Ngdecoration/~Nwgr@@ -21188,6 +21201,7 @@ derogatorily/Ryderogatory/~JNderrick/~NSgVderriere/NSg+# derrièrederringer/NSgderv/Ndervish/NgS@@ -23295,7 +23309,7 @@ emulsification/Nmgemulsifier/~NgSemulsify/Vd>SGnZemulsion/~NwgSV-en/NSgP(+en/NSg(en masseenable/~Vd>SGZenabler/NgS@@ -24446,6 +24460,7 @@ fabricate/VdSGnXfabrication/~Nmgfabricator/NSgfabulous/~JY+façade/NSgfacade/~NSgface/~NSVdGreface off/V@@ -24922,6 +24937,7 @@ fez/~Ngfezzes/Nfiance/NgVefiancee/NgS+# fiancéefiances/Nfiasco/~Ngfiascoes/N0@@ -25057,6 +25073,8 @@ filtrate/NSVGdinfiltrate'sfiltration/~NwSgifin/~NSgV>+# fin de siècle+# fin-de-sièclefinagle/Vd>SGZfinagler/Ngfinal/~NSgJYV@@ -25254,6 +25272,7 @@ flakiness/Nmgflaky/J^>pflamage/Nflambe/JNgSV+# flambéflambeed/VtTflambeing/V6flamboyance/Nmg@@ -25956,6 +25975,7 @@ frankincense/Ngfrankness/Ngfrantic/~JNQfrappe/NSg+# frappéfrat/NgSfraternal/~JYNfraternisation/Ng!_₹@@ -29092,7 +29112,7 @@ hotness/Nmghotplate/NSghotpot/NwgShots/NgVh-hotshot/JNgSV+hotshot/JNgShotspot/NgShotted/VtThotter/~JcNV@@ -31119,6 +31139,7 @@ jailbreak/NSgVGjailbroken/VJjailer/Ngjailhouse/~NS+jalapeño/NgSjalapeno/NgSjalopy/NSgjalousie/NgS@@ -33348,7 +33369,7 @@ mailing/~NwgVmaillot/NSgmailman/N0gmailmen/N9-mailshot/NSV+mailshot/NSVbmaim/VdGSNmain/~JYVSNgmainboard/NSg@@ -34060,6 +34081,8 @@ men/~N9gmenace/~NgSVGdmenacing/~JYV6Nmenage/NgS+# ménage à trois+# ménage-à-troismenagerie/~NgSmend/~Vd>GSNgZmendacious/JY@@ -34669,6 +34692,8 @@ misdo/VGzmisdoes/Vhmisdoing/NgVmisdone/VT+# mise en scène+# mise-en-scènemiser/NSgYmiserable/Jmiserableness/Nmg@@ -34760,9 +34785,9 @@ misspeak/VGSmisspell/VGdSzmisspelling/~NwgSV6misspend/VGS-misspent/JV-misspoke/V-misspoken/V+misspent/JVtT+misspoke/Vt+misspoken/VTmisstate/VGdSLmisstatement/NSgmisstep/NgSV@@ -35660,6 +35685,7 @@ nail biter/NgSnailbrush/NgSVnaïve/~JNnaive/~J>Y^N+naïveté/Nmgnaivete/Nmgnaivety/Nmgnaked/~JYpV@@ -37574,12 +37600,12 @@ outsider/~NgSoutsize/JVSdoutskirt/NgSVoutsmart/VGdS-outsold/V+outsold/VtToutsource/VdSGoutsourcing/~VNgoutspend/VSG-outspent/VJ-outspoken/~JYpV+outspent/VtTJ+outspoken/~JYpVToutspokenness/Nmgoutspread/VGSJoutstanding/~VJY@@ -37839,7 +37865,7 @@ overshadow/VdSGovershare/VdGSNovershoe/NgSovershoot/~NSVG-overshot/VJN+overshot/VtTJNoversight/~NSgVoversimple/Joversimplification/NwgS@@ -37847,14 +37873,14 @@ oversimplify/VdSGnXoversize/JVdGSNoversized/Joversleep/VGS-overslept/V-oversold/J+overslept/VtT+oversold/JtToverspecialisation/Nmg!_₹overspecialise/VGdS!_₹overspecialization/Nmgoverspecialize/VGdSoverspend/VbGSN-overspent/VJ+overspent/VtTJoverspill/NgSVdGoverspray/NmSgVdGoverspread/VGS@@ -40253,7 +40279,7 @@ potluck/NgSVpotpie/NSgpotpourri/NwSgpotsherd/NSg-potshot/NgSV+potshot/NgSVbpottage/Ngpotted/VtTJpotter/~NSgVGd@@ -41055,6 +41081,7 @@ protectiveness/Ngprotector/~NgSprotectorate/~NgSprotege/NSg+# protégéprotegee/NSprotein/~NwSgprotest/NwgS@@ -42292,6 +42319,7 @@ reek/~NgSVGdreel/~NSVGdUreel'sreelect/VdSG+# reëlectreentrant/Jreeve/~NVGreexecute/VSdG@@ -42784,7 +42812,7 @@ reskilling/V6reskin/VSNreskinned/VtTJreskinning/V6JN-resold/V+resold/VtTresole/VdSGresolute/~JYpNresoluteness/Nmg@@ -43300,6 +43328,7 @@ rollout/NgSrollover/~NSgVromaine/~NgSroman/~JNg+# roman à clefromance/~NgSVGd>Zromancer/Ngromanisation/NSg!_₹@@ -44225,10 +44254,10 @@ screech/NgSVGdscreechy/J^>screed/NSVJscreen/~NSgVdGz-screening/~NgV6+screening/~NwgSV6screenplay/~NSgVscreensaver/NSg-screenshot/~NSV+screenshot/~NSVbscreenwriter/~NSgscreenwriting/~Ngscrew/~NSVdGU@@ -44240,7 +44269,7 @@ screwworm/NSgscrewy/J>^pscribal/Jscribble/VGd>SNgZ-scribbler/Ng+scribbler/NgSscribe/~NSVKiscribe'sscrim/NgSV@@ -45795,7 +45824,7 @@ slimness/Nmgslimy/J>^pNsling/~VGSNgslingback/NS-slingshot/~NSgV+slingshot/~NSgVbslink/VGSNJslinky/J>^slip/~VSNg@@ -46410,6 +46439,7 @@ soundproofing/~VNmgsoundscape/NSgVsoundtrack/~NSgVsoup/~NwgSVdG+coupçon/NgSsoupcon/NgSsoupy/J>^sour/~JY^>pNgSVdG@@ -49242,6 +49272,7 @@ them/~Ia3o:g # I~pronoun a~personal 3~person :~plural o~object (g=them'sthematic/~JNQthematically/Rytheme/~NSgVdG+themself/Ia3F. # I~pronoun a~personal 3~person .~singular F~reflexivethemselves/~Ia3F: # I~pronoun a~personal 3~person :~plural F~reflexivethen/~RJNgCthence/~@@ -51128,9 +51159,9 @@ undersell/VGSunderserve/VdSGundersexed/Jundershirt/NSg-undershoot/VGSN+undershoot/VbGSNundershorts/Ng-undershot/VJN+undershot/VtTJNunderside/~NgSundersign/VdGSundersigned/JNg@@ -53340,7 +53371,7 @@ womble/NSVwomen/~N9gwomenfolk/N9Sgwomenfolks/9g-won/~VtTNg09 # singular and plural+won/~VtTNg09 # singular and pluralwon't/VAwonder/~NwgSVdGLwonderful/~JYp@@ -53931,7 +53962,6 @@ BERT/Og # Bidirectional Encoder Representations from TransformersBLM/NgBOM/NSg # Byte Order MarkBPE/NgS # Byte Pair Encoding-BRICS/ # intergovernmental organizationBSON/Ng # binary JSONBSP/NSg # data structureBYD/OgS # Chinese automobile manufacturer@@ -54698,9 +54728,16 @@ z-buffer/NgS# And they will be reviewed# Words added using the `just addnoun` command will be added here+à la+à la carte+à la mode+# açaiagnatic/J # Most often in the phrase "agnatic primogeniture"+# après ski+# après-skiAPAC/gO # Acronym for Asia-Pacificarchipelagic/J # As found in the phrase "Archipelagic state" in the "United Nations Convention on the Law of the Sea"+# bric-à-bracchorded/J # music: As refers to "chorded instruments"cognatic/J # As with "agnatic"comital/J # Adjective version of the noble rank "count/countess/earl"@@ -54736,6 +54773,8 @@ retrocomputing/Nmgsortition/Nmg # Political science: a method of appointment to office by random drawsubvocalization/Nwg # phoneticssupervenience/Nmg # From emergentist ontology+# tête à tête+# tête-à-têtetrimeter/NgS # poetrytrimetre/NgS!@_₹ # poetrytrimetric/Jdiff --git a/harper-core/src/expr/reflexive_pronoun.rs b/harper-core/src/expr/reflexive_pronoun.rsindex b3b54ab04..b518b2fe5 100644--- a/harper-core/src/expr/reflexive_pronoun.rs+++ b/harper-core/src/expr/reflexive_pronoun.rs@@ -6,13 +6,7 @@ use crate::{// These are considered ungrammatical, or are at least not in `dictionary.dict` but are commonly used anyway.// The tests below check if this changes so we can update this `Expr`-const BAD_REFLEXIVE_PRONOUNS: &[&str] = &[- "hisself",- "oneselves",- "theirself",- "theirselves",- "themself",-];+const BAD_REFLEXIVE_PRONOUNS: &[&str] = &["hisself", "oneselves", "theirself", "theirselves"];/// Matches reflexive pronouns with configurable strictness.///diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex 9153837dd..385affd54 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -3681,18 +3681,6 @@ Suggest:-Lint: Spelling (63 priority)-Message: |- 2467 | We passed a barrier of dark trees, and then the façade of Fifty-ninth Street, a- | ^~~~~~ Did you mean to spell `façade` this way?- 2468 | block of delicate pale light, beamed down into the park. Unlike Gatsby and Tom-Suggest:- - Replace with: “facade”- - Replace with: “fade”- - Replace with: “facades”---Lint: Spelling (63 priority)Message: |2492 | some of the rooms. Let’s go to Coney Island, old sport. In my car.”diff --git a/harper-core/tests/text/tagged/The Great Gatsby.md b/harper-core/tests/text/tagged/The Great Gatsby.mdindex c73938e22..15870c10e 100644--- a/harper-core/tests/text/tagged/The Great Gatsby.md+++ b/harper-core/tests/text/tagged/The Great Gatsby.md@@ -4931,7 +4931,7 @@>#> We passed a barrier of dark trees , and then the façade of Fifty - ninth Street , a-# IPl+ VP/J D/P NSg/VB P NSg/VB/J+ NPl/V3+ . VB/C NSg/J/R/C D ? P NSg . NSg/VB/J NSg/VB/J . D/P+# IPl+ VP/J D/P NSg/VB P NSg/VB/J+ NPl/V3+ . VB/C NSg/J/R/C D NSg P NSg . NSg/VB/J NSg/VB/J . D/P> block of delicate pale light , beamed down into the park . Unlike Gatsby and Tom# NSg/VB P NSg/J+ NSg/VB/J+ N🅪Sg/VB/J+ . VP/J N🅪Sg/VB/J/P P D NPr/VB+ . NSg/VB/J/P NPr VB/C NPr/VB+> Buchanan , I had no girl whose disembodied face floated along the dark cornices