mirror of
https://github.com/Automattic/harper.git
synced 2025-08-04 18:48:02 +00:00
chore: curate dictionary
Add words, adjust annotations Also added two abbreviation expansions to `phrase_corrections` for `arg` and `args`.
This commit is contained in:
parent
bb84be8310
commit
e10ebf3bd8
2 changed files with 47 additions and 20 deletions
|
@ -13480,6 +13480,7 @@ autoregressive/J
|
|||
autorun/NVGg
|
||||
autostereogram/NgS
|
||||
autosuggestion/N
|
||||
autotagging/NmgS
|
||||
autothysis/Ng
|
||||
autoworker/NgS
|
||||
autumn/~NVSg
|
||||
|
@ -15986,6 +15987,7 @@ byre/NS
|
|||
byroad/NSg
|
||||
bystander/NgS
|
||||
byte/~NgS
|
||||
bytecode/NwgS
|
||||
byway/~NSg
|
||||
byword/NSg
|
||||
byzantine/~JN
|
||||
|
@ -19508,6 +19510,7 @@ craw/NVgS
|
|||
crawdad/NSg
|
||||
crawfish/NgS09 # singular and plural, also has a plural in -s
|
||||
crawl/~VNSgd>ZG
|
||||
crawlable/J
|
||||
crawler/~Ng
|
||||
crawlspace/NSg
|
||||
crawly/JT>Sg
|
||||
|
@ -21092,8 +21095,9 @@ diffidence/Ng
|
|||
diffident/JY
|
||||
diffract/VGSd
|
||||
diffraction/~Ng
|
||||
diffuse/~VJdSYGnvp>
|
||||
diffuse/~VJdSYGnvp
|
||||
diffuseness/Ng
|
||||
diffuser/NgS
|
||||
diffusion/~Ng
|
||||
diffusivity/N
|
||||
dig/~VNSg
|
||||
|
@ -22012,6 +22016,7 @@ droopiness/Ng
|
|||
droopy/JTp>
|
||||
drop/~NVgS
|
||||
dropbox/NgS
|
||||
dropdown/NJSg
|
||||
dropkick/~NVgS
|
||||
droplet/NSg
|
||||
dropout/NSg
|
||||
|
@ -22692,7 +22697,7 @@ embassy/~NSg
|
|||
embattled/JV
|
||||
embed/~VNS
|
||||
embedded/~VJ
|
||||
embedding/~NV
|
||||
embedding/~NSgV
|
||||
embellish/VLGdS>
|
||||
embellishment/NSg
|
||||
ember/~NJSg
|
||||
|
@ -28727,6 +28732,7 @@ hyperinflate/VNGdSn
|
|||
hyperlink/NVGSgd
|
||||
hypermarket/NS
|
||||
hypermedia/Ng
|
||||
hypernetwork/NSg
|
||||
hyperparathyroidism/N
|
||||
hyperplane/N
|
||||
hypersensitive/Jp
|
||||
|
@ -32136,6 +32142,7 @@ loon/~NgS
|
|||
loonie/Ng
|
||||
loony/JN>SgT
|
||||
loop/~NVgdSG
|
||||
loopback/NwgS
|
||||
loophole/~NVgS
|
||||
loopy/J>T
|
||||
loos/~Nn>X
|
||||
|
@ -34406,6 +34413,7 @@ mournfulness/Ng
|
|||
mourning/~VNg
|
||||
mouse/~NVd>SgZG
|
||||
mouseless/J
|
||||
mouseover/NgS
|
||||
mouser/Ng
|
||||
mousetrap/NVSg
|
||||
mousetrapped/V
|
||||
|
@ -36574,6 +36582,7 @@ outmoded/JV
|
|||
outnumber/VdG
|
||||
outnumbers/J
|
||||
outpace/VGdS
|
||||
outpaint/VGdS
|
||||
outpatient/~NJgS
|
||||
outperform/VGSd
|
||||
outplace/VL
|
||||
|
@ -39494,6 +39503,7 @@ preposterous/JY
|
|||
prepped/V
|
||||
prepping/VN
|
||||
preppy/JNT>Sg
|
||||
preprocess/VdSG
|
||||
prepubescence/Ng
|
||||
prepubescent/JNSg
|
||||
prepuce/NgS
|
||||
|
@ -40824,6 +40834,7 @@ rasp/NVGgdS
|
|||
raspberry/~NJVSg
|
||||
raspy/J>T
|
||||
raster/~NV
|
||||
rasterization/NwgS
|
||||
rat/~NVSg
|
||||
ratatouille/Ng
|
||||
ratbag/NS
|
||||
|
@ -49544,6 +49555,7 @@ uncanny/~JNT
|
|||
uncap/VS
|
||||
uncaring/JN
|
||||
uncatalogued/J
|
||||
uncategorized/J
|
||||
unceasing/JY
|
||||
unchangeable/JN
|
||||
uncharacteristic/J
|
||||
|
@ -50095,6 +50107,7 @@ uproarious/JY
|
|||
uproot/VNGSd
|
||||
upsample/SgG
|
||||
upscale/~JVSdG
|
||||
upscaler/NgS
|
||||
upset/~JNVSg
|
||||
upsetting/~VNJ
|
||||
upshot/NSg
|
||||
|
@ -52405,6 +52418,7 @@ EMR/NOSg
|
|||
EPUB/NOgS # e-book format
|
||||
ESLint/Og
|
||||
EV/NSg # electric vehicle
|
||||
EXIF # metadata
|
||||
ElasticSearch/Sg
|
||||
Elon/Og
|
||||
Erdoğan/Og # surname, Turkish politician
|
||||
|
@ -53038,6 +53052,7 @@ pro-democracy/J
|
|||
quid pro quo/Ng
|
||||
quote unquote/JR
|
||||
rack-mounted/J
|
||||
ray casting/Nmg
|
||||
re-enable/VdSG
|
||||
real time/Ng
|
||||
real-time/J
|
||||
|
|
|
@ -191,6 +191,12 @@ pub fn lint_group() -> LintGroup {
|
|||
"Did you mean `been there`?",
|
||||
"Corrects the misspelling `bee there` to the proper phrase `been there`."
|
||||
),
|
||||
"Beforehand" => (
|
||||
["before hand", "before-hand"],
|
||||
["beforehand"],
|
||||
"Prefer the single-word adverb `beforehand`.",
|
||||
"`Beforehand` functions as a fixed adverb meaning ‘in advance’; writing it as two words or with a hyphen is nonstandard and can jar readers."
|
||||
),
|
||||
"BestRegards" => (
|
||||
["beat regards"],
|
||||
["best regards"],
|
||||
|
@ -209,6 +215,12 @@ pub fn lint_group() -> LintGroup {
|
|||
"This word has a more standard, more common synonym.",
|
||||
"Suggests the more standard and common synonym `brutality`."
|
||||
),
|
||||
"BuiltIn" => (
|
||||
["in built", "in-built", "built in"],
|
||||
["built-in"],
|
||||
"Prefer the hyphenated compound `built-in`.",
|
||||
"English convention treats `built-in` as a single, attributive adjective—meaning something integrated from the outset—whereas other forms like `in built` are non-standard and can feel awkward to readers."
|
||||
),
|
||||
"ByAccident" => (
|
||||
["on accident"],
|
||||
["by accident"],
|
||||
|
@ -389,6 +401,18 @@ pub fn lint_group() -> LintGroup {
|
|||
"Vocabulary enhancement: use `excellent` instead of `very good`",
|
||||
"Provides a stronger word choice by replacing `very good` with `excellent` for clarity and emphasis."
|
||||
),
|
||||
"ExpandArgument" => (
|
||||
["arg"],
|
||||
["argument"],
|
||||
"Use `argument` instead of `arg`",
|
||||
"Expands the abbreviation `arg` to the full word `argument` for clarity."
|
||||
),
|
||||
"ExpandArguments" => (
|
||||
["args"],
|
||||
["arguments"],
|
||||
"Use `arguments` instead of `args`",
|
||||
"Expands the abbreviation `args` to the full word `arguments` for clarity."
|
||||
),
|
||||
"ExpandBecause" => (
|
||||
["cuz"],
|
||||
["because"],
|
||||
|
@ -1160,6 +1184,12 @@ pub fn lint_group() -> LintGroup {
|
|||
"The more standard, less colloquial form is `take it personally`.",
|
||||
"Corrects `take it personal` to `take it personally`."
|
||||
),
|
||||
"ThanksALot" => (
|
||||
["thanks lot", "thanks alot"],
|
||||
["thanks a lot"],
|
||||
"Prefer the two-word expression `thanks a lot`.",
|
||||
"`Thanks a lot` is the fixed, widely accepted form, while variants like `thanks lot` or `thanks alot` are non-standard and can jar readers."
|
||||
),
|
||||
"ThatChallenged" => (
|
||||
["the challenged"],
|
||||
["that challenged"],
|
||||
|
@ -1341,30 +1371,12 @@ pub fn lint_group() -> LintGroup {
|
|||
"Use `worst` for the extreme case. (`Worse` is for comparing)",
|
||||
"Corrects `worse ever` to `worst ever` for proper comparative usage."
|
||||
),
|
||||
"BuiltIn" => (
|
||||
["in built", "in-built", "built in"],
|
||||
["built-in"],
|
||||
"Prefer the hyphenated compound `built-in`.",
|
||||
"English convention treats `built-in` as a single, attributive adjective—meaning something integrated from the outset—whereas other forms like `in built` are non-standard and can feel awkward to readers."
|
||||
),
|
||||
"ThanksALot" => (
|
||||
["thanks lot", "thanks alot"],
|
||||
["thanks a lot"],
|
||||
"Prefer the two-word expression `thanks a lot`.",
|
||||
"`Thanks a lot` is the fixed, widely accepted form, while variants like `thanks lot` or `thanks alot` are non-standard and can jar readers."
|
||||
),
|
||||
"WroughtIron" => (
|
||||
["rod iron", "rot iron", "rod-iron", "rot-iron"],
|
||||
["wrought iron"],
|
||||
"Prefer the standard term `wrought iron`.",
|
||||
"`Wrought iron` is low-carbon, malleable iron used for decorative work; variants like `rod iron` or `rot iron` are phonetic misspellings that may confuse readers."
|
||||
),
|
||||
"Beforehand" => (
|
||||
["before hand", "before-hand"],
|
||||
["beforehand"],
|
||||
"Prefer the single-word adverb `beforehand`.",
|
||||
"`Beforehand` functions as a fixed adverb meaning ‘in advance’; writing it as two words or with a hyphen is nonstandard and can jar readers."
|
||||
),
|
||||
});
|
||||
|
||||
group.set_all_rules_to(Some(true));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue