Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(core): `SplitWords` allowing uncommon merges (#2874)
Elijah Potter1ab0114c6ea5
diff --git a/harper-core/annotations.json b/harper-core/annotations.jsonindex 3a8a00ea7..4b1f6338a 100644--- a/harper-core/annotations.json+++ b/harper-core/annotations.json@@ -707,7 +707,8 @@"metadata": {"common": true},- "rename_ok": true+ "rename_ok": true,+ "propagate": true},"P": {"#": "preposition property",diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 721e0bb12..cd851bac2 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -23207,7 +23207,7 @@ emulsification/Nmgemulsifier/~NgSemulsify/Vd>SGnZemulsion/~NwgSV-en/~NSgPI(+en/NSgPI(en masseenable/~Vd>SGZenabler/NgS@@ -29179,7 +29179,7 @@ husbandman/Nghusbandmen/9husbandry/~Nmghush/~VdGSNg-husk/NgSVd>GZ+husk/NgSVd>GZ~husker/Nghuskily/Ryhuskiness/Ng@@ -32059,7 +32059,8 @@ leatherette/Ngleatherman/Ngleatherneck/NgSleathery/J-leave/~Vd>GSNgZz+leave/~Vd>GNgZz+leaves/~V9hleave over/Vleaven/NSgVGdleavened/VJUdiff --git a/harper-core/src/linting/split_words.rs b/harper-core/src/linting/split_words.rsindex c045cde51..ca458079f 100644--- a/harper-core/src/linting/split_words.rs+++ b/harper-core/src/linting/split_words.rs@@ -234,4 +234,31 @@ mod tests {fn atall_should_split_to_a_tall_and_at_all() {assert_good_and_bad_suggestions("atall", SplitWords::default(), &["a tall", "at all"], &[]);}++ #[test]+ fn issue_2763_leaves() {+ assert_suggestion_result(+ "I love to eat cornleaves.",+ SplitWords::default(),+ "I love to eat corn leaves.",+ );+ }++ #[test]+ fn issue_2763_husks() {+ assert_suggestion_result(+ "I love to eat cornhusks.",+ SplitWords::default(),+ "I love to eat corn husks.",+ );+ }++ #[test]+ fn issue_2763_singular() {+ assert_suggestion_result(+ "I would love to eat a cornleaf.",+ SplitWords::default(),+ "I would love to eat a corn leaf.",+ );+ }}diff --git a/harper-core/src/spell/mod.rs b/harper-core/src/spell/mod.rsindex a265e9f88..e4631e933 100644--- a/harper-core/src/spell/mod.rs+++ b/harper-core/src/spell/mod.rs@@ -339,8 +339,8 @@ fn score_suggestion(misspelled_word: &[char], sug: &FuzzyMatchResult) -> i32 {}// Boost common words.- if sug.metadata.common {- score -= 5;+ if sug.metadata.common && sug.metadata.derived_from.is_none() {+ score -= 4;}// For turning words into contractions.diff --git a/harper-core/tests/test_sources/pr_504.md b/harper-core/tests/test_sources/pr_504.mdindex 3ff95566b..676dd4e1d 100644--- a/harper-core/tests/test_sources/pr_504.md+++ b/harper-core/tests/test_sources/pr_504.md@@ -4,4 +4,4 @@ These say "This is in Greek/Georgian/Thai" in those languages:ეს ქართულად.นี่มันภาษาไทย-This is English with misstakes.+This is English with misstakess.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 5bf03ab29..973a7baf0 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@@ -51,8 +51,8 @@ Message: || ^~~~~~~~~~ Did you mean to spell `afterwards` this way?22 | ought to have wondered at this, but at the time it all seemed quite natural);Suggest:- - Replace with: “afterward”- Replace with: “afterwords”+ - Replace with: “afterward”- Replace with: “afterword's”@@ -103,8 +103,8 @@ Message: || ^~~~~~ Did you mean to spell `centre` this way?Suggest:- Replace with: “center”+ - Replace with: “cent's”- Replace with: “censure”- - Replace with: “cent”@@ -915,9 +915,9 @@ Message: |412 | advisable to go with Edgar Atheling to meet William and offer him the crown.| ^~~~~~~~ Did you mean to spell `Atheling` this way?Suggest:- - Replace with: “Gathering”- Replace with: “Adhering”- Replace with: “Fathering”+ - Replace with: “Gathering”@@ -1817,7 +1817,7 @@ Message: |Suggest:- Replace with: “nature”- Replace with: “natures”- - Replace with: “natural”+ - Replace with: “nature's”@@ -1966,7 +1966,7 @@ Message: |Suggest:- Replace with: “Lace”- Replace with: “Lacier”- - Replace with: “Lac”+ - Replace with: “Lac's”@@ -1975,9 +1975,9 @@ Message: |1555 | great hurry; “and their names were Elsie, Lacie, and Tillie; and they lived at| ^~~~~~ Did you mean to spell `Tillie` this way?Suggest:+ - Replace with: “Till's”- Replace with: “Tile”- Replace with: “Till”- - Replace with: “Till's”@@ -2363,8 +2363,8 @@ Message: || ^~~ Did you mean to spell `Tis` this way?Suggest:- Replace with: “This”- - Replace with: “Tic”- Replace with: “T's”+ - Replace with: “Ti's”@@ -2565,8 +2565,8 @@ Message: |2134 | exclamation of “Hjckrrh!” from the Gryphon, and the constant heavy sobbing of| ^~~~~~~ Did you mean to spell `Hjckrrh` this way?Suggest:- - Replace with: “Hacker”- Replace with: “Hickory”+ - Replace with: “Hacker”- Replace with: “Hackers”@@ -2920,7 +2920,7 @@ Message: |Suggest:- Replace with: “Din”- Replace with: “Dine”- - Replace with: “Ding”+ - Replace with: “Diann”@@ -3062,8 +3062,8 @@ Message: || ^~~ Did you mean to spell `Tis` this way?Suggest:- Replace with: “This”- - Replace with: “Tic”- Replace with: “T's”+ - Replace with: “Ti's”@@ -3089,8 +3089,8 @@ Message: || ^~~ Did you mean to spell `Tis` this way?Suggest:- Replace with: “This”- - Replace with: “Tic”- Replace with: “T's”+ - Replace with: “Ti's”@@ -3851,8 +3851,8 @@ Message: |2929 | “No, no!” said the Queen. “Sentence first—verdict afterwards.”| ^~~~~~~~~~ Did you mean to spell `afterwards` this way?Suggest:- - Replace with: “afterward”- Replace with: “afterwords”+ - Replace with: “afterward”- Replace with: “afterword's”diff --git a/harper-core/tests/text/linters/Computer science.snap.yml b/harper-core/tests/text/linters/Computer science.snap.ymlindex b22841acf..581e43c91 100644--- a/harper-core/tests/text/linters/Computer science.snap.yml+++ b/harper-core/tests/text/linters/Computer science.snap.yml@@ -46,8 +46,8 @@ Message: || ^~~~~~~~ Did you mean to spell `Reckoner` this way?Suggest:- Replace with: “Reckoned”- - Replace with: “Recover”- Replace with: “Rickover”+ - Replace with: “Reasoner”@@ -424,7 +424,7 @@ Message: |Suggest:- Replace with: “automatic”- Replace with: “automatics”- - Replace with: “automata”+ - Replace with: “automatic's”@@ -716,7 +716,7 @@ Message: |Suggest:- Replace with: “Wagner”- Replace with: “Wigner”- - Replace with: “Wager”+ - Replace with: “Wetter”@@ -1051,8 +1051,8 @@ Message: || ^~~ Did you mean to spell `HCI` this way?Suggest:- Replace with: “Hi”+ - Replace with: “H'm”- Replace with: “Chi”- - Replace with: “Sci”@@ -1063,8 +1063,8 @@ Message: |349 | that focus on the relationship between emotions, social behavior and brainSuggest:- Replace with: “Hi”+ - Replace with: “H'm”- Replace with: “Chi”- - Replace with: “Sci”@@ -1152,7 +1152,7 @@ Message: |Suggest:- Replace with: “Petra”- Replace with: “Perth”- - Replace with: “Pear”+ - Replace with: “Pet's”diff --git a/harper-core/tests/text/linters/Difficult sentences.snap.yml b/harper-core/tests/text/linters/Difficult sentences.snap.ymlindex f85bc6adc..187a7c390 100644--- a/harper-core/tests/text/linters/Difficult sentences.snap.yml+++ b/harper-core/tests/text/linters/Difficult sentences.snap.yml@@ -214,8 +214,8 @@ Message: |310 | Ponsonby-Smythe hit a thumping on drive.| ^~~~~~~~ Did you mean to spell `Ponsonby` this way?Suggest:- - Replace with: “Poison”- Replace with: “Poison's”+ - Replace with: “Poison”- Replace with: “Poisoned”@@ -320,8 +320,8 @@ Message: || ^~~~~~~~~ Did you mean to spell `travelled` this way?Suggest:- Replace with: “traveled”- - Replace with: “traveler”- Replace with: “travailed”+ - Replace with: “traveler”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 0d558a225..b7610cf8a 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@@ -49,7 +49,7 @@ Message: |Suggest:- Replace with: “E”- Replace with: “Ea”- - Replace with: “Ed”+ - Replace with: “Eh”@@ -162,8 +162,8 @@ Message: || ^~~~~~ Did you mean to spell `DeRose` this way?Suggest:- Replace with: “Depose”- - Replace with: “Debase”- - Replace with: “Decode”+ - Replace with: “Demise”+ - Replace with: “Dense”@@ -462,8 +462,8 @@ Message: || ^~~~~~ Did you mean to spell `DeRose` this way?Suggest:- Replace with: “Depose”- - Replace with: “Debase”- - Replace with: “Decode”+ - Replace with: “Demise”+ - Replace with: “Dense”@@ -485,8 +485,8 @@ Message: || ^~~~~~~ Did you mean to spell `Viterbi` this way?Suggest:- Replace with: “Vite's”- - Replace with: “Verb”- - Replace with: “Veteran”+ - Replace with: “Viper's”+ - Replace with: “Voter's”@@ -496,8 +496,8 @@ Message: || ^~~~~~ Did you mean to spell `DeRose` this way?Suggest:- Replace with: “Depose”- - Replace with: “Debase”- - Replace with: “Decode”+ - Replace with: “Demise”+ - Replace with: “Dense”@@ -600,8 +600,8 @@ Message: |201 | algorithm, Brill tagger, Constraint Grammar, and the Baum-Welch algorithm (alsoSuggest:- Replace with: “Vite's”- - Replace with: “Verb”- - Replace with: “Veteran”+ - Replace with: “Viper's”+ - Replace with: “Voter's”@@ -623,8 +623,8 @@ Message: || ^~~~~~~ Did you mean to spell `Viterbi` this way?Suggest:- Replace with: “Vite's”- - Replace with: “Verb”- - Replace with: “Veteran”+ - Replace with: “Viper's”+ - Replace with: “Voter's”diff --git a/harper-core/tests/text/linters/Spell.US.snap.yml b/harper-core/tests/text/linters/Spell.US.snap.ymlindex 2f2d3e2e5..e9dfa36de 100644--- a/harper-core/tests/text/linters/Spell.US.snap.yml+++ b/harper-core/tests/text/linters/Spell.US.snap.yml@@ -3,8 +3,8 @@ Message: |9 | - Afterwards.| ^~~~~~~~~~ Did you mean to spell `Afterwards` this way?Suggest:- - Replace with: “Afterward”- Replace with: “Afterwords”+ - Replace with: “Afterward”- Replace with: “Afterword's”@@ -15,8 +15,8 @@ Message: || ^~~~~~ Did you mean to spell `Centre` this way?Suggest:- Replace with: “Center”+ - Replace with: “Cent's”- Replace with: “Censure”- - Replace with: “Cent”@@ -141,8 +141,8 @@ Message: || ^~~~~~~ Did you mean to spell `Theatre` this way?Suggest:- Replace with: “Theater”- - Replace with: “There”- Replace with: “They're”+ - Replace with: “There”diff --git a/harper-core/tests/text/linters/Spell.snap.yml b/harper-core/tests/text/linters/Spell.snap.ymlindex 7b257f50b..978356f77 100644--- a/harper-core/tests/text/linters/Spell.snap.yml+++ b/harper-core/tests/text/linters/Spell.snap.yml@@ -89,8 +89,8 @@ Message: || ^~~~~~ Did you mean to spell `centre` this way?Suggest:- Replace with: “center”+ - Replace with: “cent's”- Replace with: “censure”- - Replace with: “cent”@@ -100,8 +100,8 @@ Message: || ^~~~~~~ Did you mean to spell `theatre` this way?Suggest:- Replace with: “theater”- - Replace with: “there”- Replace with: “they're”+ - Replace with: “there”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 75518ed31..b31db1590 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@@ -40,7 +40,7 @@ Message: |Suggest:- Replace with: “defense”- Replace with: “decency”- - Replace with: “deface”+ - Replace with: “defect”@@ -263,7 +263,7 @@ Message: || ^~~~~~~ Did you mean to spell `tempore` this way?104 | in the Absence of the Vice President, or when he shall exercise the Office ofSuggest:- - Replace with: “temper”+ - Replace with: “tempo's”- Replace with: “temple”- Replace with: “tempo”@@ -344,7 +344,7 @@ Message: |Suggest:- Replace with: “causing”- Replace with: “chasing”- - Replace with: “casing”+ - Replace with: “cousin”@@ -585,7 +585,7 @@ Message: |Suggest:- Replace with: “Defense”- Replace with: “Decency”- - Replace with: “Deface”+ - Replace with: “Defect”@@ -627,7 +627,7 @@ Message: |Suggest:- Replace with: “Offenses”- Replace with: “Offense's”- - Replace with: “Offender”+ - Replace with: “Offenders”@@ -729,7 +729,7 @@ Message: |Suggest:- Replace with: “fact”- Replace with: “factor”- - Replace with: “faith”+ - Replace with: “facts”@@ -795,7 +795,7 @@ Message: |Suggest:- Replace with: “fact”- Replace with: “factor”- - Replace with: “faith”+ - Replace with: “facts”@@ -1001,7 +1001,7 @@ Message: |Suggest:- Replace with: “causing”- Replace with: “chasing”- - Replace with: “casing”+ - Replace with: “cousin”@@ -1089,7 +1089,7 @@ Message: || ^~~~~~~ Did you mean to spell `tempore` this way?416 | the Speaker of the House of Representatives his written declaration that he isSuggest:- - Replace with: “temper”+ - Replace with: “tempo's”- Replace with: “temple”- Replace with: “tempo”@@ -1128,7 +1128,7 @@ Message: |423 | transmit to the President pro tempore of the Senate and the Speaker of the| ^~~~~~~ Did you mean to spell `tempore` this way?Suggest:- - Replace with: “temper”+ - Replace with: “tempo's”- Replace with: “temple”- Replace with: “tempo”@@ -1171,7 +1171,7 @@ Message: || ^~~~~~~ Did you mean to spell `tempore` this way?429 | Senate and the Speaker of the House of Representatives his written declarationSuggest:- - Replace with: “temper”+ - Replace with: “tempo's”- Replace with: “temple”- Replace with: “tempo”@@ -1193,7 +1193,7 @@ Message: || ^~~~~~~ Did you mean to spell `tempore` this way?434 | Speaker of the House of Representatives their written declaration that theSuggest:- - Replace with: “temper”+ - Replace with: “tempo's”- Replace with: “temple”- Replace with: “tempo”@@ -1365,7 +1365,7 @@ Message: |Suggest:- Replace with: “Offenses”- Replace with: “Offense's”- - Replace with: “Offender”+ - Replace with: “Offenders”@@ -1631,8 +1631,8 @@ Message: || ^~~~~~ Did you mean to spell `Labour` this way?Suggest:- Replace with: “Labor”- - Replace with: “Laborer”- Replace with: “Layout”+ - Replace with: “Labium”@@ -1643,8 +1643,8 @@ Message: || ^~~~~~ Did you mean to spell `Labour` this way?Suggest:- Replace with: “Labor”- - Replace with: “Laborer”- Replace with: “Layout”+ - Replace with: “Labium”@@ -1655,8 +1655,8 @@ Message: || ^~~~~~ Did you mean to spell `Labour` this way?Suggest:- Replace with: “Labor”- - Replace with: “Laborer”- Replace with: “Layout”+ - Replace with: “Labium”diff --git a/harper-core/tests/text/linters/The Great Gatsby.snap.yml b/harper-core/tests/text/linters/The Great Gatsby.snap.ymlindex 4c6eff781..10db0e2fc 100644--- a/harper-core/tests/text/linters/The Great Gatsby.snap.yml+++ b/harper-core/tests/text/linters/The Great Gatsby.snap.yml@@ -173,8 +173,8 @@ Message: |52 | founder of my line was my grandfather’s brother, who came here in fifty-one,Suggest:- Replace with: “Buckley's”- - Replace with: “Bleach”- - Replace with: “Buckle”+ - Replace with: “Buckle's”+ - Replace with: “Buckler's”@@ -185,8 +185,8 @@ Message: |62 | seemed like the ragged edge of the universe—so I decided to go East and learnSuggest:- Replace with: “center”+ - Replace with: “cent's”- Replace with: “censure”- - Replace with: “cent”@@ -447,8 +447,8 @@ Message: || ^~~~~~~ Did you mean to spell `Demaine` this way?Suggest:- Replace with: “Decline”- - Replace with: “Define”- Replace with: “Demand”+ - Replace with: “Demise”@@ -709,6 +709,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 628 | Already it was deep summer on roadhouse roofs and in front of wayside garages,+ 629 | where new red gaspumps sat out in pools of light, and when I reached my estate+ | ^~~~~~~~ `gaspumps` should probably be written as `gas pumps`.+Suggest:+ - Replace with: “gas pumps”+++Lint: Readability (127 priority)Message: |633 | of the earth blew the frogs full of life. The silhouette of a moving cat wavered@@ -803,8 +813,8 @@ Message: || ^~~~~~~~~ Did you mean to spell `Eckleburg` this way?Suggest:- Replace with: “Excalibur”- - Replace with: “Heckler”- Replace with: “Vicksburg”+ - Replace with: “Heckler”@@ -837,8 +847,8 @@ Message: || ^~~~~~~~~ Did you mean to spell `Eckleburg` this way?Suggest:- Replace with: “Excalibur”- - Replace with: “Heckler”- Replace with: “Vicksburg”+ - Replace with: “Heckler”@@ -865,6 +875,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 683 | up to New York with Tom on the train one afternoon, and when we stopped by the+ 684 | ashheaps he jumped to his feet and, taking hold of my elbow, literally forced me+ | ^~~~~~~~ `ashheaps` should probably be written as `ash heaps`.+Suggest:+ - Replace with: “ash heaps”+++Lint: Spelling (63 priority)Message: |694 | hundred yards along the road under Doctor Eckleburg’s persistent stare. The only@@ -945,8 +965,8 @@ Message: || ^~~~~~~~~ Did you mean to spell `Eckleburg` this way?Suggest:- Replace with: “Excalibur”- - Replace with: “Heckler”- Replace with: “Vicksburg”+ - Replace with: “Heckler”@@ -1349,8 +1369,8 @@ Message: |1180 | spiced baked hams crowded against salads of harlequin designs and pastry pigsSuggest:- Replace with: “hours”- - Replace with: “hers”- Replace with: “ho's”+ - Replace with: “hers”@@ -1472,8 +1492,8 @@ Message: |1204 | triumph, glide on through the sea-change of faces and voices and color under theSuggest:- Replace with: “center”+ - Replace with: “cent's”- Replace with: “censure”- - Replace with: “cent”@@ -1703,6 +1723,15 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 1413 | trembling a little to the stiff, tinny drip of the banjoes on the lawn.+ | ^~~~~~~ `banjoes` should probably be written as `banjo es`.+Suggest:+ - Replace with: “banjo es”+++Lint: Enhancement (31 priority)Message: |1457 | “I thought you knew, old sport. I’m afraid I’m not a very good host.”@@ -1951,7 +1980,7 @@ Message: |Suggest:- Replace with: “out”- Replace with: “outta”- - Replace with: “oath”+ - Replace with: “outs”@@ -2038,8 +2067,8 @@ Message: |1766 | heart. Forms leaned together in the taxis as they waited, and voices sang, andSuggest:- Replace with: “theater”- - Replace with: “there”- Replace with: “they're”+ - Replace with: “there”@@ -2248,8 +2277,8 @@ Message: |1857 | knickerbockers, and had a fight with a bum named Etty in the garden. From| ^~~~ Did you mean to spell `Etty` this way?Suggest:- - Replace with: “Ethyl”- Replace with: “Etta”+ - Replace with: “Ethyl”- Replace with: “Jetty”@@ -2486,7 +2515,7 @@ Message: |Suggest:- Replace with: “Cali's”- Replace with: “Catnip's”- - Replace with: “Caliph”+ - Replace with: “Caliphs”@@ -3016,7 +3045,7 @@ Message: |Suggest:- Replace with: “Order”- Replace with: “Orders”- - Replace with: “Ordeal”+ - Replace with: “Order's”@@ -3095,7 +3124,7 @@ Message: |Suggest:- Replace with: “undeserved”- Replace with: “undefeated”- - Replace with: “undesired”+ - Replace with: “underserved”@@ -3513,8 +3542,8 @@ Message: || ^~~~~~ Did you mean to spell `How’ve` this way?Suggest:- Replace with: “How're”- - Replace with: “Hove”- Replace with: “How'd”+ - Replace with: “How's”@@ -3561,8 +3590,8 @@ Message: |2330 | armistice, and in February she was presumably engaged to a man from New Orleans.Suggest:- Replace with: “debut”- - Replace with: “debit”- Replace with: “debt”+ - Replace with: “doubt”@@ -3621,7 +3650,16 @@ Message: |Suggest:- Replace with: “dear's”- Replace with: “dares”- - Replace with: “dearest”+ - Replace with: “dearies”++++Lint: Typo (31 priority)+Message: |+ 2349 | “Here, deares’.” She groped around in a wastebasket she had with her on the bed+ | ^~~~~~ `deares` should probably be written as `dear es`.+Suggest:+ - Replace with: “dear es”@@ -3692,8 +3730,8 @@ Message: || ^~~~~~~~ Did you mean to spell `victoria` this way?Suggest:- Replace with: “Victoria”- - Replace with: “victor”- Replace with: “victor's”+ - Replace with: “victor”@@ -3703,8 +3741,8 @@ Message: || ^~~~~ Did you mean to spell `Sheik` this way?Suggest:- Replace with: “Sheikh”- - Replace with: “Seek”- - Replace with: “Shack”+ - Replace with: “She'd”+ - Replace with: “She's”@@ -3767,9 +3805,9 @@ Message: |2492 | some of the rooms. Let’s go to Coney Island, old sport. In my car.”| ^~~~~ Did you mean to spell `Coney` this way?Suggest:- - Replace with: “Cone”- Replace with: “Convey”- Replace with: “Conley”+ - Replace with: “Corey”@@ -3816,9 +3854,9 @@ Message: |2562 | Coney Island, or for how many hours he “glanced into rooms” while his house| ^~~~~ Did you mean to spell `Coney` this way?Suggest:- - Replace with: “Cone”- Replace with: “Convey”- Replace with: “Conley”+ - Replace with: “Corey”@@ -3865,6 +3903,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 2607 | Clay’s “Economics,” starting at the Finnish tread that shook the kitchen floor,+ 2608 | and peering toward the bleared windows from time to time as if a series of+ | ^~~~~~~ `bleared` should probably be written as `bl eared`.+Suggest:+ - Replace with: “bl eared”+++Lint: Style (31 priority)Message: |2629 | The exhilarating ripple of her voice was a wild tonic in the rain. I had to@@ -4001,8 +4049,8 @@ Message: |2827 | entered by the big postern. With enchanting murmurs Daisy admired this aspect or| ^~~~~~~ Did you mean to spell `postern` this way?Suggest:- - Replace with: “poster”- Replace with: “pastern”+ - Replace with: “poster”- Replace with: “posters”@@ -4390,8 +4438,8 @@ Message: |3090 | knew what lavish doings Dan Cody drunk might soon be about, and he provided forSuggest:- Replace with: “jailer”+ - Replace with: “jail's”- Replace with: “sailor”- - Replace with: “tailor”@@ -4583,7 +4631,7 @@ Message: |Suggest:- Replace with: “defense”- Replace with: “decency”- - Replace with: “deface”+ - Replace with: “defect”@@ -4879,8 +4927,8 @@ Message: || ^~~~~~ Did you mean to spell `centre` this way?Suggest:- Replace with: “center”+ - Replace with: “cent's”- Replace with: “censure”- - Replace with: “cent”@@ -4941,9 +4989,9 @@ Message: |3640 | “Bles-sed pre-cious,” she crooned, holding out her arms. “Come to your own| ^~~~~ Did you mean to spell `cious` this way?Suggest:+ - Replace with: “coo's”- Replace with: “pious”- Replace with: “chorus”- - Replace with: “circus”@@ -4958,14 +5006,23 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 3646 | “The bles-sed pre-cious! Did mother get powder on your old yellowy hair? Stand+ | ^~~~ `bles` should probably be written as `bl es`.+Suggest:+ - Replace with: “bl es”+++Lint: Spelling (63 priority)Message: |3646 | “The bles-sed pre-cious! Did mother get powder on your old yellowy hair? Stand| ^~~~~ Did you mean to spell `cious` this way?Suggest:+ - Replace with: “coo's”- Replace with: “pious”- Replace with: “chorus”- - Replace with: “circus”@@ -5158,6 +5215,15 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 3948 | behind. Over the ashheaps the giant eyes of Doctor T. J. Eckleburg kept their+ | ^~~~~~~~ `ashheaps` should probably be written as `ash heaps`.+Suggest:+ - Replace with: “ash heaps”+++Lint: Spelling (63 priority)Message: |3948 | behind. Over the ashheaps the giant eyes of Doctor T. J. Eckleburg kept their@@ -5187,8 +5253,8 @@ Message: |3949 | vigil, but I perceived, after a moment, that other eyes were regarding us withSuggest:- Replace with: “Excalibur”- - Replace with: “Heckler”- Replace with: “Vicksburg”+ - Replace with: “Heckler”@@ -5627,6 +5693,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 4391 | The young Greek, Michaelis, who ran the coffee joint beside the ashheaps was the+ | ^~~~~~~~ `ashheaps` should probably be written as `ash heaps`.+ 4392 | principal witness at the inquest. He had slept through the heat until after+Suggest:+ - Replace with: “ash heaps”+++Lint: Spelling (63 priority)Message: |4394 | office—really sick, pale as his own pale hair and shaking all over. Michaelis@@ -5795,6 +5871,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 4470 | a little book. At first I couldn’t find the source of the high, groaning words+ 4471 | that echoed clamorously through the bare garage—then I saw Wilson standing on+ | ^~~~~~~~~~~ `clamorously` should probably be written as `cl amorously`.+Suggest:+ - Replace with: “cl amorously”+++Lint: Spelling (63 priority)Message: |4479 | “Oh, my Ga-od! Oh, my Ga-od! Oh, Ga-od! Oh, my Ga-od!”@@ -5966,8 +6052,8 @@ Message: || ^~~ Did you mean to spell `ina` this way?Suggest:- Replace with: “in”- - Replace with: “inc”- Replace with: “ind”+ - Replace with: “inf”@@ -6031,7 +6117,7 @@ Message: |Suggest:- Replace with: “gain”- Replace with: “gin”- - Replace with: “going”+ - Replace with: “goon”@@ -6051,7 +6137,7 @@ Message: |Suggest:- Replace with: “gain”- Replace with: “gin”- - Replace with: “going”+ - Replace with: “goon”@@ -6123,7 +6209,7 @@ Message: |Suggest:- Replace with: “gain”- Replace with: “gin”- - Replace with: “going”+ - Replace with: “goon”@@ -6423,6 +6509,15 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 5015 | When I passed the ashheaps on the train that morning I had crossed deliberately+ | ^~~~~~~~ `ashheaps` should probably be written as `ash heaps`.+Suggest:+ - Replace with: “ash heaps”+++Lint: Readability (127 priority)Message: |5016 | to the other side of the car. I supposed there’d be a curious crowd around there@@ -6669,6 +6764,16 @@ Suggest:+Lint: Typo (31 priority)+Message: |+ 5146 | Wilson’s glazed eyes turned out to the ashheaps, where small gray clouds took on+ | ^~~~~~~~ `ashheaps` should probably be written as `ash heaps`.+ 5147 | fantastic shapes and scurried here and there in the faint dawn wind.+Suggest:+ - Replace with: “ash heaps”+++Lint: Formatting (255 priority)Message: |5151 | and walked to the rear window and leaned with his face pressed against it—“and I@@ -6724,8 +6829,8 @@ Message: || ^~~~~~~~~ Did you mean to spell `Eckleburg` this way?Suggest:- Replace with: “Excalibur”- - Replace with: “Heckler”- Replace with: “Vicksburg”+ - Replace with: “Heckler”@@ -7028,7 +7133,7 @@ Message: |Suggest:- Replace with: “eta”- Replace with: “etc.”- - Replace with: “ethic”+ - Replace with: “enc”@@ -7037,9 +7142,9 @@ Message: |5333 | “This is Slagle speaking . . .”| ^~~~~~ Did you mean to spell `Slagle` this way?Suggest:+ - Replace with: “Slag's”- Replace with: “Sable”- Replace with: “Sage”- - Replace with: “Sale”@@ -8009,8 +8114,8 @@ Message: |5818 | contemplation he neither understood nor desired, face to face for the last timeSuggest:- Replace with: “aesthetic”- - Replace with: “aesthetics”- Replace with: “pathetic”+ - Replace with: “aesthetics”diff --git a/harper-tex/tests/test_sources/many_tags.tex b/harper-tex/tests/test_sources/many_tags.texindex 1990e03e0..38e75bd64 100644--- a/harper-tex/tests/test_sources/many_tags.tex+++ b/harper-tex/tests/test_sources/many_tags.tex@@ -33,7 +33,7 @@ In structured lines the meaning flows,\\Between the commands the language grows.\end{verse}-\section{Figures and aptions}+\section{Figures and capptions}\begin{figure}[h]\centeringdiff --git a/packages/harper.js/src/Linter.test.ts b/packages/harper.js/src/Linter.test.tsindex 43fc1981f..c77c0e797 100644--- a/packages/harper.js/src/Linter.test.ts+++ b/packages/harper.js/src/Linter.test.ts@@ -296,7 +296,7 @@ for (const [linterName, Linter] of Object.entries(linters)) {});test(`${linterName} can reimport ignored lints.`, async () => {- const source = 'This is an test of xporting lints.';+ const source = 'This is an test of exprting lints.';const firstLinter = new Linter({ binary });