Skip to content

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.dict
index d0b8fabc0..16d983e9c 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -10764,6 +10764,7 @@ Wigner/2M
Wii/1M
Wikileaks
Wikipedia/214M
+Wiktionary/2MS
Wilberforce/2M
Wilbert/2M
Wilbur/2M
@@ -12803,6 +12804,7 @@ appropriate/~54PYGNXDS
appropriated/~45U
appropriateness/~1IM
appropriation/~1M
+appropriative/5
appropriator/1SM
approval/~1EM
approvals/1
@@ -13483,6 +13485,7 @@ avert/~4GDS
avg/~1
avian/~51
aviary/~1SM
+aviate/41DSG
aviation/~1M
aviator/~1MS
aviatrices/19
@@ -13616,6 +13619,8 @@ backhoe/14MS
backing/~154M
backlash/~14MS
backless/5
+backlight/14MSG
+backlit/45
backlog/~14MS
backlogged/45
backlogging/4
@@ -18256,6 +18261,7 @@ companionably/j
companionship/~1M
companionway/1MS
company/~14SM
+companywide/5 # in Wiktionary and https://seeds.sproutsocial.com/writing/grammar-and-mechanics/
comparability/1M
comparable/~51I
comparably/Ij
@@ -20745,6 +20751,7 @@ descry/4GDS
desecrate/45DSGN
desecration/1M
deselection/1
+deserialization/1MS
deserialize/4SGD
desert/~154SDRZGM
deserter/1M
@@ -21038,6 +21045,7 @@ differential/~51SM
differentiate/~41DSGN
differentiated/~45U
differentiation/~1M
+differentiator/1MS
difficult/~54Y
difficulty/~1SM
diffidence/1M
@@ -22799,8 +22807,9 @@ enclave/~14MS
enclose/~4GDS
enclosed/~54U
enclosure/~1SM
-encode/~41DRSZG
+encode/~41DRSZ
encoder/~1M
+encoding/1MS
encomium/1MS
encompass/~4GDS
encore/~14DSMG
@@ -24573,6 +24582,7 @@ fisher/~1M
fisherman/~1M
fishermen/~9
fishery/~1SM
+fisheye/1SM
fishhook/14SM
fishily/j
fishiness/1M
@@ -26723,6 +26733,7 @@ gray/~541MDRTGSP<
graybeard/1SM<
grayish/5<
grayness/1M<
+grayscale/1M5<
graze/14DRSMZG
grazer/1M
grease/~14DRSMZG
@@ -26773,6 +26784,7 @@ grey/541PMDRTGS!@_
greyhound/~14SM
greyish/5!@_
greyness/1M!@_
+greyscale/1M5!@_
gribble/15S
grid/~14MS
griddle/14SM
@@ -28358,6 +28370,7 @@ hotplate/1SM
hotpot/1S
hots/14M
hotshot/514MS
+hotspot/1MS
hotted/4
hotter/~514
hottest/~5
@@ -33572,7 +33585,7 @@ mincemeat/1M
mincer/1M
mind/~14ADRSZG
mind's
-mindbogglingly/j
+mindboggling/5Y<
minded/~54P
mindfuck/1SM6
mindful/~51YP
@@ -34459,7 +34472,9 @@ multimeter/1SM
multimillionaire/1SM
multinational/~51SM
multipart/5
+multipartite
multiparty/5
+multiphonics/1M
multiplanetary/5
multiplayer/~51M
multiple/~51MS
@@ -37298,6 +37313,7 @@ parricide/1MS
parring/4
parrot/~14GMDS
parry/~41GDSM
+parsable/5
parse/~41DRSGT
parsec/1MS
parser/~1SM
@@ -38791,6 +38807,7 @@ polemicist/1SM
polemics/1M
polestar/1SM
police/~14DSMG
+policeless/5
policeman/~1M
policemen/~9
policewoman/1M
@@ -41554,6 +41571,7 @@ respectful/~5EY
respectfulness/1M
respective/~5Y
respell/4SGD
+respin/1MS4GD
respiration/~1M
respirator/~1SM
respiratory/~5
@@ -41705,7 +41723,8 @@ reverential/5Y
reverie/14MS
revers/1M
reversal/~15SM
-reverse/~514YR
+reverse/~514Y
+reverser/1MS
reversibility/1
reversible/~51
reversibly/j
@@ -42761,8 +42780,8 @@ schedule/~14ADSG
schedule's
scheduled/~451U
scheduler/~1S
-schema/~1
-schemata/1
+schema/~1MS
+schemata/9
schematic/~51SM
schematically/j
schematise/4GDS!_
@@ -47028,6 +47047,7 @@ symbolism/~1M
symbolization/1M
symbolize/~4DSG
symbology/1
+symlink/1MS4DG
symmetric/~5
symmetrical/~5Y
symmetry/~1SM
@@ -48336,6 +48356,7 @@ tool/~14ADGS
tool's
toolbar/~1SM
toolbox/~1MS
+toolchain/1MS
toolkit/~1
toolless/5
toolmaker/1MS
@@ -50287,7 +50308,7 @@ venation/1M
vend/41DGS
vendetta/~1SM
vendible/51
-vendor/~14MS
+vendor/~14MSDG
veneer/14MDGS
venerability/1M
venerable/~5
@@ -50728,6 +50749,7 @@ voracious/5PY
voraciousness/1M
voracity/1M
vortex/~14MS
+vortices/9
votary/51SM
vote/~14GVDS
vote's
@@ -52257,6 +52279,7 @@ DNS/2SM # domain name system
DOM/1SM # document object model
DRM/1M # digital rights management
DSL/1SM # domain-specific language
+DX/1M # developer experience
DeepMind/2M
DevOps/SM
DirectX/2M
@@ -52271,6 +52294,7 @@ Erdoğan/2M # surname, Turkish politician
Ethereum/2M # digital currency
Evo/2MS # car model
Expedia/2M
+FAT32/1M # file system
FIDO/12SM
FIFA/1M # football/soccer association
FPGA/1SM # field-programmable gate array
@@ -52313,6 +52337,7 @@ ISA/12MS # instruction set architecture; industry standard architectu
IntelliJ/SM
IntelliSense/2M
JNI/2M # Java Native Interface
+JS/1M # JavaScript
JSDoc/SM
JSON/2M # data format
JVM/SM # Java virtual machine
@@ -52332,6 +52357,7 @@ Kubernetes/2SM
LADAR
LEGO/1SM # official trademark form of Lego
LIDAR/1 # FIXME! elsewhere we have LiDAR
+LLM/1MS # large language model
LLVM/1M # compiler system
LSP/1MS # language server protocol
LTS/1SM
@@ -52476,6 +52502,7 @@ Typst/SM
UDP/12SM # internet protocol
ULA/1MS # uncommitted logic array
URI/1SM # uniform resource identifier
+UX/1M # user experience
VAG/2M # car company
VARCHAR/1MS
VCS/1M # version control system
@@ -52495,6 +52522,7 @@ WAL/21SM
WASI/MS
WASM/MS # see WebAssembly
WD40/1M
+WIP/1M # work in progress
WSL/M2 # windows subsystem for linux
Waymo/2M
WebAssembly/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 Pandoc
pre/~+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 yet
royale/~15SM # !! please check and comment !! dictionaries only list noun sense type of custard
s.t./~ # !! please check and comment !!
scatterplot/14SMG # dictionaries prefer: scatter plot
@@ -52609,16 +52638,21 @@ CD-ROM/1MS
centre-left/5!@_
centre-right/5!@_
clear-sighted/5
+closed circuit/1MS
+closed-circuit/5
color code/14MDSG<
color coded/5<
colour code/14MDSG!@_
colour coded/5!@_
command line/1MS
+company-wide # in Cambridge and OED dictionaries
cost cutting/1M
cost-effective/5
cotter pin/1MS
cross section/1MS
cross-threaded/5
+cul-de-sac/1MS
+culs-de-sac/9
custom-built/5
custom-made/5
cut scene/1MS
@@ -52637,6 +52671,7 @@ dire wolves/9
door to door/j
door-to-door/S
double-decker/5
+e-book/1MS
easy peasy/5
editor in chief/1
end user/1MS
@@ -52651,6 +52686,7 @@ fact-checking/1M
fail-safe/1MS5
far right/1MS
far-right/5
+fast track/1MS4DG
feature-length/5
first-hand/j
first person/1M
@@ -52667,6 +52703,8 @@ full on/5j
full-on/5j
full-scale/5
full-time/5j
+go around/4
+go-around/1MS
gold-plated/5
gray wolf/1M<
gray wolves/9<
@@ -52749,6 +52787,7 @@ low-income/5
low-level/5
low-maintenance/5
low-profile/5
+low-quality/5
lower-income/5
made up/4
made-up/5
@@ -52760,6 +52799,7 @@ Mar-a-Lago/2M
Mercedes-Benz/2M
middle-sized/5
mind-blowing/5
+mind-boggling/5Y!@_
mind game/1MS
mock up/4
mock-up/1MS
@@ -52777,6 +52817,7 @@ object-oriented/5
odd-numbered/5
of course/j
off-limits/5
+off-ramp/1MS
off-road/1MS
off-roader/1MS
off-roading/1M
@@ -52827,6 +52868,7 @@ red wolf/1M
red wolves/9
right-hand/5
right-wing/5
+road map/1MS # standard in all dictionaries but overtaken by "roadmap" c. 2000
rock face/1MS
run-up/1MS
same sex/1M
@@ -52887,6 +52929,7 @@ thought-out/5
thought-provoking/5
three-quarters/1
time-consuming/5Y
+time frame/1MS
time-honored/5<
time-honoured/5!@_
tit for tat/1
@@ -52907,6 +52950,8 @@ uh-huh
uh-oh
un-American/5
user-friendly/5
+UTF-16/1M
+UTF-32/1M
UTF-8/1M
voice-over/1MS
von Neumann/2
@@ -52920,10 +52965,12 @@ web dev/1MS
web page/~1SM
welch plug/1SM
well-adjusted/5
+well-established/5
well-known/5
well-made/5
well-received/5
well-respected/5
+well-timed/5
well-trodden/5
well-used/5
Wi-Fi/1M
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index 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.yml
index 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.yml
index 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.yml
index 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.yml
index 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.yml
index 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.yml
index 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 and
Suggest:
- - 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”