Skip to content

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.json
index 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": true
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 99b7d7d61..4bb3e4f8f 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -2130,6 +2130,7 @@ Chișinău/Og
Chisinau/Og
Chittagong/Og # old name of Chattogram
Chivas/g
+Chloë/Og
Chloe/Og
Choctaw/ONSgJ
Chomsky/Og
@@ -11833,6 +11834,7 @@ adware/Nmg
adze/NSgV
aegis/~Ng
aeon/NSg!_₹
+# æon
aerate/VdSGn
aeration/Ng
aerator/NSg
@@ -13023,6 +13025,8 @@ appurtenant/JN
apricot/NwgSJ
apron/~NgSV
apropos/JPN
+# à propos
+# àpropos
apse/~NSg
apt/~JY^pNi
apter/Jc
@@ -14641,10 +14645,10 @@ besotting/V6
besought/VtT
bespangle/VdSG
bespatter/VGSd
-bespeak/VGSN
+bespeak/VbGSN
bespectacled/J
-bespoke/~JV
-bespoken/VJ
+bespoke/~JVt
+bespoken/VTJ
best/~JuNSgVGdA
bestial/JYN
bestiality/Ng
@@ -19365,6 +19369,7 @@ coop/~NgSVd>GZ
cooper/~NgVdG
cooperage/Ng
cooperate/~VdSGnv
+# coöperate
cooperation/~Nmg
cooperative/~JYpNgS
cooperativeness/Ng
@@ -19536,6 +19541,7 @@ corsage/NgS
corsair/~NgS
corset/NSgVGd
cortege/NgS
+# cortège
cortex/~NgS
cortical/~J
cortices/9
@@ -19912,6 +19918,7 @@ creativity/~Ng
creator/~NgS
creature/~NSg
creche/NSg
+# crèche
cred/N
credence/~NmgV
credential/JNSgVGd
@@ -19943,6 +19950,9 @@ crematoria/N9
crematorium/~N0gS
crematory/JNSg
creme/~JNSgV
+# crème
+# crème brulée
+# crème brûlée
crenelate/VGdSXn
crenelation/Ng
crenellate/VdSGnX!@_₹
@@ -20467,6 +20477,7 @@ daddy/~NSgVJ
dado/~N0gV
dadoes/N9V
daemon/~NgS
+# dæmon
daemonic/J
daffiness/Ng
daffodil/~NSgJ
@@ -20493,6 +20504,7 @@ dairymen/9
dairywoman/Ng
dairywomen/9
dais/~NgS
+# daïs
daisy/~NSg
dale/~NSg
dalliance/NgS
@@ -20788,6 +20800,7 @@ decompiler/NgS
decongestant/NwgS
deconstructionism/Nmg
decor/NgS
+# décor
decorate/~VGdSrnv
decorating/~V6Ng
decoration/~Nwgr
@@ -21188,6 +21201,7 @@ derogatorily/Ry
derogatory/~JN
derrick/~NSgV
derriere/NSg
+# derrière
derringer/NSg
derv/N
dervish/NgS
@@ -23295,7 +23309,7 @@ emulsification/Nmg
emulsifier/~NgS
emulsify/Vd>SGnZ
emulsion/~NwgSV
-en/NSgP(
+en/NSg(
en masse
enable/~Vd>SGZ
enabler/NgS
@@ -24446,6 +24460,7 @@ fabricate/VdSGnX
fabrication/~Nmg
fabricator/NSg
fabulous/~JY
+façade/NSg
facade/~NSg
face/~NSVdGre
face off/V
@@ -24922,6 +24937,7 @@ fez/~Ng
fezzes/N
fiance/NgVe
fiancee/NgS
+# fiancée
fiances/N
fiasco/~Ng
fiascoes/N0
@@ -25057,6 +25073,8 @@ filtrate/NSVGdin
filtrate's
filtration/~NwSgi
fin/~NSgV>
+# fin de siècle
+# fin-de-siècle
finagle/Vd>SGZ
finagler/Ng
final/~NSgJYV
@@ -25254,6 +25272,7 @@ flakiness/Nmg
flaky/J^>p
flamage/N
flambe/JNgSV
+# flambé
flambeed/VtT
flambeing/V6
flamboyance/Nmg
@@ -25956,6 +25975,7 @@ frankincense/Ng
frankness/Ng
frantic/~JNQ
frappe/NSg
+# frappé
frat/NgS
fraternal/~JYN
fraternisation/Ng!_₹
@@ -29092,7 +29112,7 @@ hotness/Nmg
hotplate/NSg
hotpot/NwgS
hots/NgVh
-hotshot/JNgSV
+hotshot/JNgS
hotspot/NgS
hotted/VtT
hotter/~JcNV
@@ -31119,6 +31139,7 @@ jailbreak/NSgVG
jailbroken/VJ
jailer/Ng
jailhouse/~NS
+jalapeño/NgS
jalapeno/NgS
jalopy/NSg
jalousie/NgS
@@ -33348,7 +33369,7 @@ mailing/~NwgV
maillot/NSg
mailman/N0g
mailmen/N9
-mailshot/NSV
+mailshot/NSVb
maim/VdGSN
main/~JYVSNg
mainboard/NSg
@@ -34060,6 +34081,8 @@ men/~N9g
menace/~NgSVGd
menacing/~JYV6N
menage/NgS
+# ménage à trois
+# ménage-à-trois
menagerie/~NgS
mend/~Vd>GSNgZ
mendacious/JY
@@ -34669,6 +34692,8 @@ misdo/VGz
misdoes/Vh
misdoing/NgV
misdone/VT
+# mise en scène
+# mise-en-scène
miser/NSgY
miserable/J
miserableness/Nmg
@@ -34760,9 +34785,9 @@ misspeak/VGS
misspell/VGdSz
misspelling/~NwgSV6
misspend/VGS
-misspent/JV
-misspoke/V
-misspoken/V
+misspent/JVtT
+misspoke/Vt
+misspoken/VT
misstate/VGdSL
misstatement/NSg
misstep/NgSV
@@ -35660,6 +35685,7 @@ nail biter/NgS
nailbrush/NgSV
naïve/~JN
naive/~J>Y^N
+naïveté/Nmg
naivete/Nmg
naivety/Nmg
naked/~JYpV
@@ -37574,12 +37600,12 @@ outsider/~NgS
outsize/JVSd
outskirt/NgSV
outsmart/VGdS
-outsold/V
+outsold/VtT
outsource/VdSG
outsourcing/~VNg
outspend/VSG
-outspent/VJ
-outspoken/~JYpV
+outspent/VtTJ
+outspoken/~JYpVT
outspokenness/Nmg
outspread/VGSJ
outstanding/~VJY
@@ -37839,7 +37865,7 @@ overshadow/VdSG
overshare/VdGSN
overshoe/NgS
overshoot/~NSVG
-overshot/VJN
+overshot/VtTJN
oversight/~NSgV
oversimple/J
oversimplification/NwgS
@@ -37847,14 +37873,14 @@ oversimplify/VdSGnX
oversize/JVdGSN
oversized/J
oversleep/VGS
-overslept/V
-oversold/J
+overslept/VtT
+oversold/JtT
overspecialisation/Nmg!_₹
overspecialise/VGdS!_₹
overspecialization/Nmg
overspecialize/VGdS
overspend/VbGSN
-overspent/VJ
+overspent/VtTJ
overspill/NgSVdG
overspray/NmSgVdG
overspread/VGS
@@ -40253,7 +40279,7 @@ potluck/NgSV
potpie/NSg
potpourri/NwSg
potsherd/NSg
-potshot/NgSV
+potshot/NgSVb
pottage/Ng
potted/VtTJ
potter/~NSgVGd
@@ -41055,6 +41081,7 @@ protectiveness/Ng
protector/~NgS
protectorate/~NgS
protege/NSg
+# protégé
protegee/NS
protein/~NwSg
protest/NwgS
@@ -42292,6 +42319,7 @@ reek/~NgSVGd
reel/~NSVGdU
reel's
reelect/VdSG
+# reëlect
reentrant/J
reeve/~NVG
reexecute/VSdG
@@ -42784,7 +42812,7 @@ reskilling/V6
reskin/VSN
reskinned/VtTJ
reskinning/V6JN
-resold/V
+resold/VtT
resole/VdSG
resolute/~JYpN
resoluteness/Nmg
@@ -43300,6 +43328,7 @@ rollout/NgS
rollover/~NSgV
romaine/~NgS
roman/~JNg
+# roman à clef
romance/~NgSVGd>Z
romancer/Ng
romanisation/NSg!_₹
@@ -44225,10 +44254,10 @@ screech/NgSVGd
screechy/J^>
screed/NSVJ
screen/~NSgVdGz
-screening/~NgV6
+screening/~NwgSV6
screenplay/~NSgV
screensaver/NSg
-screenshot/~NSV
+screenshot/~NSVb
screenwriter/~NSg
screenwriting/~Ng
screw/~NSVdGU
@@ -44240,7 +44269,7 @@ screwworm/NSg
screwy/J>^p
scribal/J
scribble/VGd>SNgZ
-scribbler/Ng
+scribbler/NgS
scribe/~NSVKi
scribe's
scrim/NgSV
@@ -45795,7 +45824,7 @@ slimness/Nmg
slimy/J>^pN
sling/~VGSNg
slingback/NS
-slingshot/~NSgV
+slingshot/~NSgVb
slink/VGSNJ
slinky/J>^
slip/~VSNg
@@ -46410,6 +46439,7 @@ soundproofing/~VNmg
soundscape/NSgV
soundtrack/~NSgV
soup/~NwgSVdG
+coupçon/NgS
soupcon/NgS
soupy/J>^
sour/~JY^>pNgSVdG
@@ -49242,6 +49272,7 @@ them/~Ia3o:g # I~pronoun a~personal 3~person :~plural o~object (g=them's
thematic/~JNQ
thematically/Ry
theme/~NSgVdG
+themself/Ia3F. # I~pronoun a~personal 3~person .~singular F~reflexive
themselves/~Ia3F: # I~pronoun a~personal 3~person :~plural F~reflexive
then/~RJNgC
thence/~
@@ -51128,9 +51159,9 @@ undersell/VGS
underserve/VdSG
undersexed/J
undershirt/NSg
-undershoot/VGSN
+undershoot/VbGSN
undershorts/Ng
-undershot/VJN
+undershot/VtTJN
underside/~NgS
undersign/VdGS
undersigned/JNg
@@ -53340,7 +53371,7 @@ womble/NSV
women/~N9g
womenfolk/N9Sg
womenfolks/9g
-won/~VtTNg09 # singular and plural
+won/~VtTNg09 # singular and plural
won't/VA
wonder/~NwgSVdGL
wonderful/~JYp
@@ -53931,7 +53962,6 @@ BERT/Og # Bidirectional Encoder Representations from Transformers
BLM/Ng
BOM/NSg # Byte Order Mark
BPE/NgS # Byte Pair Encoding
-BRICS/ # intergovernmental organization
BSON/Ng # binary JSON
BSP/NSg # data structure
BYD/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çai
agnatic/J # Most often in the phrase "agnatic primogeniture"
+# après ski
+# après-ski
APAC/gO # Acronym for Asia-Pacific
archipelagic/J # As found in the phrase "Archipelagic state" in the "United Nations Convention on the Law of the Sea"
+# bric-à-brac
chorded/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/Nmg
sortition/Nmg # Political science: a method of appointment to office by random draw
subvocalization/Nwg # phonetics
supervenience/Nmg # From emergentist ontology
+# tête à tête
+# tête-à-tête
trimeter/NgS # poetry
trimetre/NgS!@_₹ # poetry
trimetric/J
diff --git a/harper-core/src/expr/reflexive_pronoun.rs b/harper-core/src/expr/reflexive_pronoun.rs
index 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.yml
index 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.md
index 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