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 @@ -766,6 +766,13 @@ pub fn lint_group() -> LintGroup {
"Corrects non-standard 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 @@ -252,6 +252,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
),
"MakeDoWith" => (
&[
("make due with", "make do with"),
Expand Down
Loading