Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions harper-core/src/linting/phrase_corrections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,13 @@ pub fn lint_group() -> LintGroup {
"Corrects nonstandard variants of `low-hanging fruit`.",
LintKind::Usage
),
"LoAndBehold" => (
["low and behold"],
["lo and behold"],
"The correct form is `lo and behold`.",
"Corrects non-standard variant of `lo and behold`.",
LintKind::Malapropism
),
"ManagerialReins" => (
["managerial reigns"],
["managerial reins"],
Expand Down
16 changes: 16 additions & 0 deletions harper-core/src/linting/phrase_set_corrections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,22 @@ pub fn lint_group() -> LintGroup {
"`Invest` is traditionally followed by 'in,' not `into.`",
LintKind::Usage
),
"JackOLantern" => (
&[
// Singular
("jack o lantern", "jack o'lantern"),
("jack olantern", "jack o'lantern"),
("jackolantern", "jack-o'-lantern"),
("jack-o-lantern", "jack-o'-lantern"),
// Plural
("jack o lanterns", "jack o'lanterns"),
("jack olantern", "jack o'lanterns"),
( "jackolanterns", "jack-o'-lanterns"),
( "jack-o-lanterns", "jack-o'-lanterns"),
],
"Use contraction when referring to `jack-o'-lantern`",
LintKind::Punctuation
),

// General litotes (double negatives) → direct positive suggestions
"LitotesDirectPositive" => (
Expand Down
Loading