Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: sort alphabetically (#1399)
Andrew Dunbar292720388f02
diff --git a/harper-core/src/linting/phrase_corrections/mod.rs b/harper-core/src/linting/phrase_corrections/mod.rsindex 9423fe5c6..90a6d6096 100644--- a/harper-core/src/linting/phrase_corrections/mod.rs+++ b/harper-core/src/linting/phrase_corrections/mod.rs@@ -30,75 +30,124 @@ pub fn lint_group() -> LintGroup {add_exact_mappings!(group, {// The name of the rule- "ChangeTack" => (+ "ACoupleMore" => (// The phrase(s) to look for.- ["change tact", "change tacks", "change tacts"],+ ["a couple of more"],// The corrections to provide.- ["change tack"],+ ["a couple more"],// The message to be shown with the error.- "Did you mean `change tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "The correct wording is `a couple more`, without the `of`.",// A description of the rule.- "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."+ "Corrects `a couple of more` to `a couple more`."),- "ChangedTack" => (- ["changed tact", "changed tacks", "changed tacts"],- ["changed tack"],- "Did you mean `changed tack`? This idiom is commonly used to indicate a change in direction or approach.",- "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."+ "AfterAWhile" => (+ ["after while"],+ ["after a while"],+ "When describafterg a timeframe, use `a while`.",+ "Corrects the missing article after `after while` or `after awhile`, forming `after a while`."),- "ChangesTack" => (- ["changes tact", "changes tacks", "changes tacts"],- ["changes tack"],- "Did you mean `changes tack`? This idiom is commonly used to indicate a change in direction or approach.",- "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."+ "AllOfASudden" => (+ ["all of the sudden"],+ ["all of a sudden"],+ "The phrase is `all of a sudden`, meaning `unexpectedly`.",+ "Corrects `all of the sudden` to `all of a sudden`."),- "ChangingTack" => (- ["changing tact", "changing tacks", "changing tacts"],- ["changing tack"],- "Did you mean `changing tack`? This idiom is commonly used to indicate a change in direction or approach.",- "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."+ "ALongTime" => (+ ["along time"],+ ["a long time"],+ "Use `a long time` for referring to a duration of time.",+ "Corrects `along time` to `a long time`."),- "ChangeOfTack" => (- ["change of tact", "change of tacks", "change of tacts"],- ["change of tack"],- "Did you mean `change of tack`? This idiom is commonly used to indicate a change in direction or approach.",- "Locates errors in the idiom `change of tack` to convey the correct meaning of an alternative course or strategy."+ "ALotWorst" => (+ ["a lot worst", "alot worst"],+ ["a lot worse"],+ "Use `worse` for comparing. (`Worst` is for the extreme case)",+ "Corrects `a lot worst` to `a lot worse` for proper comparative usage."),- "ChangesOfTack" => (- ["changes of tact", "changes of tacks", "changes of tacts"],- ["changes of tack"],- "Did you mean `changes of tack`? This idiom is commonly used to indicate changes in direction or approach.",- "Locates errors in the idiom `change of tack` to convey the correct meaning of an alternative course or strategy."+ "AlzheimersDisease" => (+ ["old-timers' disease"],+ ["Alzheimer’s disease"],+ "Use the correct medical term.",+ "Fixes the common misnomer `old-timers' disease`, ensuring the correct medical term `Alzheimer’s disease` is used."),- "ChangingOfTack" => (- ["changing of tact", "changing of tacks", "changing of tacts"],- ["changing of tack"],- "Did you mean `changing of tack`? This idiom is commonly used to indicate a change in direction or approach.",- "Locates errors in the idiom `to change of tack` to convey the correct meaning of altering one's course or strategy."+ "AnAnother" => (+ ["an another", "a another"],+ ["another"],+ "Use `another` on its own.",+ "Corrects `an another` and `a another`."),- "WantBe" => (- ["want be"],- ["won't be", "want to be"],- "Did you mean `won't be` or `want to be`?",- "Detects incorrect usage of `want be` and suggests `won't be` or `want to be` based on context."+ "AndIn" => (+ ["an in"],+ ["and in"],+ "Did you mean `and in`?",+ "Fixes the incorrect phrase `an in` to `and in` for proper conjunction usage."),- "StateOfTheArt" => (- ["state of art"],- ["state of the art"],- "Did you mean `state of the art`?",- "Detects incorrect usage of `state of art` and suggests `state of the art` as the correct phrase."+ "AndTheLike" => (+ ["an the like"],+ ["and the like"],+ "Did you mean `and the like`?",+ "Fixes the typo in `and the like`."),- "FaceFirst" => (- ["face first into"],- ["face-first into"],- "Should this be `face-first`?",- "Ensures `face first` is correctly hyphenated as `face-first` when used before `into`."+ "AnotherAn" => (+ ["another an"],+ ["another"],+ "Use `another` on its own.",+ "Corrects `another an` to `another`."),- "EludedTo" => (- ["eluded to"],- ["alluded to"],- "Did you mean `alluded to`?",- "Corrects `eluded to` to `alluded to` in contexts referring to indirect references."+ "AnotherOnes" => (+ ["another ones"],+ ["another one", "another one's", "other ones"],+ "`another` is singular but `ones` is plural. Or maybe you meant the possessive `one's`.",+ "Corrects `another ones`."+ ),+ "AnotherThings" => (+ ["another things"],+ ["another thing", "other things"],+ "`another` is singular but `things` is plural.",+ "Corrects `another things`."+ ),+ "AsFarBackAs" => (+ ["as early back as"],+ ["as far back as"],+ "Use `as far back as` for referring to a time in the past.",+ "Corrects nonstandard `as early back as` to `as far back as`."+ ),+ "AsOfLate" => (+ ["as of lately"],+ ["as of late"],+ "The standard form is `as of late`.",+ "Corrects `as of lately` to `as of late`."+ ),+ "AsWell" => (+ ["aswell"],+ ["as well"],+ "`as well` should be written as two words.",+ "Corrects `aswell` to `as well`."+ ),+ "AtFaceValue" => (+ ["on face value"],+ ["at face value"],+ "`at face value is more idiomatic and more common.",+ "Corrects `on face value` to the more usual `at face value`."+ ),+ "AvoidAndAlso" => (+ ["and also"],+ ["and"],+ "Consider using just `and`.",+ "Reduces redundancy by replacing `and also` with `and`."+ ),+ // Avoid suggestions resulting in "a entire ...."+ "AWholeEntire" => (+ ["a whole entire"],+ ["a whole", "an entire"],+ "Avoid redundancy. Use either `whole` or `entire` for referring to the complete amount or extent.",+ "Corrects the redundancy in `whole entire` to `whole` or `entire`."+ ),+ "BadRap" => (+ ["bed rap", "bad rep"],+ ["bad rap"],+ "Did you mean `bad rap`?",+ "Changes `bed rap` to the proper idiom `bad rap`."),"BaitedBreath" => (["baited breath"],@@ -106,77 +155,29 @@ pub fn lint_group() -> LintGroup {"Did you mean `bated breath`?","Ensures `bated breath` is written correctly, as `baited breath` is incorrect."),+ "BanTogether" => (+ ["ban together"],+ ["band together"],+ "Did you mean `band together`?",+ "Detects and corrects the common error of using `ban together` instead of the idiom `band together`, which means to unite or join forces."+ ),"BareInMind" => (["bare in mind"],["bear in mind"],"Did you mean `bear in mind`?","Ensures the phrase `bear in mind` is used correctly instead of `bare in mind`."),- "MutePoint" => (- ["mute point"],- ["moot point"],- "Did you mean `moot point`?",- "Ensures `moot point` is used instead of `mute point`, as `moot` means debatable or irrelevant."- ),- "RoadMap" => (- ["roadmap"],- ["road map"],- "Did you mean `road map`?",- "Detects when `roadmap` is used instead of `road map`, prompting the correct spacing."- ),- "SameAs" => (- ["same then"],- ["same as"],- "Did you mean `same as`?",- "Corrects the incorrect phrase `same then` to the standard `same as`."- ),- "SoonerOrLater" => (- ["sooner than later"],- ["sooner rather than later", "sooner or later"],- "Did you mean `sooner rather than later` or `sooner or later`?",- "Fixes the improper phrase `sooner than later` by suggesting standard alternatives."- ),- "HadOf" => (- ["had of"],- ["had have", "had've"],- "Did you mean `had have` or `had've`?",- "Flags the unnecessary use of `of` after `had` and suggests the correct forms."- ),- "FatalOutcome" => (- ["fatal outcome"],- ["death"],- "Consider using `death` for clarity.",- "Replaces `fatal outcome` with the more direct term `death` for conciseness."- ),- "NotTo" => (- ["no to"],- ["not to"],- "Did you mean `not to`?",- "Corrects `no to` to `not to`, ensuring proper negation."- ),- "ThatThis" => (- ["the this"],- ["that this"],- "Did you mean `that this`?",- "Fixes `the this` to the correct phrase `that this`."- ),- "CondenseAllThe" => (- ["all of the"],- ["all the"],- "Consider simplifying to `all the`.",- "Suggests removing `of` in `all of the` for a more concise phrase."- ),- "AvoidAndAlso" => (- ["and also"],- ["and"],- "Consider using just `and`.",- "Reduces redundancy by replacing `and also` with `and`."+ "BatedBreath" => (+ ["baited breath"],+ ["bated breath"],+ "Did you mean `bated breath`?",+ "Changes `baited breath` to the correct `bated breath`."),- "AndIn" => (- ["an in"],- ["and in"],- "Did you mean `and in`?",- "Fixes the incorrect phrase `an in` to `and in` for proper conjunction usage."+ "BeckAndCall" => (+ ["back and call"],+ ["beck and call"],+ "Did you mean `beck and call`?",+ "Fixes `back and call` to `beck and call`."),"BeenThere" => (["bee there"],@@ -184,83 +185,23 @@ pub fn lint_group() -> LintGroup {"Did you mean `been there`?","Corrects the misspelling `bee there` to the proper phrase `been there`."),- "CanBeSeen" => (- ["can be seem"],- ["can be seen"],- "Did you mean `can be seen`?",- "Corrects `can be seem` to the proper phrase `can be seen`."- ),- "GoingTo" => (- ["gong to"],- ["going to"],- "Did you mean `going to`?",- "Corrects `gong to` to the intended phrase `going to`."+ "BestRegards" => (+ ["beat regards"],+ ["best regards"],+ "Use `best regards` to convey sincere well wishes in a closing.",+ "In valedictions, `best` expresses your highest regard—avoid the typo `beat regards`."),- "IAm" => (- ["I a m"],- ["I am"],- "Did you mean `I am`?",- "Fixes the incorrect spacing in `I a m` to properly form `I am`."- ),- "ItCan" => (- ["It cam"],- ["It can"],- "Did you mean `It can`?",- "Corrects the misspelling `It cam` to the proper phrase `It can`."- ),- "MyHouse" => (- ["mu house"],- ["my house"],- "Did you mean `my house`?",- "Fixes the typo `mu house` to `my house`."- ),- "OperativeSystem" => (- ["operative system"],- ["operating system"],- "Did you mean `operating system`?",- "Ensures `operating system` is used correctly instead of `operative system`."- ),- "OperativeSystems" => (- ["operative systems"],- ["operating systems"],- "Did you mean `operating systems`?",- "Ensures `operating systems` is used correctly instead of `operative systems`."- ),- "BanTogether" => (- ["ban together"],- ["band together"],- "Did you mean `band together`?",- "Detects and corrects the common error of using `ban together` instead of the idiom `band together`, which means to unite or join forces."- ),- "WaveFunction" => (- ["wavefunction"],- ["wave function"],- "Did you mean `wave function`?",- "Identifies the mistake of merging `wave` and `function` into one word. In quantum mechanics, a `wave function` (written as two words) describes the mathematical function that represents the quantum state of a particle or system. Correct usage is crucial for clear and accurate scientific communication."- ),- "InThe" => (- ["int he"],- ["in the"],- "Did you mean `in the`?",- "Detects and corrects a spacing error where `in the` is mistakenly written as `int he`. Proper spacing is essential for readability and grammatical correctness in common phrases."- ),- "WillContain" => (- ["will contains"],- ["will contain"],- "Did you mean `will contain`?",- "Incorrect verb form: `will` should be followed by the base form `contain`."- ),- "IsKnownFor" => (- ["is know for"],- ["is known for"],- "Did you mean `is known for`?",- "Typo: `known` is the correct past participle."+ "BlanketStatement" => (+ ["blanketed statement"],+ ["blanket statement"],+ "Use the more idiomatic phrasing.",+ "Corrects common errors in the phrase `blanket statement`."),- "PointIsMoot" => (- ["your point is mute"],- ["your point is moot"],- "Did you mean `your point is moot`?",- "Typo: `moot` (meaning debatable) is correct rather than `mute`."+ "Brutality" => (+ ["brutalness"],+ ["brutality"],+ "This word has a more standard, more common synonym.",+ "Suggests the more standard and common synonym `brutality`."),"ByAccident" => (["on accident"],@@ -268,191 +209,221 @@ pub fn lint_group() -> LintGroup {"Did you mean `by accident`?","Incorrect preposition: `by accident` is the idiomatic expression."),- "ThatChallenged" => (- ["the challenged"],- ["that challenged"],- "Did you mean `that challenged`?",- "Changes `the challenged` to `that challenged` to fix the misspelling."+ "CanBeSeen" => (+ ["can be seem"],+ ["can be seen"],+ "Did you mean `can be seen`?",+ "Corrects `can be seem` to the proper phrase `can be seen`."),- "TurnItOff" => (- ["turn it of", "turn i of"],- ["turn it off"],- "Did you mean `turn it off`?",- "Fixes the mistake in the phrase `turn it off`."+ "CaseInPoint" => (+ ["case and point"],+ ["case in point"],+ "`Case in point` is the correct form of the phrase.",+ "Corrects `case and point` to `case in point`."),- "HumanLife" => (- ["human live"],- ["human life"],- "Did you mean `human life`?",- "Changes `human live` to `human life`."+ "CaseSensitive" => (+ ["case sensitive"],+ ["case-sensitive"],+ "Use the hyphenated form for `case-sensitive`.",+ "Ensures `case-sensitive` is correctly hyphenated."),- "NeedHelp" => (- ["ned help"],- ["need help"],- "Did you mean `need help`?",- "Changes `ned help` to the correct `need help`."+ "ChangedTack" => (+ ["changed tact", "changed tacks", "changed tacts"],+ ["changed tack"],+ "Did you mean `changed tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."),- "AndTheLike" => (- ["an the like"],- ["and the like"],- "Did you mean `and the like`?",- "Fixes the typo in `and the like`."+ "ChangeOfTack" => (+ ["change of tact", "change of tacks", "change of tacts"],+ ["change of tack"],+ "Did you mean `change of tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `change of tack` to convey the correct meaning of an alternative course or strategy."),- "BatedBreath" => (- ["baited breath"],- ["bated breath"],- "Did you mean `bated breath`?",- "Changes `baited breath` to the correct `bated breath`."+ "ChangesOfTack" => (+ ["changes of tact", "changes of tacks", "changes of tacts"],+ ["changes of tack"],+ "Did you mean `changes of tack`? This idiom is commonly used to indicate changes in direction or approach.",+ "Locates errors in the idiom `change of tack` to convey the correct meaning of an alternative course or strategy."),- "BeckAndCall" => (- ["back and call"],- ["beck and call"],- "Did you mean `beck and call`?",- "Fixes `back and call` to `beck and call`."+ "ChangesTack" => (+ ["changes tact", "changes tacks", "changes tacts"],+ ["changes tack"],+ "Did you mean `changes tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."),- "LetAlone" => (- ["let along"],- ["let alone"],- "Did you mean `let alone`?",- "Changes `let along` to `let alone`."+ "ChangeTack" => (+ ["change tact", "change tacks", "change tacts"],+ ["change tack"],+ "Did you mean `change tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."),- "SneakingSuspicion" => (- ["sneaky suspicion"],- ["sneaking suspicion"],- "Did you mean `sneaking suspicion`?",- "Changes `sneaky suspicion` to `sneaking suspicion`."+ "ChangingOfTack" => (+ ["changing of tact", "changing of tacks", "changing of tacts"],+ ["changing of tack"],+ "Did you mean `changing of tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `to change of tack` to convey the correct meaning of altering one's course or strategy."),- "SpecialAttention" => (- ["spacial attention"],- ["special attention"],- "Did you mean `special attention`?",- "Changes `spacial attention` to `special attention`."+ "ChangingTack" => (+ ["changing tact", "changing tacks", "changing tacts"],+ ["changing tack"],+ "Did you mean `changing tack`? This idiom is commonly used to indicate a change in direction or approach.",+ "Locates errors in the idiom `to change tack` to convey the correct meaning of altering one's course or strategy."),- "SupposedTo" => (- ["suppose to"],- ["supposed to"],- "Did you mean `supposed to`?",- "Fixes `suppose to` to the correct `supposed to`."+ "ChockFull" => (+ ["chock full"],+ ["chock-full"],+ "Use the hyphenated form for `chock-full`.",+ "Ensures `chock-full` is correctly hyphenated."),- "KindRegards" => (- ["kid regards"],- ["kind regards"],- "Did you mean `kind regards`?",- "Changes `kid regards` to `kind regards`."+ "ClientSide" => (+ ["client's side"],+ ["client-side"],+ "In client-server contexts, use `client-side` rather than `client's side`.",+ "Corrects `client's side` to `client-side`, which is usual in `client-server contexts`."),- "ThoughtProcess" => (- ["though process"],- ["thought process"],- "Did you mean `thought process`?",- "Changes `though process` to `thought process`."+ "CondenseAllThe" => (+ ["all of the"],+ ["all the"],+ "Consider simplifying to `all the`.",+ "Suggests removing `of` in `all of the` for a more concise phrase."),- "BadRap" => (- ["bed rap", "bad rep"],- ["bad rap"],- "Did you mean `bad rap`?",- "Changes `bed rap` to the proper idiom `bad rap`."+ "CoursingThroughVeins" => (+ ["cursing through veins"],+ ["coursing through veins"],+ "In this idiom, blood “courses” (flows) through veins, not “curses”.",+ "In English idioms, “to course” means to flow rapidly—so avoid the eggcorn `cursing through veins.`"),- "OfCourse" => (- ["off course", "o course"],- ["Of course"],- "Did you mean `of course`?",- "Detects the non‐idiomatic phrase `off course` and suggests the correct form `of course`."+ "DampSquib" => (+ ["damp squid"],+ ["damp squib"],+ "Use the correct phrase for a disappointing outcome.",+ "Corrects the eggcorn `damp squid` to `damp squib`, ensuring the intended meaning of a failed or underwhelming outcome."),- "FastPaste" => (- ["fast paste", "fast-paste"],- ["fast-paced"],- "Did you mean `fast-paced`?",- "Detects incorrect usage of `fast paste` or `fast-paste` and suggests `fast-paced` as the correct phrase."+ "DayAndAge" => (+ ["day in age"],+ ["day and age"],+ "Use `day and age` for referring to the present time.",+ "Corrects the eggcorn `day in age` to `day and age`, which properly means the current era or time period."),- "EnMasse" => (- ["on mass", "on masse", "in mass"],- ["en masse"],- "Did you mean `en masse`?",- "Detects variants like `on mass` or `in mass` and suggests `en masse`."+ "DefiniteArticle" => (+ ["definitive article"],+ ["definite article"],+ "The correct term for `the` is `definite article`.",+ "The name of the word `the` is `definite article`."),- "HungerPang" => (- ["hunger pain"],- ["hunger pang"],- "Did you mean `hunger pang`?",- "Corrects `hunger pain` to `hunger pang`."+ "DefiniteArticles" => (+ ["definitive articles"],+ ["definite articles"],+ "The correct term for `the` is `definite article`.",+ "The name of the word `the` is `definite article`."),- "GetRidOff" => (- ["get rid off", "get ride of", "get ride off"],- ["get rid of"],- "Did you mean `get rid of`?",- "Ensures `get rid of` is used instead of `get rid off`."+ "Discuss" => (+ ["discuss about"],+ ["discuss"],+ "`About` is redundant",+ "Removes unnecessary `about` after `discuss`."),- "GetsRidOff" => (- ["gets rid off", "gets ride of", "gets ride off"],- ["gets rid of"],- "Did you mean `gets rid of`?",- "Ensures `gets rid of` is used instead of `gets rid off`."- ),- "GettingRidOff" => (- ["getting rid off", "getting ride of", "getting ride off"],- ["getting rid of"],- "Did you mean `getting rid of`?",- "Ensures `getting rid of` is used instead of `getting rid off`."+ "Discussed" => (+ ["discussed about"],+ ["discussed"],+ "Use `discussed` without `about`.",+ "Removes unnecessary `about` after `discussed`."),- "GotRidOff" => (- ["got rid off", "got ride of", "got ride off"],- ["got rid of"],- "Did you mean `got rid of`?",- "Ensures `got rid of` is used instead of `got rid off`."+ "Discusses" => (+ ["discusses about"],+ ["discusses"],+ "`About` is redundant",+ "Removes unnecessary `about` after `discusses`."),- "GottenRidOff" => (- ["gotten rid off", "gotten ride of", "gotten ride off"],- ["gotten rid of"],- "Did you mean `gotten rid of`?",- "Ensures `gotten rid of` is used instead of `gotten rid off`."+ "Discussing" => (+ ["discussing about"],+ ["discussing"],+ "`About` is redundant",+ "Removes unnecessary `about` after `discussing`."),- "LastButNotLeast" => (- ["last but not the least", "last, but not the least", "last but, not least", "last but not last"],- ["last but not least"],- "Use the more idiomatic phrasing.",- "Corrects common errors in the phrase `last but not least`."+ "DoNotWant" => (+ ["don't wan", "do not wan"],+ ["don't want", "do not want"],+ "Use the full verb “want” after negation: “don't want” or “do not want.”",+ "In English, negation still requires the complete verb form (“want”), so avoid truncating it to “wan.”"),- "BlanketStatement" => (- ["blanketed statement"],- ["blanket statement"],- "Use the more idiomatic phrasing.",- "Corrects common errors in the phrase `blanket statement`."+ "EachAndEveryOne" => (+ ["each and everyone"],+ ["each and every one"],+ "Use `each and every one` for referring to a group of people or things.",+ "Corrects `each and everyone` to `each and every one`."),- "SpokeTooSoon" => (- ["spoke to soon"],- ["spoke too soon"],- "Use the adverb `too` instead.",- "Identifies common misuse of the preposition `to` in the phrase `spoke too soon`."+ "EludedTo" => (+ ["eluded to"],+ ["alluded to"],+ "Did you mean `alluded to`?",+ "Corrects `eluded to` to `alluded to` in contexts referring to indirect references."),- "TakeItSeriously" => (- ["take it serious"],- ["take it seriously"],- "Did you mean `take it seriously`?",- "Ensures the correct use of the adverb `seriously` instead of the adjective `serious` in phrases like `take it seriously`."+ "EnMasse" => (+ ["on mass", "on masse", "in mass"],+ ["en masse"],+ "Did you mean `en masse`?",+ "Detects variants like `on mass` or `in mass` and suggests `en masse`."),- "PiggyBag" => (- ["piggy bag"],- ["piggyback"],- "Did you mean `piggyback`?",- "Corrects the eggcorn `piggy bag` to `piggyback`, which is the proper term for riding on someone’s back or using an existing system."+ "EverPresent" => (+ ["ever present"],+ ["ever-present"],+ "Hyphenate `ever-present` when it functions as a compound adjective.",+ "Corrects the missing hyphen in `ever present` to the compound adjective `ever-present`."),- "PiggyBagging" => (- ["piggy bagging"],- ["piggybacking"],- "Did you mean `piggybacking`?",- "Corrects the eggcorn `piggy bagging` to `piggybacking`, the proper verb form for riding on someone’s back or leveraging an existing system."+ "Excellent" => (+ ["very good"],+ ["excellent"],+ "Vocabulary enhancement: use `excellent` instead of `very good`",+ "Provides a stronger word choice by replacing `very good` with `excellent` for clarity and emphasis."),- "PiggyBagged" => (- ["piggy bagged"],- ["piggybacked"],- "Did you mean `piggybacked`?",- "Corrects the eggcorn `piggy bagged` to `piggybacked`, the proper past tense form for riding on someone’s back or making use of an existing system."+ "ExpandBecause" => (+ ["cuz"],+ ["because"],+ "Use `because` instead of informal `cuz`",+ "Expands the informal abbreviation `cuz` to the full word `because` for formality."),- "DampSquib" => (- ["damp squid"],- ["damp squib"],- "Use the correct phrase for a disappointing outcome.",- "Corrects the eggcorn `damp squid` to `damp squib`, ensuring the intended meaning of a failed or underwhelming outcome."+ "ExpandDependencies" => (+ ["deps"],+ ["dependencies"],+ "Use `dependencies` instead of `deps`",+ "Expands the abbreviation `deps` to the full word `dependencies` for clarity."+ ),+ "ExpandDependency" => (+ ["dep"],+ ["dependency"],+ "Use `dependency` instead of `dep`",+ "Expands the abbreviation `dep` to the full word `dependency` for clarity."+ ),+ "ExpandMinimum" => (+ ["min"],+ ["minimum"],+ "Use `minimum` instead of `min`",+ "Expands the abbreviation `min` to the full word `minimum` for clarity."+ ),+ "ExpandStandardInput" => (+ ["stdin"],+ ["standard input"],+ "Use `standard input` instead of `stdin`",+ "Expands the abbreviation `stdin` to `standard input` for clarity."+ ),+ "ExpandStandardOutput" => (+ ["stdout"],+ ["standard output"],+ "Use `standard output` instead of `stdout`",+ "Expands the abbreviation `stdout` to `standard output` for clarity."+ ),+ "ExpandWith" => (+ ["w/"],+ ["with"],+ "Use `with` instead of `w/`",+ "Expands the abbreviation `w/` to the full word `with` for clarity."+ ),+ "ExpandWithout" => (+ ["w/o"],+ ["without"],+ "Use `without` instead of `w/o`",+ "Expands the abbreviation `w/o` to the full word `without` for clarity."),"Expatriate" => (["ex-patriot"],@@ -460,6 +431,54 @@ pub fn lint_group() -> LintGroup {"Use the correct term for someone living abroad.","Fixes the misinterpretation of `expatriate`, ensuring the correct term is used for individuals residing abroad."),+ "ExplanationMark" => (+ ["explanation mark"],+ ["exclamation mark"],+ "The correct name for the `!` punctuation is `exclamation mark`.",+ "Corrects the eggcorn `explanation mark` to `exclamation mark`."+ ),+ "ExplanationMarks" => (+ ["explanation marks"],+ ["exclamation marks"],+ "The correct name for the `!` punctuation is `exclamation mark`.",+ "Corrects the eggcorn `explanation mark` to `exclamation mark`."+ ),+ "ExplanationPoint" => (+ ["explanation point"],+ ["exclamation point"],+ "The correct name for the `!` punctuation is `exclamation point`.",+ "Corrects the eggcorn `explanation point` to `exclamation point`."+ ),+ "FaceFirst" => (+ ["face first into"],+ ["face-first into"],+ "Should this be `face-first`?",+ "Ensures `face first` is correctly hyphenated as `face-first` when used before `into`."+ ),+ "FairBit" => (+ ["fare bit"],+ ["fair bit"],+ "A `decent amount` is a `fair bit`. `Fare` is the price of a ticket.",+ "Corrects malapropisms of `a fair bit`."+ ),+ "FarWorse" => (+ ["far worst"],+ ["far worse"],+ "Use `worse` for comparing. (`Worst` is for the extreme case)",+ "Corrects `far worst` to `far worse` for proper comparative usage."+ ),+ "FastPaste" => (+ ["fast paste", "fast-paste"],+ ["fast-paced"],+ "Did you mean `fast-paced`?",+ "Detects incorrect usage of `fast paste` or `fast-paste` and suggests `fast-paced` as the correct phrase."+ ),+ "FatalOutcome" => (+ ["fatal outcome"],+ ["death"],+ "Consider using `death` for clarity.",+ "Replaces `fatal outcome` with the more direct term `death` for conciseness."+ ),"FetalPosition" => (["the feeble position"],["the fetal position"],@@ -472,173 +491,77 @@ pub fn lint_group() -> LintGroup {"Use the correct phrase meaning 'in every practical sense'.","Corrects `for all intensive purposes` to `for all intents and purposes`, ensuring the phrase conveys its intended meaning."),+ "ForALongTime" => (+ ["for along time"],+ ["for a long time"],+ "Use the standard phrase `for a long time` to indicate an extended duration.",+ "Eliminates the incorrect merging in `for along time`."+ ),+ "ForAWhile" => (+ ["for while"],+ ["for a while"],+ "When describing a timeframe, use `a while`.",+ "Corrects the missing article in `for while` or `for awhile`, forming `for a while`."+ ),"FreeRein" => (["free reign"],["free rein"],"Use the correct phrase for unrestricted control.","Ensures the correct use of `free rein`, avoiding confusion with `free reign`, which incorrectly suggests authority rather than freedom of action."),- "InOneFellSwoop" => (- ["in one foul swoop"],- ["in one fell swoop"],- "Use the correct phrase for something happening suddenly.",- "Corrects `in one foul swoop` to `in one fell swoop`, preserving the phrase’s original meaning of sudden and complete action."- ),- "JawDropping" => (- ["jar-dropping"],- ["jaw-dropping"],- "Use the correct phrase for something astonishing.",- "Corrects `jar-dropping` to `jaw-dropping`, ensuring the intended meaning of something that causes amazement."+ "Freezing" => (+ ["very cold", "really cold", "extremely cold"],+ ["freezing"],+ "A more vivid adjective would better capture extreme cold.",+ "Encourages vivid writing by suggesting `freezing` instead of weaker expressions like `very cold.`"),- "JustDeserts" => (- ["just desserts"],- ["just deserts"],- "Use the correct phrase for receiving what one deserves.",- "Ensures `just deserts` is used correctly, preserving its meaning of receiving an appropriate outcome for one's actions."+ "FurtherAdo" => (+ ["further adieu"],+ ["further ado"],+ "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",+ "Corrects `adieu` to `ado`."),- "AlzheimersDisease" => (- ["old-timers' disease"],- ["Alzheimer’s disease"],- "Use the correct medical term.",- "Fixes the common misnomer `old-timers' disease`, ensuring the correct medical term `Alzheimer’s disease` is used."+ "GetRidOff" => (+ ["get rid off", "get ride of", "get ride off"],+ ["get rid of"],+ "Did you mean `get rid of`?",+ "Ensures `get rid of` is used instead of `get rid off`."),- "OldWivesTale" => (- ["old wise tale"],- ["old wives' tale"],- "Use the correct phrase for a superstition or myth.",- "Corrects `old wise tale` to `old wives' tale`, preserving the phrase’s meaning as an unfounded traditional belief."- ),- "OnTheSpurOfTheMoment" => (- ["on the spurt of the moment"],- ["on the spur of the moment"],- "Use the correct phrase for acting spontaneously.",- "Ensures the correct use of `on the spur of the moment`, avoiding confusion with the incorrect `spurt` variation."- ),- "PrayingMantis" => (- ["preying mantis"],- ["praying mantis"],- "Use the insect's correct name.",- "Corrects `preying mantis` to `praying mantis`, ensuring accurate reference to the insect’s characteristic pose."- ),- "RealTrouper" => (- ["real trooper"],- ["real trouper"],- "Use the correct phrase for someone who perseveres.",- "Ensures the correct use of `real trouper`, distinguishing it from `trooper`, which refers to a soldier or police officer."- ),- "RifeWith" => (- ["ripe with"],- ["rife with"],- "Use the correct phrase for something abundant.",- "Corrects `ripe with` to `rife with`, preserving the phrase’s meaning of being filled with something, often undesirable."- ),- "ScantilyClad" => (- ["scandally clad"],- ["scantily clad"],- "Use the correct phrase for minimal attire.",- "Fixes `scandally clad` to `scantily clad`, ensuring clarity in describing minimal attire."- ),- "ToTheMannerBorn" => (- ["to the manor born"],- ["to the manner born"],- "Use the correct phrase for being naturally suited to something.",- "Corrects `to the manor born` to `to the manner born`, ensuring the intended meaning of being naturally suited to a way of life."- ),- "WhetYourAppetite" => (- ["wet your appetite"],- ["whet your appetite"],- "Use the correct phrase for stimulating desire.",- "Ensures `whet your appetite` is used correctly, distinguishing it from the incorrect `wet` variation."- ),- "CaseSensitive" => (- ["case sensitive"],- ["case-sensitive"],- "Use the hyphenated form for `case-sensitive`.",- "Ensures `case-sensitive` is correctly hyphenated."- ),- "ChockFull" => (- ["chock full"],- ["chock-full"],- "Use the hyphenated form for `chock-full`.",- "Ensures `chock-full` is correctly hyphenated."- ),- "OffTheCuff" => (- ["off the cuff"],- ["off-the-cuff"],- "Use the hyphenated form for `off-the-cuff`.",- "Ensures `off-the-cuff` is correctly hyphenated."- ),- "WellBeing" => (- ["wellbeing"],- ["well-being"],- "Use the hyphenated form for `well-being`.",- "Ensures `well-being` is correctly hyphenated."- ),- "SimpleGrammatical" => (- ["simply grammatical"],- ["simple grammatical"],- "Use `simple grammatical` for correct adjective usage.",- "Corrects `simply grammatical` to `simple grammatical` for proper adjective usage."- ),- "ThatChallenged" => (- ["the challenged"],- ["that challenged"],- "Use `that challenged` for correct relative clause.",- "Corrects `the challenged` to `that challenged` for proper relative clause usage."- ),- "ToDoHyphen" => (- ["todo"],- ["to-do"],- "Hyphenate `to-do`.",- "Ensures `to-do` is correctly hyphenated."- ),- "Discuss" => (- ["discuss about"],- ["discuss"],- "`About` is redundant",- "Removes unnecessary `about` after `discuss`."- ),- "Discussed" => (- ["discussed about"],- ["discussed"],- "Use `discussed` without `about`.",- "Removes unnecessary `about` after `discussed`."- ),- "Discusses" => (- ["discusses about"],- ["discusses"],- "`About` is redundant",- "Removes unnecessary `about` after `discusses`."+ "GetsRidOff" => (+ ["gets rid off", "gets ride of", "gets ride off"],+ ["gets rid of"],+ "Did you mean `gets rid of`?",+ "Ensures `gets rid of` is used instead of `gets rid off`."),- "Discussing" => (- ["discussing about"],- ["discussing"],- "`About` is redundant",- "Removes unnecessary `about` after `discussing`."+ "GettingRidOff" => (+ ["getting rid off", "getting ride of", "getting ride off"],+ ["getting rid of"],+ "Did you mean `getting rid of`?",+ "Ensures `getting rid of` is used instead of `getting rid off`."),- "WorldWarII" => (- ["world war 2", "world war ii", "world war ii", "world war ii", "world war ii"],- ["World War II"],- "Use the correct capitalization for `World War II`.",- "Ensures `World War II` is correctly capitalized."+ "GildedAge" => (+ ["guilded age"],+ ["Gilded Age"],+ "The period of economic prosperity is called the `Gilded Age`.",+ "If referring to the period of economic prosperity, the correct term is `Gilded Age`."),- "Towards" => (- ["to towards"],- ["towards"],- "Use `towards` without the preceding `to`.",- "Removes redundant `to` before `towards`."+ "GoingTo" => (+ ["gong to"],+ ["going to"],+ "Did you mean `going to`?",+ "Corrects `gong to` to the intended phrase `going to`."),- "Haphazard" => (- ["half hazard", "half-hazard", "halfhazard"],- ["haphazard"],- "Use `haphazard` for randomness or lack of organization.",- "Corrects the eggcorn `half hazard` to `haphazard`, which properly means lacking organization or being random."+ "GotRidOff" => (+ ["got rid off", "got ride of", "got ride off"],+ ["got rid of"],+ "Did you mean `got rid of`?",+ "Ensures `got rid of` is used instead of `got rid off`."),- "DayAndAge" => (- ["day in age"],- ["day and age"],- "Use `day and age` for referring to the present time.",- "Corrects the eggcorn `day in age` to `day and age`, which properly means the current era or time period."+ "GottenRidOff" => (+ ["gotten rid off", "gotten ride of", "gotten ride off"],+ ["gotten rid of"],+ "Did you mean `gotten rid of`?",+ "Ensures `gotten rid of` is used instead of `gotten rid off`."),"GuineaBissau" => (// Note: this lint matches any case but cannot correct wrong case@@ -651,130 +574,125 @@ pub fn lint_group() -> LintGroup {"The official spelling is hyphenated.","Checks for the correct official name of the African country."),- "PortAuPrince" => (- // Note: this lint matches any case but cannot correct wrong case- // Note: It can only correct the hyphenation- // Note: See linting/matcher.rs for case corrections- // Note: $input must already be the correct case- // Note: do not add other case variants here- ["Port au Prince"],- ["Port-au-Prince"],- "The official spelling is hyphenated.",- "Checks for the correct official name of the capital of Haiti."+ "HadGone" => (+ ["had went"],+ ["had gone"],+ "`Had gone` is the correct form.",+ "Corrects `had went` to `had gone`."),- "PortoNovo" => (- // Note: this lint matches any case but cannot correct wrong case- // Note: It can only correct the hyphenation- // Note: See linting/matcher.rs for case corrections- // Note: $input must already be the correct case- // Note: do not add other case variants here- ["Porto Novo"],- ["Porto-Novo"],- "The official spelling is hyphenated.",- "Checks for the correct official name of the capital of Benin."+ "HadOf" => (+ ["had of"],+ ["had have", "had've"],+ "Did you mean `had have` or `had've`?",+ "Flags the unnecessary use of `of` after `had` and suggests the correct forms."),- "NerveRacking" => (- ["nerve racking", "nerve wracking", "nerve wrecking", "nerve-wracking", "nerve-wrecking"],- ["nerve-racking"],- "Use `nerve-racking` for something that causes anxiety or tension.",- "Corrects common misspellings and missing hyphen in `nerve-racking`."+ "HadPassed" => (+ ["had past"],+ ["had passed"],+ "Did you mean the verb `passed`?",+ "Suggests `past` for `passed` in case a verb was intended."),- // Avoid suggestions resulting in "a entire ...."- "AWholeEntire" => (- ["a whole entire"],- ["a whole", "an entire"],- "Avoid redundancy. Use either `whole` or `entire` for referring to the complete amount or extent.",- "Corrects the redundancy in `whole entire` to `whole` or `entire`."+ "HalfAnHour" => (+ ["half an our"],+ ["half an hour"],+ "Remember the silent 'h' when writing `hour`: `half an hour`.",+ "Fixes the eggcorn `half an our` to the accepted `half an hour`."),- "WholeEntire" => (- ["whole entire"],- ["whole", "entire"],- "Avoid redundancy. Use either `whole` or `entire` for referring to the complete amount or extent.",- "Corrects the redundancy in `whole entire` to `whole` or `entire`."+ "Haphazard" => (+ ["half hazard", "half-hazard", "halfhazard"],+ ["haphazard"],+ "Use `haphazard` for randomness or lack of organization.",+ "Corrects the eggcorn `half hazard` to `haphazard`, which properly means lacking organization or being random."),- "InDetail" => (- ["in details"],- ["in detail"],- "Use singular `in detail` for referring to a detailed description.",- "Correct unidiomatic plural `in details` to `in detail`."+ "HasGone" => (+ ["has went"],+ ["has gone"],+ "`Has gone` is the correct form.",+ "Corrects `has went` to `has gone`."),- "InMoreDetail" => (- ["in more details"],- ["in more detail"],- "Use singular `in more detail` for referring to a detailed description.",- "Correct unidiomatic plural `in more details` to `in more detail`."+ "HasPassed" => (+ ["has past"],+ ["has passed"],+ "Did you mean the verb `passed`?",+ "Suggests `past` for `passed` in case a verb was intended."),- "TickingTimeClock" => (- ["ticking time clock"],- ["ticking time bomb", "ticking clock"],- "Use `ticking time bomb` for disastrous consequences, otherwise avoid redundancy with just `ticking clock`.",- "Corrects `ticking time clock` to `ticking time bomb` for idiomatic urgency or `ticking clock` otherwise."+ "HaveGone" => (+ ["have went"],+ ["have gone"],+ "`Have gone` is the correct form.",+ "Corrects `have went` to `have gone`."),- "InAndOfItself" => (- ["in of itself"],- ["in and of itself"],- "Use `in and of itself` for referring to something's inherent or intrinsic quality.",- "Corrects nonstandard `in of itself` to standard `in and of itself`."+ "HavePassed" => (+ ["have past"],+ ["have passed"],+ "Did you mean the verb `passed`?",+ "Suggests `past` for `passed` in case a verb was intended."),- "ALotWorst" => (- ["a lot worst", "alot worst"],- ["a lot worse"],- "Use `worse` for comparing. (`Worst` is for the extreme case)",- "Corrects `a lot worst` to `a lot worse` for proper comparative usage."+ "HavingGone" => (+ ["having went"],+ ["having gone"],+ "`Having gone` is the correct form.",+ "Corrects `having went` to `having gone`."),- "FarWorse" => (- ["far worst"],- ["far worse"],- "Use `worse` for comparing. (`Worst` is for the extreme case)",- "Corrects `far worst` to `far worse` for proper comparative usage."+ "HavingPassed" => (+ ["having past"],+ ["having passed"],+ "Did you mean the verb `passed`?",+ "Suggests `past` for `passed` in case a verb was intended."),- "MuchWorse" => (- ["much worst"],- ["much worse"],- "Use `worse` for comparing. (`Worst` is for the extreme case)",- "Corrects `much worst` to `much worse` for proper comparative usage."+ "HomedInOn" => (+ ["honed in on"],+ ["homed in on"],+ "Use `home in on` rather than `hone in on`",+ "Corrects `hone in on` to `home in on`."),- "TurnForTheWorse" => (- ["turn for the worst"],- ["turn for the worse"],- "Use `turn for the worse` for a negative change in circumstances. Avoid the incorrect `turn for the worst`.",- "Corrects the nonstandard `turn for the worst` to the idiomatic `turn for the worse`, used to describe a situation that has deteriorated."+ "HomeInOn" => (+ ["hone in on"],+ ["home in on"],+ "Use `home in on` rather than `hone in on`",+ "Corrects `hone in on` to `home in on`."),- "WorseAndWorse" => (- ["worst and worst", "worse and worst", "worst and worse"],- ["worse and worse"],- "Use `worse` for comparing. (`Worst` is for the extreme case)",- "Corrects `worst and worst` to `worse and worse` for proper comparative usage."+ "HomesInOn" => (+ ["hones in on"],+ ["homes in on"],+ "Use `home in on` rather than `hone in on`",+ "Corrects `hone in on` to `home in on`."),- "WorseCaseScenario" => (- ["worse case scenario", "worse-case scenario", "worse-case-scenario"],- ["worst-case scenario"],- "Use `worst` for referring to the worst possible scenario. (`Worse` is for comparing)",- "Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."+ "HomingInOn" => (+ ["honing in on"],+ ["homing in on"],+ "Use `home in on` rather than `hone in on`",+ "Corrects `hone in on` to `home in on`."),- "WorstCaseScenario" => (- ["worst case scenario", "worst-case-scenario"],- ["worst-case scenario"],- "Hyphenate `worst-case`.",- "Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."+ "HumanBeings" => (+ ["human's beings", "humans beings"],+ ["human beings"],+ "Use `human beings` to refer to people collectively.",+ "Eliminates the incorrect possessive/plural usage like `human's beings` or `humans beings`."),- "WorseThan" => (- ["worst than"],- ["worse than"],- "Use `worse` for comparing. (`Worst` is for the extreme case)",- "Corrects `worst than` to `worse than` for proper comparative usage."+ "HumanLife" => (+ ["human live"],+ ["human life"],+ "Did you mean `human life`?",+ "Changes `human live` to `human life`."),- "WorstEver" => (- ["worse ever"],- ["worst ever"],- "Use `worst` for the extreme case. (`Worse` is for comparing)",- "Corrects `worse ever` to `worst ever` for proper comparative usage."+ "HungerPang" => (+ ["hunger pain"],+ ["hunger pang"],+ "Did you mean `hunger pang`?",+ "Corrects `hunger pain` to `hunger pang`."),- "Monumentous" => (- ["monumentous"],- ["momentous", "monumental"],- "Retain `monumentous` for jocular effect. Otherwise `momentous` indicates great signifcance while `monumental` indicates imposing size.",- "Advises using `momentous` or `monumental` instead of `monumentous` for serious usage."+ "IAm" => (+ ["I a m"],+ ["I am"],+ "Did you mean `I am`?",+ "Fixes the incorrect spacing in `I a m` to properly form `I am`."+ ),+ "InAndOfItself" => (+ ["in of itself"],+ ["in and of itself"],+ "Use `in and of itself` for referring to something's inherent or intrinsic quality.",+ "Corrects nonstandard `in of itself` to standard `in and of itself`."),"InAnyWay" => (["in anyway"],@@ -782,41 +700,41 @@ pub fn lint_group() -> LintGroup {"Use `in any way` for emphasizing a point.","Corrects ungrammatical `in anyway` to `in any way`."),- "ExplanationMark" => (- ["explanation mark"],- ["exclamation mark"],- "The correct name for the `!` punctuation is `exclamation mark`.",- "Corrects the eggcorn `explanation mark` to `exclamation mark`."+ "InAWhile" => (+ ["in while"],+ ["in a while"],+ "When describing a timeframe, use `a while`.",+ "Corrects the missing article in `in while` or `in awhile`, forming `in a while`."),- "ExplanationMarks" => (- ["explanation marks"],- ["exclamation marks"],- "The correct name for the `!` punctuation is `exclamation mark`.",- "Corrects the eggcorn `explanation mark` to `exclamation mark`."+ "InCase" => (+ ["incase"],+ ["in case"],+ "`In case` should be written as two words.",+ "Corrects `incase` to `in case`."),- "ExplanationPoint" => (- ["explanation point"],- ["exclamation point"],- "The correct name for the `!` punctuation is `exclamation point`.",- "Corrects the eggcorn `explanation point` to `exclamation point`."+ "InDetail" => (+ ["in details"],+ ["in detail"],+ "Use singular `in detail` for referring to a detailed description.",+ "Correct unidiomatic plural `in details` to `in detail`."),- "AsFarBackAs" => (- ["as early back as"],- ["as far back as"],- "Use `as far back as` for referring to a time in the past.",- "Corrects nonstandard `as early back as` to `as far back as`."+ "InMoreDetail" => (+ ["in more details"],+ ["in more detail"],+ "Use singular `in more detail` for referring to a detailed description.",+ "Correct unidiomatic plural `in more details` to `in more detail`."),- "ALongTime" => (- ["along time"],- ["a long time"],- "Use `a long time` for referring to a duration of time.",- "Corrects `along time` to `a long time`."+ "InNeedOf" => (+ ["in need for"],+ ["in need of"],+ "Use `in need of` for when something is required or necessary.",+ "Corrects `in need for` to `in need of`."),- "EachAndEveryOne" => (- ["each and everyone"],- ["each and every one"],- "Use `each and every one` for referring to a group of people or things.",- "Corrects `each and everyone` to `each and every one`."+ "InOneFellSwoop" => (+ ["in one foul swoop"],+ ["in one fell swoop"],+ "Use the correct phrase for something happening suddenly.",+ "Corrects `in one foul swoop` to `in one fell swoop`, preserving the phrase’s original meaning of sudden and complete action."),"InsteadOf" => (["in stead of"],@@ -824,125 +742,197 @@ pub fn lint_group() -> LintGroup {"Use the modern single word `instead of` to indicate a replacement.","Corrects the archaic or mistaken separation `in stead of` to `instead of` in everyday usage."),+ "Insurmountable" => (+ ["unsurmountable"],+ ["insurmountable"],+ "This word has a more standard, more common synonym.",+ "Suggests the more standard and common synonym `insurmountable`."+ ),"Intact" => (["in tact"],["intact"],"Use `intact` to mean undamaged or whole.","Prevents the erroneous spacing in `in tact`; `intact` is the single correct word."),+ "InThe" => (+ ["int he"],+ ["in the"],+ "Did you mean `in the`?",+ "Detects and corrects a spacing error where `in the` is mistakenly written as `int he`. Proper spacing is essential for readability and grammatical correctness in common phrases."+ ),+ "InvestedIn" => (+ ["invested into"],+ ["invested in"],+ "Traditionally `invest` uses the preposition `in`.",+ "`Invest` is traditionally followed by 'in,' not `into.`"+ ),+ "InvestIn" => (+ ["invest into"],+ ["invest in"],+ "Traditionally `invest` uses the preposition `in`.",+ "`Invest` is traditionally followed by 'in,' not `into.`"+ ),+ "InvestingIn" => (+ ["investing into"],+ ["investing in"],+ "Traditionally `invest` uses the preposition `in`.",+ "`Invest` is traditionally followed by 'in,' not `into.`"+ ),+ "InvestsIn" => (+ ["invests into"],+ ["invests in"],+ "Traditionally `invest` uses the preposition `in`.",+ "`Invest` is traditionally followed by 'in,' not `into.`"+ ),+ "IsKnownFor" => (+ ["is know for"],+ ["is known for"],+ "Did you mean `is known for`?",+ "Typo: `known` is the correct past participle."+ ),+ "ItCan" => (+ ["It cam"],+ ["It can"],+ "Did you mean `It can`?",+ "Corrects the misspelling `It cam` to the proper phrase `It can`."+ ),"IveGotTo" => (["I've go to"],["I've got to"],"Use `I've got to` for necessity or obligation.","Corrects the slip `I've go to` to the idiomatic `I've got to`."),- "ForALongTime" => (- ["for along time"],- ["for a long time"],- "Use the standard phrase `for a long time` to indicate an extended duration.",- "Eliminates the incorrect merging in `for along time`."- ),- "InAWhile" => (- ["in while"],- ["in a while"],- "When describing a timeframe, use `a while`.",- "Corrects the missing article in `in while` or `in awhile`, forming `in a while`."+ "JawDropping" => (+ ["jar-dropping"],+ ["jaw-dropping"],+ "Use the correct phrase for something astonishing.",+ "Corrects `jar-dropping` to `jaw-dropping`, ensuring the intended meaning of something that causes amazement."),- "ForAWhile" => (- ["for while"],- ["for a while"],- "When describing a timeframe, use `a while`.",- "Corrects the missing article in `for while` or `for awhile`, forming `for a while`."+ "JustDeserts" => (+ ["just desserts"],+ ["just deserts"],+ "Use the correct phrase for receiving what one deserves.",+ "Ensures `just deserts` is used correctly, preserving its meaning of receiving an appropriate outcome for one's actions."),- "AfterAWhile" => (- ["after while"],- ["after a while"],- "When describafterg a timeframe, use `a while`.",- "Corrects the missing article after `after while` or `after awhile`, forming `after a while`."+ "KindOf" => (+ ["kinda of"],+ ["kind of", "kinda"],+ "`Kinda` already means `kind of`, so `kinda of` is redundant.",+ "Corrects `kinda of` to `kind of`."),- "HumanBeings" => (- ["human's beings", "humans beings"],- ["human beings"],- "Use `human beings` to refer to people collectively.",- "Eliminates the incorrect possessive/plural usage like `human's beings` or `humans beings`."+ "KindRegards" => (+ ["kid regards"],+ ["kind regards"],+ "Did you mean `kind regards`?",+ "Changes `kid regards` to `kind regards`."),- "HalfAnHour" => (- ["half an our"],- ["half an hour"],- "Remember the silent 'h' when writing `hour`: `half an hour`.",- "Fixes the eggcorn `half an our` to the accepted `half an hour`."+ "LastButNotLeast" => (+ ["last but not the least", "last, but not the least", "last but, not least", "last but not last"],+ ["last but not least"],+ "Use the more idiomatic phrasing.",+ "Corrects common errors in the phrase `last but not least`."),- "AnAnother" => (- ["an another", "a another"],- ["another"],- "Use `another` on its own.",- "Corrects `an another` and `a another`."+ "LastDitch" => (+ ["last ditch", "last ditched", "last-ditched"],+ ["last-ditch"],+ "In this idiom, `ditch` is a noun and a hyphen is needed.",+ "Corrects wrong variations of the idiomatic adjective `last-ditch`."),- "AnotherAn" => (- ["another an"],- ["another"],- "Use `another` on its own.",- "Corrects `another an` to `another`."+ "LetAlone" => (+ ["let along"],+ ["let alone"],+ "Did you mean `let alone`?",+ "Changes `let along` to `let alone`."),- "AnotherOnes" => (- ["another ones"],- ["another one", "another one's", "other ones"],- "`another` is singular but `ones` is plural. Or maybe you meant the possessive `one's`.",- "Corrects `another ones`."+ "LikeThePlague" => (+ ["like a plague"],+ ["like the plague"],+ "`Things are avoided `like the plague` not `like a plague`.",+ "Corrects `like a plague` to `like the plague`."),- "AnotherThings" => (- ["another things"],- ["another thing", "other things"],- "`another` is singular but `things` is plural.",- "Corrects `another things`."+ "LowHangingFruit" => (+ ["low hanging fruit", "low hanging fruits", "low-hanging fruits"],+ ["low-hanging fruit"],+ "The standard form is `low-hanging fruit` with a hyphen and singular form.",+ "Corrects non-standard variants of `low-hanging fruit`."),- "TheAnother" => (- ["the another"],- ["the other", "another"],- "Use `the other` or `another`, not both.",- "Corrects `the another`."+ "Monumentous" => (+ ["monumentous"],+ ["momentous", "monumental"],+ "Retain `monumentous` for jocular effect. Otherwise `momentous` indicates great signifcance while `monumental` indicates imposing size.",+ "Advises using `momentous` or `monumental` instead of `monumentous` for serious usage."),- "ExpandDependency" => (- ["dep"],- ["dependency"],- "Use `dependency` instead of `dep`",- "Expands the abbreviation `dep` to the full word `dependency` for clarity."+ "MuchAdo" => (+ ["much adieu"],+ ["much ado"],+ "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",+ "Corrects `adieu` to `ado`."),- "ExpandDependencies" => (- ["deps"],- ["dependencies"],- "Use `dependencies` instead of `deps`",- "Expands the abbreviation `deps` to the full word `dependencies` for clarity."+ "MuchWorse" => (+ ["much worst"],+ ["much worse"],+ "Use `worse` for comparing. (`Worst` is for the extreme case)",+ "Corrects `much worst` to `much worse` for proper comparative usage."),- "ExpandMinimum" => (- ["min"],- ["minimum"],- "Use `minimum` instead of `min`",- "Expands the abbreviation `min` to the full word `minimum` for clarity."+ "MutePoint" => (+ ["mute point"],+ ["moot point"],+ "Did you mean `moot point`?",+ "Ensures `moot point` is used instead of `mute point`, as `moot` means debatable or irrelevant."),- "ExpandStandardInput" => (- ["stdin"],- ["standard input"],- "Use `standard input` instead of `stdin`",- "Expands the abbreviation `stdin` to `standard input` for clarity."+ "MyHouse" => (+ ["mu house"],+ ["my house"],+ "Did you mean `my house`?",+ "Fixes the typo `mu house` to `my house`."),- "ExpandStandardOutput" => (- ["stdout"],- ["standard output"],- "Use `standard output` instead of `stdout`",- "Expands the abbreviation `stdout` to `standard output` for clarity."+ "NeedHelp" => (+ ["ned help"],+ ["need help"],+ "Did you mean `need help`?",+ "Changes `ned help` to the correct `need help`."),- "ExpandWith" => (- ["w/"],- ["with"],- "Use `with` instead of `w/`",- "Expands the abbreviation `w/` to the full word `with` for clarity."+ "NerveRacking" => (+ ["nerve racking", "nerve wracking", "nerve wrecking", "nerve-wracking", "nerve-wrecking"],+ ["nerve-racking"],+ "Use `nerve-racking` for something that causes anxiety or tension.",+ "Corrects common misspellings and missing hyphen in `nerve-racking`."),- "ExpandWithout" => (- ["w/o"],- ["without"],- "Use `without` instead of `w/o`",- "Expands the abbreviation `w/o` to the full word `without` for clarity."+ "NotIn" => (+ ["no in"],+ ["not in"],+ "Use `not in` for correct grammar.",+ "Replaces `no in` with `not in`."+ ),+ "NotTo" => (+ ["no to"],+ ["not to"],+ "Did you mean `not to`?",+ "Corrects `no to` to `not to`, ensuring proper negation."+ ),+ "OfCourse" => (+ ["off course", "o course"],+ ["Of course"],+ "Did you mean `of course`?",+ "Detects the non‐idiomatic phrase `off course` and suggests the correct form `of course`."+ ),+ "OffTheCuff" => (+ ["off the cuff"],+ ["off-the-cuff"],+ "Use the hyphenated form for `off-the-cuff`.",+ "Ensures `off-the-cuff` is correctly hyphenated."+ ),+ "OldWivesTale" => (+ ["old wise tale"],+ ["old wives' tale"],+ "Use the correct phrase for a superstition or myth.",+ "Corrects `old wise tale` to `old wives' tale`, preserving the phrase’s meaning as an unfounded traditional belief."+ ),+ "OnceInAWhile" => (+ ["once a while", "once and a while"],+ ["once in a while"],+ "The correct idiom is `once in a while`.",+ "Corrects two common malapropisms of `once in a while`."),"OnSecondThought" => (["on second though"],@@ -950,66 +940,177 @@ pub fn lint_group() -> LintGroup {"Idiomatic expression: use `on second thought` instead of `on second though`","Replaces the nonstandard `on second though` with the common idiom `on second thought` to indicate reconsideration."),- "Excellent" => (- ["very good"],- ["excellent"],- "Vocabulary enhancement: use `excellent` instead of `very good`",- "Provides a stronger word choice by replacing `very good` with `excellent` for clarity and emphasis."+ "OnTheSpurOfTheMoment" => (+ ["on the spurt of the moment"],+ ["on the spur of the moment"],+ "Use the correct phrase for acting spontaneously.",+ "Ensures the correct use of `on the spur of the moment`, avoiding confusion with the incorrect `spurt` variation."),- "WellKept" => (- ["highly-kept", "highly kept"],- // There may be other good alternatives such as closely-guarded or tightly-held- ["well-kept"],- "`Highly-kept` is not standard. To describe secrets, `well-kept` is the most used phrase.",- "Flags `highly-kept` and recommends `well-kept` as an alternative."+ "OperativeSystem" => (+ ["operative system"],+ ["operating system"],+ "Did you mean `operating system`?",+ "Ensures `operating system` is used correctly instead of `operative system`."+ ),+ "OperativeSystems" => (+ ["operative systems"],+ ["operating systems"],+ "Did you mean `operating systems`?",+ "Ensures `operating systems` is used correctly instead of `operative systems`."+ ),+ "PeaceOfMind" => (+ ["piece of mind"],+ ["peace of mind"],+ "The phrase is `peace of mind`, meaning `calm`. A `piece` is a `part` of something.",+ "Corrects `piece of mind` to `peace of mind`."+ ),+ "PiggyBag" => (+ ["piggy bag"],+ ["piggyback"],+ "Did you mean `piggyback`?",+ "Corrects the eggcorn `piggy bag` to `piggyback`, which is the proper term for riding on someone’s back or using an existing system."+ ),+ "PiggyBagged" => (+ ["piggy bagged"],+ ["piggybacked"],+ "Did you mean `piggybacked`?",+ "Corrects the eggcorn `piggy bagged` to `piggybacked`, the proper past tense form for riding on someone’s back or making use of an existing system."+ ),+ "PiggyBagging" => (+ ["piggy bagging"],+ ["piggybacking"],+ "Did you mean `piggybacking`?",+ "Corrects the eggcorn `piggy bagging` to `piggybacking`, the proper verb form for riding on someone’s back or leveraging an existing system."+ ),+ "PointIsMoot" => (+ ["your point is mute"],+ ["your point is moot"],+ "Did you mean `your point is moot`?",+ "Typo: `moot` (meaning debatable) is correct rather than `mute`."+ ),+ "PointsOfView" => (+ ["point of views"],+ ["points of view"],+ "The correct plural is `points of view`.",+ "Corrects pluralizing the wrong noun in `point of view`."+ ),+ "PortAuPrince" => (+ // Note: this lint matches any case but cannot correct wrong case+ // Note: It can only correct the hyphenation+ // Note: See linting/matcher.rs for case corrections+ // Note: $input must already be the correct case+ // Note: do not add other case variants here+ ["Port au Prince"],+ ["Port-au-Prince"],+ "The official spelling is hyphenated.",+ "Checks for the correct official name of the capital of Haiti."+ ),+ "PortoNovo" => (+ // Note: this lint matches any case but cannot correct wrong case+ // Note: It can only correct the hyphenation+ // Note: See linting/matcher.rs for case corrections+ // Note: $input must already be the correct case+ // Note: do not add other case variants here+ ["Porto Novo"],+ ["Porto-Novo"],+ "The official spelling is hyphenated.",+ "Checks for the correct official name of the capital of Benin."+ ),+ "PrayingMantis" => (+ ["preying mantis"],+ ["praying mantis"],+ "Use the insect's correct name.",+ "Corrects `preying mantis` to `praying mantis`, ensuring accurate reference to the insect’s characteristic pose."+ ),+ "RapidFire" => (+ ["rapid fire"],+ ["rapid-fire"],+ "It is more idiomatic to hypenate `rapid-fire`.",+ "Checks to ensure writers hyphenate `rapid-fire`."+ ),+ "RealTrouper" => (+ ["real trooper"],+ ["real trouper"],+ "Use the correct phrase for someone who perseveres.",+ "Ensures the correct use of `real trouper`, distinguishing it from `trooper`, which refers to a soldier or police officer."+ ),+ "RifeWith" => (+ ["ripe with"],+ ["rife with"],+ "Use the correct phrase for something abundant.",+ "Corrects `ripe with` to `rife with`, preserving the phrase’s meaning of being filled with something, often undesirable."+ ),+ "RoadMap" => (+ ["roadmap"],+ ["road map"],+ "Did you mean `road map`?",+ "Detects when `roadmap` is used instead of `road map`, prompting the correct spacing."+ ),+ "SameAs" => (+ ["same then"],+ ["same as"],+ "Did you mean `same as`?",+ "Corrects the incorrect phrase `same then` to the standard `same as`."+ ),+ "ScantilyClad" => (+ ["scandally clad"],+ ["scantily clad"],+ "Use the correct phrase for minimal attire.",+ "Fixes `scandally clad` to `scantily clad`, ensuring clarity in describing minimal attire."),- "ExpandBecause" => (- ["cuz"],- ["because"],- "Use `because` instead of informal `cuz`",- "Expands the informal abbreviation `cuz` to the full word `because` for formality."+ "ServerSide" => (+ ["server's side"],+ ["server-side"],+ "In client-server contexts, use `server-side` rather than `server's side`.",+ "Corrects `server's side` to `server-side`, which is usual in `client-server contexts`."),- "AtFaceValue" => (- ["on face value"],- ["at face value"],- "`at face value is more idiomatic and more common.",- "Corrects `on face value` to the more usual `at face value`."+ "SimpleGrammatical" => (+ ["simply grammatical"],+ ["simple grammatical"],+ "Use `simple grammatical` for correct adjective usage.",+ "Corrects `simply grammatical` to `simple grammatical` for proper adjective usage."),- "TrialAndError" => (- ["trail and error"],- ["trial and error"],- "You misspelled `trial`.",- "Corrects `trail` to `trial` in `trial and error`."+ "SneakingSuspicion" => (+ ["sneaky suspicion"],+ ["sneaking suspicion"],+ "Did you mean `sneaking suspicion`?",+ "Changes `sneaky suspicion` to `sneaking suspicion`."),- "HomeInOn" => (- ["hone in on"],- ["home in on"],- "Use `home in on` rather than `hone in on`",- "Corrects `hone in on` to `home in on`."+ "SomeOfThe" => (+ ["some the"],+ ["some of the"],+ "Add `of` to form the partitive phrase: `some of the`.",+ "Quantity words such as `some` normally take `of` before a definite article. Including `of` signals that you mean a subset of a larger set, preventing a momentary stumble in comprehension."),- "HomesInOn" => (- ["hones in on"],- ["homes in on"],- "Use `home in on` rather than `hone in on`",- "Corrects `hone in on` to `home in on`."+ "SoonerOrLater" => (+ ["sooner than later"],+ ["sooner rather than later", "sooner or later"],+ "Did you mean `sooner rather than later` or `sooner or later`?",+ "Fixes the improper phrase `sooner than later` by suggesting standard alternatives."),- "HomedInOn" => (- ["honed in on"],- ["homed in on"],- "Use `home in on` rather than `hone in on`",- "Corrects `hone in on` to `home in on`."+ "SpecialAttention" => (+ ["spacial attention"],+ ["special attention"],+ "Did you mean `special attention`?",+ "Changes `spacial attention` to `special attention`."),- "HomingInOn" => (- ["honing in on"],- ["homing in on"],- "Use `home in on` rather than `hone in on`",- "Corrects `hone in on` to `home in on`."+ "SpokeTooSoon" => (+ ["spoke to soon"],+ ["spoke too soon"],+ "Use the adverb `too` instead.",+ "Identifies common misuse of the preposition `to` in the phrase `spoke too soon`."),- "Unless" => (- ["unless if"],- ["unless"],- "Use `unless` on its own.",- "Corrects `unless if` to `unless`."+ "Starving" => (+ ["very hungry", "really hungry", "extremely hungry"],+ ["starving"],+ "A more vivid adjective would better convey intense hunger.",+ "Encourages vivid writing by suggesting `starving` instead of weaker expressions like `very hungry.`"+ ),+ "StateOfTheArt" => (+ ["state of art"],+ ["state of the art"],+ "Did you mean `state of the art`?",+ "Detects incorrect usage of `state of art` and suggests `state of the art` as the correct phrase."),"SufficeItToSay" => (["suffice to say"],@@ -1017,131 +1118,132 @@ pub fn lint_group() -> LintGroup {"`Suffice it to say` is the more standard and more common variant.","Corrects `suffice to say` to `suffice it to say`."),- "LikeThePlague" => (- ["like a plague"],- ["like the plague"],- "`Things are avoided `like the plague` not `like a plague`.",- "Corrects `like a plague` to `like the plague`."+ "SupposedTo" => (+ ["suppose to"],+ ["supposed to"],+ "Did you mean `supposed to`?",+ "Fixes `suppose to` to the correct `supposed to`."),- "HaveGone" => (- ["have went"],- ["have gone"],- "`Have gone` is the correct form.",- "Corrects `have went` to `have gone`."+ "TakeItPersonally" => (+ ["take it personal"],+ ["take it personally"],+ "The more standard, less colloquial form is `take it personally`.",+ "Corrects `take it personal` to `take it personally`."),- "HadGone" => (- ["had went"],- ["had gone"],- "`Had gone` is the correct form.",- "Corrects `had went` to `had gone`."+ "TakeItSeriously" => (+ ["take it serious"],+ ["take it seriously"],+ "Did you mean `take it seriously`?",+ "Ensures the correct use of the adverb `seriously` instead of the adjective `serious` in phrases like `take it seriously`."),- "HavingGone" => (- ["having went"],- ["having gone"],- "`Having gone` is the correct form.",- "Corrects `having went` to `having gone`."+ "ThatChallenged" => (+ ["the challenged"],+ ["that challenged"],+ "Did you mean `that challenged`?",+ "Changes `the challenged` to `that challenged` to fix the misspelling."),- "HasGone" => (- ["has went"],- ["has gone"],- "`Has gone` is the correct form.",- "Corrects `has went` to `has gone`."+ "ThatChallenged" => (+ ["the challenged"],+ ["that challenged"],+ "Use `that challenged` for correct relative clause.",+ "Corrects `the challenged` to `that challenged` for proper relative clause usage."),- "CaseInPoint" => (- ["case and point"],- ["case in point"],- "`Case in point` is the correct form of the phrase.",- "Corrects `case and point` to `case in point`."+ "ThatThis" => (+ ["the this"],+ ["that this"],+ "Did you mean `that this`?",+ "Fixes `the this` to the correct phrase `that this`."),- "AsWell" => (- ["aswell"],- ["as well"],- "`as well` should be written as two words.",- "Corrects `aswell` to `as well`."+ "TheAnother" => (+ ["the another"],+ ["the other", "another"],+ "Use `the other` or `another`, not both.",+ "Corrects `the another`."),- "HasPassed" => (- ["has past"],- ["has passed"],- "Did you mean the verb `passed`?",- "Suggests `past` for `passed` in case a verb was intended."+ "ThereIsAny" => (+ ["there any"],+ ["there is any"],+ "Insert `is` for correct grammar.",+ "Replaces `there any` with `there is any`."),- "HavePassed" => (- ["have past"],- ["have passed"],- "Did you mean the verb `passed`?",- "Suggests `past` for `passed` in case a verb was intended."+ "ThoughtProcess" => (+ ["though process"],+ ["thought process"],+ "Did you mean `thought process`?",+ "Changes `though process` to `thought process`."),- "HadPassed" => (- ["had past"],- ["had passed"],- "Did you mean the verb `passed`?",- "Suggests `past` for `passed` in case a verb was intended."+ "TickingTimeClock" => (+ ["ticking time clock"],+ ["ticking time bomb", "ticking clock"],+ "Use `ticking time bomb` for disastrous consequences, otherwise avoid redundancy with just `ticking clock`.",+ "Corrects `ticking time clock` to `ticking time bomb` for idiomatic urgency or `ticking clock` otherwise."),- "HavingPassed" => (- ["having past"],- ["having passed"],- "Did you mean the verb `passed`?",- "Suggests `past` for `passed` in case a verb was intended."+ "ToDoHyphen" => (+ ["todo"],+ ["to-do"],+ "Hyphenate `to-do`.",+ "Ensures `to-do` is correctly hyphenated."),- "ClientSide" => (- ["client's side"],- ["client-side"],- "In client-server contexts, use `client-side` rather than `client's side`.",- "Corrects `client's side` to `client-side`, which is usual in `client-server contexts`."+ "ToTheMannerBorn" => (+ ["to the manor born"],+ ["to the manner born"],+ "Use the correct phrase for being naturally suited to something.",+ "Corrects `to the manor born` to `to the manner born`, ensuring the intended meaning of being naturally suited to a way of life."),- "ServerSide" => (- ["server's side"],- ["server-side"],- "In client-server contexts, use `server-side` rather than `server's side`.",- "Corrects `server's side` to `server-side`, which is usual in `client-server contexts`."+ "Towards" => (+ ["to towards"],+ ["towards"],+ "Use `towards` without the preceding `to`.",+ "Removes redundant `to` before `towards`."),- "InCase" => (- ["incase"],- ["in case"],- "`In case` should be written as two words.",- "Corrects `incase` to `in case`."+ "TrialAndError" => (+ ["trail and error"],+ ["trial and error"],+ "You misspelled `trial`.",+ "Corrects `trail` to `trial` in `trial and error`."),- "DoNotWant" => (- ["don't wan", "do not wan"],- ["don't want", "do not want"],- "Use the full verb “want” after negation: “don't want” or “do not want.”",- "In English, negation still requires the complete verb form (“want”), so avoid truncating it to “wan.”"+ "TurnForTheWorse" => (+ ["turn for the worst"],+ ["turn for the worse"],+ "Use `turn for the worse` for a negative change in circumstances. Avoid the incorrect `turn for the worst`.",+ "Corrects the nonstandard `turn for the worst` to the idiomatic `turn for the worse`, used to describe a situation that has deteriorated."),- "CoursingThroughVeins" => (- ["cursing through veins"],- ["coursing through veins"],- "In this idiom, blood “courses” (flows) through veins, not “curses”.",- "In English idioms, “to course” means to flow rapidly—so avoid the eggcorn `cursing through veins.`"+ "TurnItOff" => (+ ["turn it of", "turn i of"],+ ["turn it off"],+ "Did you mean `turn it off`?",+ "Fixes the mistake in the phrase `turn it off`."),- "BestRegards" => (- ["beat regards"],- ["best regards"],- "Use `best regards` to convey sincere well wishes in a closing.",- "In valedictions, `best` expresses your highest regard—avoid the typo `beat regards`."+ "Unless" => (+ ["unless if"],+ ["unless"],+ "Use `unless` on its own.",+ "Corrects `unless if` to `unless`."),- "Freezing" => (- ["very cold", "really cold", "extremely cold"],- ["freezing"],- "A more vivid adjective would better capture extreme cold.",- "Encourages vivid writing by suggesting `freezing` instead of weaker expressions like `very cold.`"+ "WantBe" => (+ ["want be"],+ ["won't be", "want to be"],+ "Did you mean `won't be` or `want to be`?",+ "Detects incorrect usage of `want be` and suggests `won't be` or `want to be` based on context."),- "Starving" => (- ["very hungry", "really hungry", "extremely hungry"],- ["starving"],- "A more vivid adjective would better convey intense hunger.",- "Encourages vivid writing by suggesting `starving` instead of weaker expressions like `very hungry.`"+ "WaveFunction" => (+ ["wavefunction"],+ ["wave function"],+ "Did you mean `wave function`?",+ "Identifies the mistake of merging `wave` and `function` into one word. In quantum mechanics, a `wave function` (written as two words) describes the mathematical function that represents the quantum state of a particle or system. Correct usage is crucial for clear and accurate scientific communication."),- "WhatItLooksLike" => (- ["how it looks like", "how it look like", "how it look's like"],- ["how it looks", "what it looks like"],- "Don't use both `how` and `like` together to express similarity.",- "Corrects `how ... looks like` to `how ... looks` or `what ... looks like`."+ "WellBeing" => (+ ["wellbeing"],+ ["well-being"],+ "Use the hyphenated form for `well-being`.",+ "Ensures `well-being` is correctly hyphenated."),- "WhatTheyLookLike" => (- ["how they look like", "how they looks like"],- ["how they look", "what they look like"],- "Don't use both `how` and `like` together to express similarity.",- "Corrects `how ... look like` to `how ... look` or `what ... look like`."+ "WellKept" => (+ ["highly-kept", "highly kept"],+ // There may be other good alternatives such as closely-guarded or tightly-held+ ["well-kept"],+ "`Highly-kept` is not standard. To describe secrets, `well-kept` is the most used phrase.",+ "Flags `highly-kept` and recommends `well-kept` as an alternative."),"WhatHeLooksLike" => (["how he looks like"],@@ -1149,180 +1251,78 @@ pub fn lint_group() -> LintGroup {"Don't use both `how` and `like` together to express similarity.","Corrects `how ... looks like` to `how ... looks` or `what ... looks like`."),+ "WhatItLooksLike" => (+ ["how it looks like", "how it look like", "how it look's like"],+ ["how it looks", "what it looks like"],+ "Don't use both `how` and `like` together to express similarity.",+ "Corrects `how ... looks like` to `how ... looks` or `what ... looks like`."+ ),"WhatSheLooksLike" => (["how she looks like"],["how she looks", "what she looks like"],"Don't use both `how` and `like` together to express similarity.","Corrects `how ... looks like` to `how ... looks` or `what ... looks like`."),- "ThereIsAny" => (- ["there any"],- ["there is any"],- "Insert `is` for correct grammar.",- "Replaces `there any` with `there is any`."- ),- "NotIn" => (- ["no in"],- ["not in"],- "Use `not in` for correct grammar.",- "Replaces `no in` with `not in`."- ),- "LastDitch" => (- ["last ditch", "last ditched", "last-ditched"],- ["last-ditch"],- "In this idiom, `ditch` is a noun and a hyphen is needed.",- "Corrects wrong variations of the idiomatic adjective `last-ditch`."- ),- "InvestIn" => (- ["invest into"],- ["invest in"],- "Traditionally `invest` uses the preposition `in`.",- "`Invest` is traditionally followed by 'in,' not `into.`"- ),- "InvestedIn" => (- ["invested into"],- ["invested in"],- "Traditionally `invest` uses the preposition `in`.",- "`Invest` is traditionally followed by 'in,' not `into.`"- ),- "InvestingIn" => (- ["investing into"],- ["investing in"],- "Traditionally `invest` uses the preposition `in`.",- "`Invest` is traditionally followed by 'in,' not `into.`"- ),- "InvestsIn" => (- ["invests into"],- ["invests in"],- "Traditionally `invest` uses the preposition `in`.",- "`Invest` is traditionally followed by 'in,' not `into.`"- ),- "OnceInAWhile" => (- ["once a while", "once and a while"],- ["once in a while"],- "The correct idiom is `once in a while`.",- "Corrects two common malapropisms of `once in a while`."- ),- "GildedAge" => (- ["guilded age"],- ["Gilded Age"],- "The period of economic prosperity is called the `Gilded Age`.",- "If referring to the period of economic prosperity, the correct term is `Gilded Age`."- ),- "EverPresent" => (- ["ever present"],- ["ever-present"],- "Hyphenate `ever-present` when it functions as a compound adjective.",- "Corrects the missing hyphen in `ever present` to the compound adjective `ever-present`."- ),- "DefiniteArticle" => (- ["definitive article"],- ["definite article"],- "The correct term for `the` is `definite article`.",- "The name of the word `the` is `definite article`."- ),- "DefiniteArticles" => (- ["definitive articles"],- ["definite articles"],- "The correct term for `the` is `definite article`.",- "The name of the word `the` is `definite article`."- ),- "FurtherAdo" => (- ["further adieu"],- ["further ado"],- "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",- "Corrects `adieu` to `ado`."- ),- "MuchAdo" => (- ["much adieu"],- ["much ado"],- "Don't confuse the French/German `adieu`, meaning `farewell`, with the English `ado`, meaning `fuss`.",- "Corrects `adieu` to `ado`."- ),- "FairBit" => (- ["fare bit"],- ["fair bit"],- "A `decent amount` is a `fair bit`. `Fare` is the price of a ticket.",- "Corrects malapropisms of `a fair bit`."- ),- "TakeItPersonally" => (- ["take it personal"],- ["take it personally"],- "The more standard, less colloquial form is `take it personally`.",- "Corrects `take it personal` to `take it personally`."- ),- "AsOfLate" => (- ["as of lately"],- ["as of late"],- "The standard form is `as of late`.",- "Corrects `as of lately` to `as of late`."- ),- "RapidFire" => (- ["rapid fire"],- ["rapid-fire"],- "It is more idiomatic to hypenate `rapid-fire`.",- "Checks to ensure writers hyphenate `rapid-fire`."+ "WhatTheyLookLike" => (+ ["how they look like", "how they looks like"],+ ["how they look", "what they look like"],+ "Don't use both `how` and `like` together to express similarity.",+ "Corrects `how ... look like` to `how ... look` or `what ... look like`."),- "PointsOfView" => (- ["point of views"],- ["points of view"],- "The correct plural is `points of view`.",- "Corrects pluralizing the wrong noun in `point of view`."+ "WhetYourAppetite" => (+ ["wet your appetite"],+ ["whet your appetite"],+ "Use the correct phrase for stimulating desire.",+ "Ensures `whet your appetite` is used correctly, distinguishing it from the incorrect `wet` variation."),- "SomeOfThe" => (- ["some the"],- ["some of the"],- "Add `of` to form the partitive phrase: `some of the`.",- "Quantity words such as `some` normally take `of` before a definite article. Including `of` signals that you mean a subset of a larger set, preventing a momentary stumble in comprehension."+ "WholeEntire" => (+ ["whole entire"],+ ["whole", "entire"],+ "Avoid redundancy. Use either `whole` or `entire` for referring to the complete amount or extent.",+ "Corrects the redundancy in `whole entire` to `whole` or `entire`."),- "Insurmountable" => (- ["unsurmountable"],- ["insurmountable"],- "This word has a more standard, more common synonym.",- "Suggests the more standard and common synonym `insurmountable`."+ "WillContain" => (+ ["will contains"],+ ["will contain"],+ "Did you mean `will contain`?",+ "Incorrect verb form: `will` should be followed by the base form `contain`."),- "Brutality" => (- ["brutalness"],- ["brutality"],- "This word has a more standard, more common synonym.",- "Suggests the more standard and common synonym `brutality`."+ "WorldWarII" => (+ ["world war 2", "world war ii", "world war ii", "world war ii", "world war ii"],+ ["World War II"],+ "Use the correct capitalization for `World War II`.",+ "Ensures `World War II` is correctly capitalized."),- "KindOf" => (- ["kinda of"],- ["kind of", "kinda"],- "`Kinda` already means `kind of`, so `kinda of` is redundant.",- "Corrects `kinda of` to `kind of`."+ "WorseAndWorse" => (+ ["worst and worst", "worse and worst", "worst and worse"],+ ["worse and worse"],+ "Use `worse` for comparing. (`Worst` is for the extreme case)",+ "Corrects `worst and worst` to `worse and worse` for proper comparative usage."),- "InNeedOf" => (- ["in need for"],- ["in need of"],- "Use `in need of` for when something is required or necessary.",- "Corrects `in need for` to `in need of`."+ "WorseCaseScenario" => (+ ["worse case scenario", "worse-case scenario", "worse-case-scenario"],+ ["worst-case scenario"],+ "Use `worst` for referring to the worst possible scenario. (`Worse` is for comparing)",+ "Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."),- "PeaceOfMind" => (- ["piece of mind"],- ["peace of mind"],- "The phrase is `peace of mind`, meaning `calm`. A `piece` is a `part` of something.",- "Corrects `piece of mind` to `peace of mind`."+ "WorseThan" => (+ ["worst than"],+ ["worse than"],+ "Use `worse` for comparing. (`Worst` is for the extreme case)",+ "Corrects `worst than` to `worse than` for proper comparative usage."),- "ACoupleMore" => (- ["a couple of more"],- ["a couple more"],- "The correct wording is `a couple more`, without the `of`.",- "Corrects `a couple of more` to `a couple more`."+ "WorstCaseScenario" => (+ ["worst case scenario", "worst-case-scenario"],+ ["worst-case scenario"],+ "Hyphenate `worst-case`.",+ "Corrects `worst-case scenario` when the hyphen is missing or `worse` is used instead of `worst`."),- "AllOfASudden" => (- ["all of the sudden"],- ["all of a sudden"],- "The phrase is `all of a sudden`, meaning `unexpectedly`.",- "Corrects `all of the sudden` to `all of a sudden`."+ "WorstEver" => (+ ["worse ever"],+ ["worst ever"],+ "Use `worst` for the extreme case. (`Worse` is for comparing)",+ "Corrects `worse ever` to `worst ever` for proper comparative usage."),- "LowHangingFruit" => (- ["low hanging fruit", "low hanging fruits", "low-hanging fruits"],- ["low-hanging fruit"],- "The standard form is `low-hanging fruit` with a hyphen and singular form.",- "Corrects non-standard variants of `low-hanging fruit`."- )});group.set_all_rules_to(Some(true));diff --git a/harper-core/src/linting/phrase_corrections/tests.rs b/harper-core/src/linting/phrase_corrections/tests.rsindex 70ecd3dd8..61b08dc49 100644--- a/harper-core/src/linting/phrase_corrections/tests.rs+++ b/harper-core/src/linting/phrase_corrections/tests.rs@@ -4,158 +4,264 @@ use crate::linting::tests::{use super::lint_group;+// ACoupleMore#[test]-fn get_rid_off() {+fn corrects_a_couple_of_more() {assert_suggestion_result(- "Please bump axios version to get rid off npm warning #624",+ "There are a couple of more rules that could be added, how can I contribute?",lint_group(),- "Please bump axios version to get rid of npm warning #624",- );+ "There are a couple more rules that could be added, how can I contribute?",+ )}+// AfterAWhile#[test]-fn gets_rid_off() {+fn correct_after_while() {assert_suggestion_result(- "Adding at as a runtime dependency gets rid off that error",+ "bromite Crashes on all sites after while.",lint_group(),- "Adding at as a runtime dependency gets rid of that error",+ "bromite Crashes on all sites after a while.",);}+// AllOfASudden#[test]-fn getting_rid_off() {+fn corrects_all_of_a_sudden() {assert_suggestion_result(- "getting rid off of all the complexity of the different accesses method of API service providers",+ "On an app that has been released since December, all of the sudden around February 5th ANRs started going up.",lint_group(),- "getting rid of of all the complexity of the different accesses method of API service providers",- );+ "On an app that has been released since December, all of a sudden around February 5th ANRs started going up.",+ )}+// ALongTime#[test]-fn got_rid_off() {+fn detect_a_long_time() {+ assert_suggestion_result("along time", lint_group(), "a long time");+}++#[test]+fn detect_a_long_time_real_world() {assert_suggestion_result(- "For now we got rid off circular deps in model tree structure and it's API.",+ "Fast refreshing is very slow had to wait along time for it to update.",lint_group(),- "For now we got rid of circular dependencies in model tree structure and it's API.",+ "Fast refreshing is very slow had to wait a long time for it to update.",);}+// ALotWorst#[test]-fn gotten_rid_off() {+fn detect_a_lot_worse_atomic() {+ assert_suggestion_result("a lot worst", lint_group(), "a lot worse");+}++#[test]+fn detect_a_lot_worse_real_world() {assert_suggestion_result(- "The baX variable thingy I have gotten rid off, that was due to a bad character in the encryption key.",+ "On a debug build, it's even a lot worst.",lint_group(),- "The baX variable thingy I have gotten rid of, that was due to a bad character in the encryption key.",+ "On a debug build, it's even a lot worse.",);}+// AlzheimersDisease+// -none-++// AnAnother#[test]-fn get_ride_of() {+fn correct_an_another() {assert_suggestion_result(- "Get ride of \"WARNING Deprecated: markdown_github. Use gfm\"",+ "Render shader to use it as texture in an another shader.",lint_group(),- "Get rid of \"WARNING Deprecated: markdown_github. Use gfm\"",+ "Render shader to use it as texture in another shader.",);}#[test]-fn get_ride_off() {+fn correct_a_another() {assert_suggestion_result(- "This exact hack was what I trying to get ride off. ",+ "Audit login is a another package for laravel framework.",lint_group(),- "This exact hack was what I trying to get rid of. ",+ "Audit login is another package for laravel framework.",);}+// AndIn+// -none-++// AndTheLike+// -none-++// AnotherAn#[test]-fn getting_ride_of() {+fn correct_another_an() {assert_suggestion_result(- "If you have any idea how to fix this without getting ride of bootstrap I would be thankfull.",+ "Yet another an atomic deployment tool.",lint_group(),- "If you have any idea how to fix this without getting rid of bootstrap I would be thankfull.",+ "Yet another atomic deployment tool.",);}+// AnotherOnes#[test]-fn gets_ride_of() {- assert_suggestion_result(- ".. gets ride of a central back-end/server and eliminates all the risks associated to it.",+fn correct_another_ones() {+ assert_nth_suggestion_result(+ "Change list params of a resource, another ones change too",lint_group(),- ".. gets rid of a central back-end/server and eliminates all the risks associated to it.",+ "Change list params of a resource, other ones change too",+ 2,);}+// AnotherThings#[test]-fn gotten_ride_of() {- assert_suggestion_result(- "I have gotten ride of the react-table and everything works just fine.",+fn correct_another_things() {+ assert_nth_suggestion_result(+ "Another things to fix in the Mask editor",lint_group(),- "I have gotten rid of the react-table and everything works just fine.",+ "Other things to fix in the Mask editor",+ 1,);}+// AsFarBackAs#[test]-fn got_ride_of() {+fn detect_as_early_back_as() {+ assert_suggestion_result("as early back as", lint_group(), "as far back as");+}++#[test]+fn detect_as_early_back_as_real_world() {assert_suggestion_result(- "I had to adjust the labels on the free version because you guys got ride of ...",+ "skin overrides also supports a wide variety of minecraft versions - as early back as 1.14.4.",lint_group(),- "I had to adjust the labels on the free version because you guys got rid of ...",+ "skin overrides also supports a wide variety of minecraft versions - as far back as 1.14.4.",);}+// AsOfLate#[test]-fn issue_574() {- assert_lint_count("run by one", lint_group(), 0);+fn corrects_as_of_lately() {+ assert_suggestion_result(+ "I haven't noticed any crashing with AMDGPU as of lately, so this looks to not be an issue anymore.",+ lint_group(),+ "I haven't noticed any crashing with AMDGPU as of late, so this looks to not be an issue anymore.",+ )}-#[test]-fn turn_it_off_clean_lower() {- assert_lint_count("turn it off", lint_group(), 0);-}+// AsWell+// -none-+// AtFaceValue#[test]-fn turn_it_off_clean_upper() {- assert_lint_count("Turn it off", lint_group(), 0);+fn correct_on_face_value() {+ assert_suggestion_result(+ "Obviously what you want is possible and on face value it's a trivial change on our end.",+ lint_group(),+ "Obviously what you want is possible and at face value it's a trivial change on our end.",+ );}+// AvoidAndAlso+// -none-++// AWholeEntire#[test]-fn of_confusion() {- assert_suggestion_result("Turn it of", lint_group(), "Turn it off");+fn correct_atomic_a_whole_entire_to_a_whole() {+ assert_suggestion_result("a whole entire", lint_group(), "a whole");}#[test]-fn i_and_of_confusion() {- assert_suggestion_result("Turn i of", lint_group(), "Turn it off");+fn correct_atomic_a_whole_entire_to_an_entire() {+ assert_nth_suggestion_result("a whole entire", lint_group(), "an entire", 1);}#[test]-fn off_course() {+fn correct_real_world_a_whole_entire_to_a_whole() {assert_suggestion_result(- "Yes, off course we should do that.",+ "Start mapping a whole entire new planet using NASA’s MOLA.",lint_group(),- "Yes, of course we should do that.",+ "Start mapping a whole new planet using NASA’s MOLA.",);}#[test]-fn o_course() {- assert_suggestion_result(- "Yes, o course we should do that.",+fn correct_real_world_a_whole_entire_to_an_entire() {+ assert_nth_suggestion_result(+ "I am not sure I can pass in a whole entire query via the include.",lint_group(),- "Yes, of course we should do that.",+ "I am not sure I can pass in an entire query via the include.",+ 1,);}+// BadRap#[test]fn bad_rep() {assert_suggestion_result("bad rep", lint_group(), "bad rap");}+// BaitedBreath#[test]fn baited_breath() {assert_suggestion_result("baited breath", lint_group(), "bated breath");}+// BandTogether+// -none-++// BareInMind+// -none-++// BeckAndCall+// -none-++// BeenThere+// -none-++// BestRegards+// -none-++// BlanketStatement+#[test]+fn issue_790() {+ assert_suggestion_result(+ "This seems like a blanketed statement and I have not found any info to back up whether PyJWT is affected.",+ lint_group(),+ "This seems like a blanket statement and I have not found any info to back up whether PyJWT is affected.",+ );+}++// Brutality+#[test]+fn corrects_brutalness() {+ assert_suggestion_result(+ "the mildness and brutalness of the story rises.",+ lint_group(),+ "the mildness and brutality of the story rises.",+ )+}++// ByAccident+// -none-++// CanBeSeen+// -none-++// CaseInPoint+#[test]+fn correct_case_and_point_spaced() {+ assert_suggestion_result(+ "They are just not as high of a priority as other tasks that user's are requesting for, a case and point is I have never ran into this issue.",+ lint_group(),+ "They are just not as high of a priority as other tasks that user's are requesting for, a case in point is I have never ran into this issue.",+ );+}++// CaseSensitive+// -none-++// ChangeTack#[test]fn change_tact_atomic() {assert_suggestion_result("change tact", lint_group(), "change tack");@@ -176,6 +282,7 @@ fn changing_tact_atomic() {assert_suggestion_result("changing tact", lint_group(), "changing tack");}+// ChangeOfTack#[test]fn change_of_tacks_atomic() {assert_suggestion_result("change of tacks", lint_group(), "change of tack");@@ -217,468 +324,705 @@ fn changes_of_tact_real_world() {);}-#[test]-fn hunger_pain() {- assert_suggestion_result("hunger pain", lint_group(), "hunger pang");-}+// ChockFull+// -none-+// ClientSide#[test]-fn in_mass() {- assert_suggestion_result("in mass", lint_group(), "en masse");+fn correct_clients_side() {+ assert_suggestion_result(+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client's side.",+ lint_group(),+ "I want to debug this server-side as I cannot find out why the connection is being refused from the client-side.",+ );}-#[test]-fn let_along() {- assert_suggestion_result("let along", lint_group(), "let alone");-}+// CondenseAllThe+// -none-+// CoursingThroughVeins#[test]-fn sneaky_suspicion() {- assert_suggestion_result("sneaky suspicion", lint_group(), "sneaking suspicion");+fn detect_cursing_through_veins_atomic() {+ assert_suggestion_result(+ "cursing through veins",+ lint_group(),+ "coursing through veins",+ );}#[test]-fn supposed_to() {- assert_suggestion_result("suppose to", lint_group(), "supposed to");+fn detect_cursing_through_veins_real_world() {+ assert_suggestion_result(+ "It felt like the drugs were cursing through veins.",+ lint_group(),+ "It felt like the drugs were coursing through veins.",+ );}#[test]-fn spacial_attention() {- assert_suggestion_result("spacial attention", lint_group(), "special attention");+fn does_not_flag_other_contexts() {+ assert_lint_count(+ "He was cursing through the entire meeting.",+ lint_group(),+ 0,+ );}-#[test]-fn now_on_hold() {- assert_lint_count("Those are now on hold for month.", lint_group(), 0);-}+// DampSquib+// -none-++// DayAndAge+// -none+// DefiniteArticle#[test]-fn operative_system() {+fn corrects_definite_article() {assert_suggestion_result(- "COS is a operative system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",+ "As for format of outputs: the spec defines the field as using the singular definitive article \"the\"",lint_group(),- "COS is a operating system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",+ "As for format of outputs: the spec defines the field as using the singular definite article \"the\"",);}#[test]-fn operative_systems() {+#[ignore = "Title case capitalization problem causes this one to fail too."]+fn corrects_definite_articles_title_case() {assert_suggestion_result(- "My dotfiles for my operative systems and other configurations.",+ "01 Definitive Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",lint_group(),- "My dotfiles for my operating systems and other configurations.",+ "01 Definite Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",);}#[test]-fn point_is_moot() {- assert_suggestion_result("Your point is mute.", lint_group(), "Your point is moot.");+fn corrects_definite_articles_lowercase() {+ assert_suggestion_result(+ ".. definitive articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",+ lint_group(),+ ".. definite articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",+ );}+// Discuss+// -none-++// DoNotWant#[test]-fn issue_777() {+fn corrects_dont_wan() {assert_suggestion_result(- "Last but not the least, with VS2013 you can use Web Essentials 2013",+ "I don't wan to pay for this.",lint_group(),- "Last but not least, with VS2013 you can use Web Essentials 2013",+ "I don't want to pay for this.",);}#[test]-fn issue_790() {+fn corrects_mixed_case() {assert_suggestion_result(- "This seems like a blanketed statement and I have not found any info to back up whether PyJWT is affected.",+ "Don't Wan that option.",lint_group(),- "This seems like a blanket statement and I have not found any info to back up whether PyJWT is affected.",+ "Don't Want that option.",);}#[test]-fn guinea_bissau_missing_hyphen_only() {- assert_suggestion_result("Guinea Bissau", lint_group(), "Guinea-Bissau");+fn does_not_flag_already_correct() {+ assert_lint_count("I don't want to leave.", lint_group(), 0);}-fn detect_nerve_wracking_hyphen() {+// EachAndEveryOne+#[test]+fn detect_each_and_everyone() {+ assert_suggestion_result("each and everyone", lint_group(), "each and every one");+}++#[test]+fn detect_each_and_everyone_real_world() {assert_suggestion_result(- "We've gone through several major changes / upgrades to atlantis, and it's always a little bit nerve-wracking because if we mess something up we ...",+ "I have modified each and everyone of them to keep only the best of the best!",lint_group(),- "We've gone through several major changes / upgrades to atlantis, and it's always a little bit nerve-racking because if we mess something up we ...",+ "I have modified each and every one of them to keep only the best of the best!",);}+// EludedTo+// -none-++// EnMasse#[test]-fn detect_nerve_wrecking_hyphen() {+fn in_mass() {+ assert_suggestion_result("in mass", lint_group(), "en masse");+}++// EverPresent+#[test]+fn detect_ever_present_atomic() {+ assert_suggestion_result("ever present", lint_group(), "ever-present");+}++#[test]+fn detect_ever_present_real_world() {assert_suggestion_result(- "The issue happens to me on a daily basis, and it is nerve-wrecking because I become unsure if I have actually saved the diagram, but every time ...",+ "Distrust was an ever present tension in the negotiations.",lint_group(),- "The issue happens to me on a daily basis, and it is nerve-racking because I become unsure if I have actually saved the diagram, but every time ...",+ "Distrust was an ever-present tension in the negotiations.",);}+// Excellent#[test]-fn detect_nerve_wracking_no_hyphen() {- assert_suggestion_result(- "Very nerve wracking landing in an unfamiliar mountainous airport in dead of night with no radar to show surrounding terrain.",+fn excellent_clean() {+ assert_lint_count(+ "The performance was excellent, drawing praise from all critics.",lint_group(),- "Very nerve-racking landing in an unfamiliar mountainous airport in dead of night with no radar to show surrounding terrain.",+ 0,);}#[test]-fn detect_nerve_wrecking_no_hyphen() {+fn excellent_incorrect() {assert_suggestion_result(- "I appreciate any kind of help since this is kind of nerve wrecking.",+ "Her results were very good this semester.",lint_group(),- "I appreciate any kind of help since this is kind of nerve-racking.",+ "Her results were excellent this semester.",);}#[test]-fn detect_nerve_racking_no_hyphen() {+fn excellent_no_false_positive() {+ assert_lint_count(+ "He radiated a sense of very goodness in his charitable acts.",+ lint_group(),+ 0,+ );+}++// ExpandBecause+#[test]+fn expand_cuz() {assert_suggestion_result(- "It's nerve racking to think about it because I have code inside the callback that resolves the member and somehow I feel like it's so ..",+ "Stick around cuz I got a surprise for you at the end.",lint_group(),- "It's nerve-racking to think about it because I have code inside the callback that resolves the member and somehow I feel like it's so ..",+ "Stick around because I got a surprise for you at the end.",);}+// ExpandDependency+// -none-++// ExpandMinimum+// -none++// ExpandStandardInput+// -none-++// ExpandStandardOutput+// -none-++// ExpandWith+// -none-++// ExpandWithout+// -none-++// Expatriate+// -none-++// ExplanationMark#[test]-fn detect_atomic_whole_entire() {- assert_suggestion_result("whole entire", lint_group(), "whole");+fn detect_explanation_mark_atomic() {+ assert_suggestion_result("explanation mark", lint_group(), "exclamation mark");}#[test]-fn correct_atomic_a_whole_entire_to_a_whole() {- assert_suggestion_result("a whole entire", lint_group(), "a whole");+fn detect_explanation_marks_atomic() {+ assert_suggestion_result("explanation marks", lint_group(), "exclamation marks");}#[test]-fn correct_atomic_a_whole_entire_to_an_entire() {- assert_nth_suggestion_result("a whole entire", lint_group(), "an entire", 1);+fn detect_explanation_mark_real_world() {+ assert_suggestion_result(+ "Note that circled explanation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",+ lint_group(),+ "Note that circled exclamation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",+ );}#[test]-fn correct_real_world_whole_entire() {+fn detect_explanation_marks_real_world() {assert_suggestion_result(- "[FR] support use system dns in whole entire app",+ "this issue: html: properly handle explanation marks in comments",lint_group(),- "[FR] support use system dns in whole app",+ "this issue: html: properly handle exclamation marks in comments",);}#[test]-fn correct_real_world_a_whole_entire_to_a_whole() {+fn detect_explanation_point_atomic() {+ assert_suggestion_result("explanation point", lint_group(), "exclamation point");+}++#[test]+fn detect_explanation_point_real_world() {assert_suggestion_result(- "Start mapping a whole entire new planet using NASA’s MOLA.",+ "js and makes an offhand mention that you can disable inbuilt plugin with an explanation point (e.g. !error ).",lint_group(),- "Start mapping a whole new planet using NASA’s MOLA.",+ "js and makes an offhand mention that you can disable inbuilt plugin with an exclamation point (e.g. !error ).",);}+// FaceFirst+// -none-++// FairBit#[test]-fn correct_real_world_a_whole_entire_to_an_entire() {- assert_nth_suggestion_result(- "I am not sure I can pass in a whole entire query via the include.",+fn corrects_fair_bit() {+ assert_suggestion_result(+ "I've read through a fare bit of the ecosystem framework, but I am not clear on what is modified...",lint_group(),- "I am not sure I can pass in an entire query via the include.",- 1,+ "I've read through a fair bit of the ecosystem framework, but I am not clear on what is modified...",);}-fn in_detail_atomic() {- assert_suggestion_result("in details", lint_group(), "in detail");+// FarWorse+#[test]+fn detect_far_worse_atomic() {+ assert_suggestion_result("far worst", lint_group(), "far worse");}#[test]-fn in_more_detail_atomic() {- assert_suggestion_result("in more details", lint_group(), "in more detail");+fn detect_far_worse_real_world() {+ assert_suggestion_result(+ "I mainly use Firefox (personal preference) and have noticed it has far worst performance than Chrome",+ lint_group(),+ "I mainly use Firefox (personal preference) and have noticed it has far worse performance than Chrome",+ );}+// FastPaste+// -none-++// FatalOutcome+// -none-++// FetalPosition+// -none-++// ForAllIntentsAndPurposes+// -none-++// ForALongTime#[test]-fn in_detail_real_world() {+fn test_for_a_long_time() {assert_suggestion_result(- "c++ - who can tell me \"*this pointer\" in details?",+ "I was stuck there for along time.",lint_group(),- "c++ - who can tell me \"*this pointer\" in detail?",- )+ "I was stuck there for a long time.",+ );}+// ForAWhile#[test]-fn suggests_ticking_time_bomb() {+fn correct_for_while() {assert_suggestion_result(- "One element that can help up the stakes (and tension!) is a “ticking time clock.”",+ "Build flutter releases in github actions for production only android for while.",lint_group(),- "One element that can help up the stakes (and tension!) is a “ticking time bomb.”",+ "Build flutter releases in github actions for production only android for a while.",);}+// FreeRein+// -none-++// Freezing+// -none-++// FurtherAdo#[test]-fn in_more_detail_real_world() {+fn corrects_further_ado() {assert_suggestion_result(- "Document the interface in more details · Issue #3 · owlbarn ...",+ "... but we finally hit a great spot, so without further adieu.",lint_group(),- "Document the interface in more detail · Issue #3 · owlbarn ...",+ "... but we finally hit a great spot, so without further ado.",);}+// GetRidOf#[test]-fn detect_atomic_in_of_itself() {- assert_suggestion_result("in of itself", lint_group(), "in and of itself");+fn get_rid_off() {+ assert_suggestion_result(+ "Please bump axios version to get rid off npm warning #624",+ lint_group(),+ "Please bump axios version to get rid of npm warning #624",+ );}#[test]-fn correct_real_world_in_of_itself() {+fn gets_rid_off() {assert_suggestion_result(- "This is not entirely unexpected in of itself, as Git and GitHub Desktop both generally prove fairly bad at delineating context intelligently...",+ "Adding at as a runtime dependency gets rid off that error",lint_group(),- "This is not entirely unexpected in and of itself, as Git and GitHub Desktop both generally prove fairly bad at delineating context intelligently...",- )+ "Adding at as a runtime dependency gets rid of that error",+ );}#[test]-fn detect_a_lot_worse_atomic() {- assert_suggestion_result("a lot worst", lint_group(), "a lot worse");+fn getting_rid_off() {+ assert_suggestion_result(+ "getting rid off of all the complexity of the different accesses method of API service providers",+ lint_group(),+ "getting rid of of all the complexity of the different accesses method of API service providers",+ );}#[test]-fn detect_a_lot_worse_real_world() {+fn got_rid_off() {assert_suggestion_result(- "On a debug build, it's even a lot worst.",+ "For now we got rid off circular deps in model tree structure and it's API.",lint_group(),- "On a debug build, it's even a lot worse.",+ "For now we got rid of circular dependencies in model tree structure and it's API.",);}#[test]-fn suggests_ticking_clock() {- assert_nth_suggestion_result(- "The opportunity itself has a ticking time clock as all great opportunities do.",+fn gotten_rid_off() {+ assert_suggestion_result(+ "The baX variable thingy I have gotten rid off, that was due to a bad character in the encryption key.",lint_group(),- "The opportunity itself has a ticking clock as all great opportunities do.",- 1,+ "The baX variable thingy I have gotten rid of, that was due to a bad character in the encryption key.",);}#[test]-fn detect_far_worse_atomic() {- assert_suggestion_result("far worst", lint_group(), "far worse");+fn get_ride_of() {+ assert_suggestion_result(+ "Get ride of \"WARNING Deprecated: markdown_github. Use gfm\"",+ lint_group(),+ "Get rid of \"WARNING Deprecated: markdown_github. Use gfm\"",+ );}#[test]-fn detect_far_worse_real_world() {+fn get_ride_off() {assert_suggestion_result(- "I mainly use Firefox (personal preference) and have noticed it has far worst performance than Chrome",+ "This exact hack was what I trying to get ride off. ",lint_group(),- "I mainly use Firefox (personal preference) and have noticed it has far worse performance than Chrome",+ "This exact hack was what I trying to get rid of. ",);}#[test]-fn detect_much_worse_atomic() {- assert_suggestion_result("much worst", lint_group(), "much worse");+fn getting_ride_of() {+ assert_suggestion_result(+ "If you have any idea how to fix this without getting ride of bootstrap I would be thankfull.",+ lint_group(),+ "If you have any idea how to fix this without getting rid of bootstrap I would be thankfull.",+ );}#[test]-fn detect_much_worse_real_world() {+fn gets_ride_of() {assert_suggestion_result(- "the generated image quality is much worst (actually nearly broken)",+ ".. gets ride of a central back-end/server and eliminates all the risks associated to it.",lint_group(),- "the generated image quality is much worse (actually nearly broken)",+ ".. gets rid of a central back-end/server and eliminates all the risks associated to it.",);}#[test]-fn detect_turn_for_the_worse_atomic() {- assert_suggestion_result("turn for the worst", lint_group(), "turn for the worse");+fn gotten_ride_of() {+ assert_suggestion_result(+ "I have gotten ride of the react-table and everything works just fine.",+ lint_group(),+ "I have gotten rid of the react-table and everything works just fine.",+ );}#[test]-fn detect_turn_for_the_worse_real_world() {+fn got_ride_of() {assert_suggestion_result(- "Very surprised to see this repo take such a turn for the worst.",+ "I had to adjust the labels on the free version because you guys got ride of ...",lint_group(),- "Very surprised to see this repo take such a turn for the worse.",+ "I had to adjust the labels on the free version because you guys got rid of ...",);}+// GildedAge#[test]-fn detect_worst_and_worst_atomic() {- assert_suggestion_result("worst and worst", lint_group(), "worse and worse");+#[ignore = "There's a bug when changing the length of title case phrases.\nI believe there's a fix coming in a PR. Uncomment when fixed."]+fn corrects_gilded_age_capitalized() {+ assert_suggestion_result(+ "It is especially a reflection of the socio-economic patterns in the Guilded Age.",+ lint_group(),+ "It is especially a reflection of the socio-economic patterns in the Gilded Age.",+ );}#[test]-fn detect_worst_and_worst_real_world() {+#[ignore = "Currently the correct spelling is suggested but the case is not changed.\nThis may also be fixed in the coming PR mentioned above."]+fn corrects_gilded_age_lowercase() {assert_suggestion_result(- "This control-L trick does not work for me. The padding is getting worst and worst.",+ "It is especially a reflection of the socio-economic patterns in the guilded age.",lint_group(),- "This control-L trick does not work for me. The padding is getting worse and worse.",+ "It is especially a reflection of the socio-economic patterns in the Gilded Age.",);}+// GoingTo+// -none-++// GuineaBissau#[test]-fn detect_worse_and_worst_real_world() {+fn guinea_bissau_missing_hyphen_only() {+ assert_suggestion_result("Guinea Bissau", lint_group(), "Guinea-Bissau");+}++// HadOf+// -none-++// HalfAnHour+#[test]+fn test_half_an_hour() {assert_suggestion_result(- "This progressively got worse and worst to the point that the machine (LEAD 1010) stopped moving alltogether.",+ "It took half an our to get there.",lint_group(),- "This progressively got worse and worse to the point that the machine (LEAD 1010) stopped moving alltogether.",+ "It took half an hour to get there.",);}+// Haphazard+// -none-++// HaveGone#[test]-fn detect_worse_than_atomic() {- assert_suggestion_result("worst than", lint_group(), "worse than");+fn correct_have_went() {+ assert_suggestion_result(+ "I have went into the btle.py file and added a print statement in _connect()",+ lint_group(),+ "I have gone into the btle.py file and added a print statement in _connect()",+ );}#[test]-fn detect_worse_than_real_world() {+fn correct_had_went() {assert_suggestion_result(- "Project real image - inversion quality is worst than in StyleGAN2",+ "Not sure if TroLoos had went from Tasmota->minimal->Tasmota, or directly Minimal->Tasmota, but going ESPHome->Minimal->Tasmota is not possible",lint_group(),- "Project real image - inversion quality is worse than in StyleGAN2",+ "Not sure if TroLoos had gone from Tasmota->minimal->Tasmota, or directly Minimal->Tasmota, but going ESPHome->Minimal->Tasmota is not possible",);}#[test]-fn detect_worst_ever_atomic() {- assert_suggestion_result("worse ever", lint_group(), "worst ever");+fn correct_having_went() {+ assert_suggestion_result(+ "Having went through the setup guidelines and picking react starter, running npm run watch results in an error",+ lint_group(),+ "Having gone through the setup guidelines and picking react starter, running npm run watch results in an error",+ );}#[test]-fn detect_worst_ever_real_world() {+fn correct_has_went() {assert_suggestion_result(- "The Bcl package family is one of the worse ever published by Microsoft.",+ "I would like to report that the package request which you are loading has went into maintenance mode.",lint_group(),- "The Bcl package family is one of the worst ever published by Microsoft.",+ "I would like to report that the package request which you are loading has gone into maintenance mode.",);}+// Have Passed#[test]-fn detect_monumentous_atomic() {- assert_suggestion_result("monumentous", lint_group(), "momentous");+fn correct_has_past() {+ assert_suggestion_result(+ "Track the amount of time that has past since a point in time.",+ lint_group(),+ "Track the amount of time that has passed since a point in time.",+ );}#[test]-fn detect_monumentous_real_world() {+fn correct_have_past() {assert_suggestion_result(- "I think that would be a monumentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",+ "Another 14+ days have past, any updates on this?",lint_group(),- "I think that would be a momentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",+ "Another 14+ days have passed, any updates on this?",);}#[test]-fn detect_in_anyway_atomic() {- assert_suggestion_result("in anyway", lint_group(), "in any way");+fn correct_had_past() {+ assert_suggestion_result(+ "Few days had past, so im starting to thinks there is a problem in my local version.",+ lint_group(),+ "Few days had passed, so im starting to thinks there is a problem in my local version.",+ );}#[test]-fn detect_in_anyway_real_world() {+fn correct_having_past() {assert_suggestion_result(- "The names should not affect your application in anyway and you can override extension names.",+ "Return to computer, with enough time having past for the computer to go to full sleep.",lint_group(),- "The names should not affect your application in any way and you can override extension names.",+ "Return to computer, with enough time having passed for the computer to go to full sleep.",);}+// HomeInOn#[test]-fn detect_explanation_mark_atomic() {- assert_suggestion_result("explanation mark", lint_group(), "exclamation mark");+fn correct_hone_in_on() {+ assert_suggestion_result(+ "This way you can use an object detector algorithm to hone in on subjects and tell sam to only focus in certain areas when looking to extend ...",+ lint_group(),+ "This way you can use an object detector algorithm to home in on subjects and tell sam to only focus in certain areas when looking to extend ...",+ );}#[test]-fn detect_explanation_marks_atomic() {- assert_suggestion_result("explanation marks", lint_group(), "exclamation marks");+fn correct_honing_in_on() {+ assert_suggestion_result(+ "I think I understand the syntax limitation you're honing in on.",+ lint_group(),+ "I think I understand the syntax limitation you're homing in on.",+ );}#[test]-fn detect_explanation_mark_real_world() {+fn correct_hones_in_on() {assert_suggestion_result(- "Note that circled explanation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",+ "[FEATURE] Add a magnet that hones in on mobs",lint_group(),- "Note that circled exclamation mark, question mark, plus and arrows may be significantly harder to distinguish than their uncircled variants.",+ "[FEATURE] Add a magnet that homes in on mobs",);}#[test]-fn detect_explanation_marks_real_world() {+fn correct_honed_in_on() {assert_suggestion_result(- "this issue: html: properly handle explanation marks in comments",+ "But it took me quite a bit of faffing about checking things out before I honed in on the session as the problem and tried to dump out the ...",+ lint_group(),+ "But it took me quite a bit of faffing about checking things out before I homed in on the session as the problem and tried to dump out the ...",+ );+}++// HumanBeings+#[test]+fn test_human_beings() {+ assert_suggestion_result(+ "All humans beings deserve empathy.",+ lint_group(),+ "All human beings deserve empathy.",+ );+ assert_suggestion_result(+ "We should respect a human's beings fundamental rights.",+ lint_group(),+ "We should respect a human beings fundamental rights.",+ );+}++// HumanLife+// -none-++// HungerPang+#[test]+fn hunger_pain() {+ assert_suggestion_result("hunger pain", lint_group(), "hunger pang");+}++// IAm+// -none-++// InAndOfItself+#[test]+fn detect_atomic_in_of_itself() {+ assert_suggestion_result("in of itself", lint_group(), "in and of itself");+}++#[test]+fn correct_real_world_in_of_itself() {+ assert_suggestion_result(+ "This is not entirely unexpected in of itself, as Git and GitHub Desktop both generally prove fairly bad at delineating context intelligently...",lint_group(),- "this issue: html: properly handle exclamation marks in comments",- );+ "This is not entirely unexpected in and of itself, as Git and GitHub Desktop both generally prove fairly bad at delineating context intelligently...",+ )}+// InAnyWay#[test]-fn detect_explanation_point_atomic() {- assert_suggestion_result("explanation point", lint_group(), "exclamation point");+fn detect_in_anyway_atomic() {+ assert_suggestion_result("in anyway", lint_group(), "in any way");}#[test]-fn detect_explanation_point_real_world() {+fn detect_in_anyway_real_world() {assert_suggestion_result(- "js and makes an offhand mention that you can disable inbuilt plugin with an explanation point (e.g. !error ).",+ "The names should not affect your application in anyway and you can override extension names.",lint_group(),- "js and makes an offhand mention that you can disable inbuilt plugin with an exclamation point (e.g. !error ).",+ "The names should not affect your application in any way and you can override extension names.",);}+// InAWhile#[test]-fn detect_as_early_back_as() {- assert_suggestion_result("as early back as", lint_group(), "as far back as");-}--#[test]-fn detect_as_early_back_as_real_world() {+fn test_in_a_while() {assert_suggestion_result(- "skin overrides also supports a wide variety of minecraft versions - as early back as 1.14.4.",+ "We’ll talk again in while.",lint_group(),- "skin overrides also supports a wide variety of minecraft versions - as far back as 1.14.4.",+ "We’ll talk again in a while.",);}-#[test]-fn detect_a_long_time() {- assert_suggestion_result("along time", lint_group(), "a long time");+// InCase+// -none-++// InDetail+fn in_detail_atomic() {+ assert_suggestion_result("in details", lint_group(), "in detail");}#[test]-fn detect_a_long_time_real_world() {+fn in_detail_real_world() {assert_suggestion_result(- "Fast refreshing is very slow had to wait along time for it to update.",+ "c++ - who can tell me \"*this pointer\" in details?",lint_group(),- "Fast refreshing is very slow had to wait a long time for it to update.",- );+ "c++ - who can tell me \"*this pointer\" in detail?",+ )}+// InMoreDetail#[test]-fn detect_each_and_everyone() {- assert_suggestion_result("each and everyone", lint_group(), "each and every one");+fn in_more_detail_atomic() {+ assert_suggestion_result("in more details", lint_group(), "in more detail");}#[test]-fn detect_each_and_everyone_real_world() {+fn in_more_detail_real_world() {assert_suggestion_result(- "I have modified each and everyone of them to keep only the best of the best!",+ "Document the interface in more details · Issue #3 · owlbarn ...",lint_group(),- "I have modified each and every one of them to keep only the best of the best!",+ "Document the interface in more detail · Issue #3 · owlbarn ...",);}+// InNeedOf#[test]-fn test_instead_of() {+fn corrects_in_need_of() {assert_suggestion_result(- "He used water in stead of soda.",+ "In need for a native control for map symbols (map legend) #5203.",lint_group(),- "He used water instead of soda.",+ "In need of a native control for map symbols (map legend) #5203.",);}+// InOneFellSwoop+// -none-++// InsteadOf#[test]-fn correct_an_another() {+fn test_instead_of() {assert_suggestion_result(- "Render shader to use it as texture in an another shader.",+ "He used water in stead of soda.",lint_group(),- "Render shader to use it as texture in another shader.",+ "He used water instead of soda.",);}@@ -688,21 +1032,23 @@ fn test_instead_of_clean() {assert_lint_count("He used water instead of soda.", lint_group(), 0);}+// Insurmountable#[test]-fn test_intact() {+fn corrects_unsurmountable() {assert_suggestion_result(- "The code remains in tact after the merge.",+ "That being said, if you find upgrading to newer versions to be unsurmountable, please open an issue.",lint_group(),- "The code remains intact after the merge.",- );+ "That being said, if you find upgrading to newer versions to be insurmountable, please open an issue.",+ )}+// Intact#[test]-fn correct_a_another() {+fn test_intact() {assert_suggestion_result(- "Audit login is a another package for laravel framework.",+ "The code remains in tact after the merge.",lint_group(),- "Audit login is another package for laravel framework.",+ "The code remains intact after the merge.",);}@@ -711,73 +1057,88 @@ fn test_intact_clean() {assert_lint_count("The data set remains intact.", lint_group(), 0);}+// InThe+// -none-++// InvestIn#[test]-fn test_ive_got_to() {+fn corrects_invest_into() {assert_suggestion_result(- "I've go to finish this before Monday.",+ "which represents the amount of money they want to invest into a particular deal.",lint_group(),- "I've got to finish this before Monday.",+ "which represents the amount of money they want to invest in a particular deal.",);}#[test]-fn correct_another_an() {+fn corrects_investing_into() {assert_suggestion_result(- "Yet another an atomic deployment tool.",+ "Taking dividends in cash (rather than automatically re-investing into the originating fund) can help alleviate the need for rebalancing.",lint_group(),- "Yet another atomic deployment tool.",+ "Taking dividends in cash (rather than automatically re-investing in the originating fund) can help alleviate the need for rebalancing.",);}#[test]-fn test_for_a_long_time() {+fn corrects_invested_into() {assert_suggestion_result(- "I was stuck there for along time.",+ "it's all automatically invested into a collection of loans that match the criteria that ...",lint_group(),- "I was stuck there for a long time.",+ "it's all automatically invested in a collection of loans that match the criteria that ...",);}#[test]-fn correct_another_ones() {- assert_nth_suggestion_result(- "Change list params of a resource, another ones change too",+fn corrects_invests_into() {+ assert_suggestion_result(+ "If a user invests into the protocol first using USDC but afterward changing to DAI, ...",lint_group(),- "Change list params of a resource, other ones change too",- 2,+ "If a user invests in the protocol first using USDC but afterward changing to DAI, ...",);}+// IsKnownFor+// -none-++// ItCan+// -none-++// IveGotTo#[test]-fn test_in_a_while() {+fn test_ive_got_to() {assert_suggestion_result(- "We’ll talk again in while.",+ "I've go to finish this before Monday.",lint_group(),- "We’ll talk again in a while.",+ "I've got to finish this before Monday.",);}+// JawDropping+// -none-++// JustDeserts+// -none-++// KindOf#[test]-fn correct_another_things() {- assert_nth_suggestion_result(- "Another things to fix in the Mask editor",+fn corrects_kinda_of() {+ assert_suggestion_result(+ "Some kinda of Sync issue only with 0.79.1",lint_group(),- "Other things to fix in the Mask editor",- 1,+ "Some kind of Sync issue only with 0.79.1",);}+// KindRegards+// -none-++// LastButNotLeast#[test]-fn test_human_beings() {- assert_suggestion_result(- "All humans beings deserve empathy.",- lint_group(),- "All human beings deserve empathy.",- );+fn issue_777() {assert_suggestion_result(- "We should respect a human's beings fundamental rights.",+ "Last but not the least, with VS2013 you can use Web Essentials 2013",lint_group(),- "We should respect a human beings fundamental rights.",+ "Last but not least, with VS2013 you can use Web Essentials 2013",);}@@ -790,413 +1151,546 @@ fn test_last_but_not_least() {);}+// LastDitch#[test]-fn test_half_an_hour() {+fn correct_last_ditched() {assert_suggestion_result(- "It took half an our to get there.",+ "I was actually just trying that as a last ditched attempt to get it working, previously those ...",lint_group(),- "It took half an hour to get there.",+ "I was actually just trying that as a last-ditch attempt to get it working, previously those ...",);}#[test]-fn correct_the_another() {+fn correct_last_ditch_space() {assert_suggestion_result(- "Another possible cause is simply that the application does not have file creation permissions on the another machine.",+ "There are unique use cases and is meant to be a last ditch option.",lint_group(),- "Another possible cause is simply that the application does not have file creation permissions on the other machine.",+ "There are unique use cases and is meant to be a last-ditch option.",);}+// LetAlone#[test]-fn on_second_thought_clean() {- assert_lint_count(- "She considered driving home, but on second thought, she decided to walk.",+fn let_along() {+ assert_suggestion_result("let along", lint_group(), "let alone");+}++// LikeThePlague+#[test]+fn correct_like_a_plague() {+ assert_suggestion_result(+ "Below is the worst example of them all (avoid such coding like a plague):",lint_group(),- 0,+ "Below is the worst example of them all (avoid such coding like the plague):",);}+// LowHangingFruit#[test]-fn on_second_thought_incorrect() {+fn corrects_low_hanging_fruit() {assert_suggestion_result(- "I was going to buy it, but on second though, maybe I'll wait.",+ "If you add me as a collaborator i can start merging some of the low hanging fruit.",lint_group(),- "I was going to buy it, but on second thought, maybe I'll wait.",- );+ "If you add me as a collaborator i can start merging some of the low-hanging fruit.",+ )}#[test]-fn correct_highly_kept_space() {+fn corrects_low_hanging_fruits_hyphen() {assert_suggestion_result(- "I assure you that frequency/angle dependence is a highly kept secret.",+ "Field guide to gather low-hanging fruits.",lint_group(),- "I assure you that frequency/angle dependence is a well-kept secret.",+ "Field guide to gather low-hanging fruit.",+ )+}++#[test]+fn corrects_low_hanging_fruits_space() {+ assert_suggestion_result(+ "Will search for low hanging fruits and useful information for escalation on a compromised workstation.",+ lint_group(),+ "Will search for low-hanging fruit and useful information for escalation on a compromised workstation.",+ )+}++// Monumentous+#[test]+fn detect_monumentous_atomic() {+ assert_suggestion_result("monumentous", lint_group(), "momentous");+}++#[test]+fn detect_monumentous_real_world() {+ assert_suggestion_result(+ "I think that would be a monumentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",+ lint_group(),+ "I think that would be a momentous step in the right direction, and would DEFINATLY turn heads in not just the music industry, but every ...",);}+// MootPoint+// -none-++// MuchAdo#[test]-fn expand_cuz() {+fn corrects_much_ado() {assert_suggestion_result(- "Stick around cuz I got a surprise for you at the end.",+ "After much adieu this functionality is now available.",lint_group(),- "Stick around because I got a surprise for you at the end.",+ "After much ado this functionality is now available.",);}+// MuchWorse#[test]-fn on_second_thought_no_false_positive() {- assert_lint_count(- "My second though is that I'd prefer something else entirely.",+fn detect_much_worse_atomic() {+ assert_suggestion_result("much worst", lint_group(), "much worse");+}++#[test]+fn detect_much_worse_real_world() {+ assert_suggestion_result(+ "the generated image quality is much worst (actually nearly broken)",lint_group(),- 0,+ "the generated image quality is much worse (actually nearly broken)",);}+// MyHouse+// -none-++// NeedHelp+// -none-++// NerveRacking#[test]-fn excellent_clean() {- assert_lint_count(- "The performance was excellent, drawing praise from all critics.",+fn detect_nerve_wracking_hyphen() {+ assert_suggestion_result(+ "We've gone through several major changes / upgrades to atlantis, and it's always a little bit nerve-wracking because if we mess something up we ...",lint_group(),- 0,+ "We've gone through several major changes / upgrades to atlantis, and it's always a little bit nerve-racking because if we mess something up we ...",);}#[test]-fn excellent_incorrect() {+fn detect_nerve_wrecking_hyphen() {assert_suggestion_result(- "Her results were very good this semester.",+ "The issue happens to me on a daily basis, and it is nerve-wrecking because I become unsure if I have actually saved the diagram, but every time ...",lint_group(),- "Her results were excellent this semester.",+ "The issue happens to me on a daily basis, and it is nerve-racking because I become unsure if I have actually saved the diagram, but every time ...",);}#[test]-fn excellent_no_false_positive() {- assert_lint_count(- "He radiated a sense of very goodness in his charitable acts.",+fn detect_nerve_wracking_no_hyphen() {+ assert_suggestion_result(+ "Very nerve wracking landing in an unfamiliar mountainous airport in dead of night with no radar to show surrounding terrain.",lint_group(),- 0,+ "Very nerve-racking landing in an unfamiliar mountainous airport in dead of night with no radar to show surrounding terrain.",);}#[test]-fn correct_highly_kept_no_hyphen() {+fn detect_nerve_wrecking_no_hyphen() {assert_suggestion_result(- "Well, Kushina's giving birth was already a highly-kept secret so it makes sense to operate with only the completely necessary personnel.",+ "I appreciate any kind of help since this is kind of nerve wrecking.",lint_group(),- "Well, Kushina's giving birth was already a well-kept secret so it makes sense to operate with only the completely necessary personnel.",+ "I appreciate any kind of help since this is kind of nerve-racking.",);}#[test]-fn correct_on_face_value() {+fn detect_nerve_racking_no_hyphen() {assert_suggestion_result(- "Obviously what you want is possible and on face value it's a trivial change on our end.",+ "It's nerve racking to think about it because I have code inside the callback that resolves the member and somehow I feel like it's so ..",lint_group(),- "Obviously what you want is possible and at face value it's a trivial change on our end.",+ "It's nerve-racking to think about it because I have code inside the callback that resolves the member and somehow I feel like it's so ..",);}+// NotIn+// -none-++// NotTo+// -none-++// OfCourse#[test]-fn correct_trail_and_error() {+fn off_course() {assert_suggestion_result(- "It was produced through trail and error.",+ "Yes, off course we should do that.",lint_group(),- "It was produced through trial and error.",+ "Yes, of course we should do that.",);}#[test]-fn correct_hone_in_on() {+fn o_course() {assert_suggestion_result(- "This way you can use an object detector algorithm to hone in on subjects and tell sam to only focus in certain areas when looking to extend ...",+ "Yes, o course we should do that.",lint_group(),- "This way you can use an object detector algorithm to home in on subjects and tell sam to only focus in certain areas when looking to extend ...",+ "Yes, of course we should do that.",);}+// OffTheCuff+// -none-++// OldWivesTale+// -none-++// OnceInAWhile#[test]-fn correct_honing_in_on() {+fn corrects_once_a_while() {assert_suggestion_result(- "I think I understand the syntax limitation you're honing in on.",+ "For me it is a SMB mount I have on the client device that I sync only once a while for a backup into the cloud.",lint_group(),- "I think I understand the syntax limitation you're homing in on.",+ "For me it is a SMB mount I have on the client device that I sync only once in a while for a backup into the cloud.",);}#[test]-fn correct_hones_in_on() {+fn corrects_once_and_a_while() {assert_suggestion_result(- "[FEATURE] Add a magnet that hones in on mobs",+ "Every once and a while all the links on my page seem to stop working.",lint_group(),- "[FEATURE] Add a magnet that homes in on mobs",+ "Every once in a while all the links on my page seem to stop working.",);}+// OnSecondThought#[test]-fn correct_honed_in_on() {- assert_suggestion_result(- "But it took me quite a bit of faffing about checking things out before I honed in on the session as the problem and tried to dump out the ...",+fn on_second_thought_clean() {+ assert_lint_count(+ "She considered driving home, but on second thought, she decided to walk.",lint_group(),- "But it took me quite a bit of faffing about checking things out before I homed in on the session as the problem and tried to dump out the ...",+ 0,);}#[test]-fn correct_unless_if() {+fn on_second_thought_incorrect() {assert_suggestion_result(- "Simplex does not interpret the following invite link as an invite link unless if it has https:// in front of it.",+ "I was going to buy it, but on second though, maybe I'll wait.",lint_group(),- "Simplex does not interpret the following invite link as an invite link unless it has https:// in front of it.",+ "I was going to buy it, but on second thought, maybe I'll wait.",);}#[test]-fn suffice_it_to_say() {- assert_suggestion_result(- "I don't fully grok the bug, but suffice to say it is not an RCD issue.",+fn on_second_thought_no_false_positive() {+ assert_lint_count(+ "My second though is that I'd prefer something else entirely.",lint_group(),- "I don't fully grok the bug, but suffice it to say it is not an RCD issue.",+ 0,);}+// OnTheSpurOfTheMoment+// -none-++// OperatingSystem#[test]-fn correct_after_while() {+fn operative_system() {assert_suggestion_result(- "bromite Crashes on all sites after while.",+ "COS is a operative system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",lint_group(),- "bromite Crashes on all sites after a while.",+ "COS is a operating system made with the COSMOS Kernel and written in C#, COS its literally the same than MS-DOS but written in C# and open-source.",);}#[test]-fn correct_for_while() {+fn operative_systems() {assert_suggestion_result(- "Build flutter releases in github actions for production only android for while.",+ "My dotfiles for my operative systems and other configurations.",lint_group(),- "Build flutter releases in github actions for production only android for a while.",+ "My dotfiles for my operating systems and other configurations.",);}+// PeaceOfMind#[test]-fn correct_like_a_plague() {+fn corrects_piece_of_mind() {assert_suggestion_result(- "Below is the worst example of them all (avoid such coding like a plague):",+ "A Discord bot that gives you piece of mind knowing you are free from obnoxious intrusions in a Discord Voice Channel",lint_group(),- "Below is the worst example of them all (avoid such coding like the plague):",- );+ "A Discord bot that gives you peace of mind knowing you are free from obnoxious intrusions in a Discord Voice Channel",+ )}+// Piggyback+// -none-++// PointIsMoot#[test]-fn correct_have_went() {- assert_suggestion_result(- "I have went into the btle.py file and added a print statement in _connect()",- lint_group(),- "I have gone into the btle.py file and added a print statement in _connect()",- );+fn point_is_moot() {+ assert_suggestion_result("Your point is mute.", lint_group(), "Your point is moot.");}+// PointsOfView#[test]-fn correct_had_went() {+fn corrects_points_of_view() {assert_suggestion_result(- "Not sure if TroLoos had went from Tasmota->minimal->Tasmota, or directly Minimal->Tasmota, but going ESPHome->Minimal->Tasmota is not possible",+ "This will produce a huge amount of raw data, representing the region in multiple point of views.",lint_group(),- "Not sure if TroLoos had gone from Tasmota->minimal->Tasmota, or directly Minimal->Tasmota, but going ESPHome->Minimal->Tasmota is not possible",- );+ "This will produce a huge amount of raw data, representing the region in multiple points of view.",+ )}+// PrayingMantis+// -none-++// RapidFire+// -none-++// RealTrouper+// -none-++// RifeWith+// -none-++// RoadMap+// -none-++// SameAs+// -none-++// ScantilyClad+// -none-++// ServerSide#[test]-fn correct_having_went() {+fn correct_servers_side() {assert_suggestion_result(- "Having went through the setup guidelines and picking react starter, running npm run watch results in an error",+ "A client-server model where the client can execute commands in a terminal on the server's side",lint_group(),- "Having gone through the setup guidelines and picking react starter, running npm run watch results in an error",+ "A client-server model where the client can execute commands in a terminal on the server-side",);}+// SimpleGrammatical+// -none-++// SneakingSuspicion#[test]-fn correct_has_went() {- assert_suggestion_result(- "I would like to report that the package request which you are loading has went into maintenance mode.",- lint_group(),- "I would like to report that the package request which you are loading has gone into maintenance mode.",- );+fn sneaky_suspicion() {+ assert_suggestion_result("sneaky suspicion", lint_group(), "sneaking suspicion");}+// SomeOfThe#[test]-fn correct_case_and_point_spaced() {+fn corrects_some_the_beginning() {assert_suggestion_result(- "They are just not as high of a priority as other tasks that user's are requesting for, a case and point is I have never ran into this issue.",+ "Some the trees are too thick to climb.",lint_group(),- "They are just not as high of a priority as other tasks that user's are requesting for, a case in point is I have never ran into this issue.",+ "Some of the trees are too thick to climb.",);}#[test]-fn correct_has_past() {+fn corrects_some_the() {assert_suggestion_result(- "Track the amount of time that has past since a point in time.",+ "You have misplaced some the config files.",lint_group(),- "Track the amount of time that has passed since a point in time.",+ "You have misplaced some of the config files.",);}+// SoonerOrLater+// -none-++// SpecialAttention#[test]-fn correct_have_past() {- assert_suggestion_result(- "Another 14+ days have past, any updates on this?",- lint_group(),- "Another 14+ days have passed, any updates on this?",- );+fn spacial_attention() {+ assert_suggestion_result("spacial attention", lint_group(), "special attention");}+// SpokeTooSoon+// -none-++// Starving+// -none-++// StateOfTheArt+// -none-++// SufficeItToSay#[test]-fn correct_had_past() {+fn suffice_it_to_say() {assert_suggestion_result(- "Few days had past, so im starting to thinks there is a problem in my local version.",+ "I don't fully grok the bug, but suffice to say it is not an RCD issue.",lint_group(),- "Few days had passed, so im starting to thinks there is a problem in my local version.",+ "I don't fully grok the bug, but suffice it to say it is not an RCD issue.",);}+// SupposedTo#[test]-fn correct_having_past() {- assert_suggestion_result(- "Return to computer, with enough time having past for the computer to go to full sleep.",- lint_group(),- "Return to computer, with enough time having passed for the computer to go to full sleep.",- );+fn supposed_to() {+ assert_suggestion_result("suppose to", lint_group(), "supposed to");}+// TakeItPersonally#[test]-fn correct_worse_case_space() {+fn corrects_take_it_personal() {assert_suggestion_result(- "In the worse case scenario, remote code execution could be achieved.",+ "This is not personal, do not take it personal, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",lint_group(),- "In the worst-case scenario, remote code execution could be achieved.",+ "This is not personal, do not take it personally, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",);}+// TakeItSeriously+// -none-++// ThatChallenged+// -none-++// ThatThis+// -none-++// TheAnother#[test]-fn correct_worse_case_hyphen() {+fn correct_the_another() {assert_suggestion_result(- "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worse-case scenario.",+ "Another possible cause is simply that the application does not have file creation permissions on the another machine.",lint_group(),- "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worst-case scenario.",+ "Another possible cause is simply that the application does not have file creation permissions on the other machine.",);}+// ThereIsAny+// -none-++// ThoughtProcess+// -none-++// TickingTimeClock#[test]-fn correct_worse_case_two_hyphens() {+fn suggests_ticking_time_bomb() {assert_suggestion_result(- "In a worse-case-scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",+ "One element that can help up the stakes (and tension!) is a “ticking time clock.”",lint_group(),- "In a worst-case scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",+ "One element that can help up the stakes (and tension!) is a “ticking time bomb.”",);}#[test]-fn correct_worst_case_space() {- assert_suggestion_result(- "The worst case scenario can be calculated without looking at streams of data.",+fn suggests_ticking_clock() {+ assert_nth_suggestion_result(+ "The opportunity itself has a ticking time clock as all great opportunities do.",lint_group(),- "The worst-case scenario can be calculated without looking at streams of data.",+ "The opportunity itself has a ticking clock as all great opportunities do.",+ 1,);}+// ToDoHyphen+// -none-++// ToTheMannerBorn+// -none-++// Towards+// -none-++// TrialAndError#[test]-fn correct_worst_case_two_hyphens() {+fn correct_trail_and_error() {assert_suggestion_result(- "CAPD worst-case-scenario cloud simulator for naughty clouds.",+ "It was produced through trail and error.",lint_group(),- "CAPD worst-case scenario cloud simulator for naughty clouds.",+ "It was produced through trial and error.",);}+// TurnForTheWorse#[test]-fn corrects_dont_wan() {- assert_suggestion_result(- "I don't wan to pay for this.",- lint_group(),- "I don't want to pay for this.",- );+fn detect_turn_for_the_worse_atomic() {+ assert_suggestion_result("turn for the worst", lint_group(), "turn for the worse");}#[test]-fn correct_clients_side() {+fn detect_turn_for_the_worse_real_world() {assert_suggestion_result(- "I want to debug this server-side as I cannot find out why the connection is being refused from the client's side.",+ "Very surprised to see this repo take such a turn for the worst.",lint_group(),- "I want to debug this server-side as I cannot find out why the connection is being refused from the client-side.",+ "Very surprised to see this repo take such a turn for the worse.",);}+// TurnItOff#[test]-fn corrects_mixed_case() {- assert_suggestion_result(- "Don't Wan that option.",- lint_group(),- "Don't Want that option.",- );+fn turn_it_off_clean_lower() {+ assert_lint_count("turn it off", lint_group(), 0);}#[test]-fn does_not_flag_already_correct() {- assert_lint_count("I don't want to leave.", lint_group(), 0);+fn turn_it_off_clean_upper() {+ assert_lint_count("Turn it off", lint_group(), 0);}#[test]-fn detect_cursing_through_veins_atomic() {- assert_suggestion_result(- "cursing through veins",- lint_group(),- "coursing through veins",- );+fn of_confusion() {+ assert_suggestion_result("Turn it of", lint_group(), "Turn it off");}#[test]-fn detect_cursing_through_veins_real_world() {- assert_suggestion_result(- "It felt like the drugs were cursing through veins.",- lint_group(),- "It felt like the drugs were coursing through veins.",- );+fn i_and_of_confusion() {+ assert_suggestion_result("Turn i of", lint_group(), "Turn it off");}#[test]-fn does_not_flag_other_contexts() {- assert_lint_count(- "He was cursing through the entire meeting.",+fn issue_574() {+ assert_lint_count("run by one", lint_group(), 0);+}++// Unless+#[test]+fn correct_unless_if() {+ assert_suggestion_result(+ "Simplex does not interpret the following invite link as an invite link unless if it has https:// in front of it.",lint_group(),- 0,+ "Simplex does not interpret the following invite link as an invite link unless it has https:// in front of it.",);}+// WantBe+// -none-++// WaveFunction+// -none-++// WellBeing+// -noun-++// WellKept#[test]-fn correct_servers_side() {+fn correct_highly_kept_space() {assert_suggestion_result(- "A client-server model where the client can execute commands in a terminal on the server's side",+ "I assure you that frequency/angle dependence is a highly kept secret.",lint_group(),- "A client-server model where the client can execute commands in a terminal on the server-side",+ "I assure you that frequency/angle dependence is a well-kept secret.",);}#[test]-fn correct_how_it_looks_like_1() {+fn correct_highly_kept_no_hyphen() {assert_suggestion_result(- "And here is how it looks like: As you can see, there is no real difference in the diagram itself.",+ "Well, Kushina's giving birth was already a highly-kept secret so it makes sense to operate with only the completely necessary personnel.",lint_group(),- "And here is how it looks: As you can see, there is no real difference in the diagram itself.",+ "Well, Kushina's giving birth was already a well-kept secret so it makes sense to operate with only the completely necessary personnel.",);}+// WhatHeLooksLike#[test]-fn correct_last_ditched() {+fn correct_how_it_looks_like_1() {assert_suggestion_result(- "I was actually just trying that as a last ditched attempt to get it working, previously those ...",+ "And here is how it looks like: As you can see, there is no real difference in the diagram itself.",lint_group(),- "I was actually just trying that as a last-ditch attempt to get it working, previously those ...",+ "And here is how it looks: As you can see, there is no real difference in the diagram itself.",);}@@ -1219,15 +1713,6 @@ fn correct_how_they_look_like_1() {);}-#[test]-fn corrects_invested_into() {- assert_suggestion_result(- "it's all automatically invested into a collection of loans that match the criteria that ...",- lint_group(),- "it's all automatically invested in a collection of loans that match the criteria that ...",- );-}-#[test]fn correct_how_they_look_like_2() {assert_nth_suggestion_result(@@ -1247,15 +1732,6 @@ fn correct_how_they_looks_like_1() {);}-#[test]-fn correct_last_ditch_space() {- assert_suggestion_result(- "There are unique use cases and is meant to be a last ditch option.",- lint_group(),- "There are unique use cases and is meant to be a last-ditch option.",- );-}-#[test]fn correct_how_they_looks_like_2() {assert_nth_suggestion_result(@@ -1275,15 +1751,6 @@ fn correct_how_she_looks_like_1() {);}-#[test]-fn corrects_invest_into() {- assert_suggestion_result(- "which represents the amount of money they want to invest into a particular deal.",- lint_group(),- "which represents the amount of money they want to invest in a particular deal.",- );-}-#[test]fn correct_how_he_looks_like_2() {assert_nth_suggestion_result(@@ -1303,15 +1770,6 @@ fn correct_how_it_look_like_1() {);}-#[test]-fn corrects_investing_into() {- assert_suggestion_result(- "Taking dividends in cash (rather than automatically re-investing into the originating fund) can help alleviate the need for rebalancing.",- lint_group(),- "Taking dividends in cash (rather than automatically re-investing in the originating fund) can help alleviate the need for rebalancing.",- );-}-#[test]fn correct_how_it_look_like_2() {assert_nth_suggestion_result(@@ -1331,253 +1789,132 @@ fn correct_how_it_looks_like_with_apostrophe() {);}-#[test]-fn corrects_invests_into() {- assert_suggestion_result(- "If a user invests into the protocol first using USDC but afterward changing to DAI, ...",- lint_group(),- "If a user invests in the protocol first using USDC but afterward changing to DAI, ...",- );-}--#[test]-fn corrects_once_a_while() {- assert_suggestion_result(- "For me it is a SMB mount I have on the client device that I sync only once a while for a backup into the cloud.",- lint_group(),- "For me it is a SMB mount I have on the client device that I sync only once in a while for a backup into the cloud.",- );-}+// WhetYourAppetite+// -none-+// WholeEntire#[test]-#[ignore = "There's a bug when changing the length of title case phrases.\nI believe there's a fix coming in a PR. Uncomment when fixed."]-fn corrects_gilded_age_capitalized() {- assert_suggestion_result(- "It is especially a reflection of the socio-economic patterns in the Guilded Age.",- lint_group(),- "It is especially a reflection of the socio-economic patterns in the Gilded Age.",- );+fn detect_atomic_whole_entire() {+ assert_suggestion_result("whole entire", lint_group(), "whole");}#[test]-#[ignore = "Currently the correct spelling is suggested but the case is not changed.\nThis may also be fixed in the coming PR mentioned above."]-fn corrects_gilded_age_lowercase() {+fn correct_real_world_whole_entire() {assert_suggestion_result(- "It is especially a reflection of the socio-economic patterns in the guilded age.",+ "[FR] support use system dns in whole entire app",lint_group(),- "It is especially a reflection of the socio-economic patterns in the Gilded Age.",+ "[FR] support use system dns in whole app",);}-#[test]-fn corrects_once_and_a_while() {- assert_suggestion_result(- "Every once and a while all the links on my page seem to stop working.",- lint_group(),- "Every once in a while all the links on my page seem to stop working.",- );-}+// WillContain+// -none--#[test]-fn detect_ever_present_atomic() {- assert_suggestion_result("ever present", lint_group(), "ever-present");-}+// WorldWarII+// -none-+// WorseAndWorse#[test]-fn detect_ever_present_real_world() {- assert_suggestion_result(- "Distrust was an ever present tension in the negotiations.",- lint_group(),- "Distrust was an ever-present tension in the negotiations.",- );+fn detect_worst_and_worst_atomic() {+ assert_suggestion_result("worst and worst", lint_group(), "worse and worse");}#[test]-fn corrects_definite_article() {+fn detect_worst_and_worst_real_world() {assert_suggestion_result(- "As for format of outputs: the spec defines the field as using the singular definitive article \"the\"",+ "This control-L trick does not work for me. The padding is getting worst and worst.",lint_group(),- "As for format of outputs: the spec defines the field as using the singular definite article \"the\"",+ "This control-L trick does not work for me. The padding is getting worse and worse.",);}#[test]-#[ignore = "Title case capitalization problem causes this one to fail too."]-fn corrects_definite_articles_title_case() {+fn detect_worse_and_worst_real_world() {assert_suggestion_result(- "01 Definitive Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",+ "This progressively got worse and worst to the point that the machine (LEAD 1010) stopped moving alltogether.",lint_group(),- "01 Definite Articles: De or Het. Before starting more complicated topics in Dutch grammar, you should be aware of the articles.",+ "This progressively got worse and worse to the point that the machine (LEAD 1010) stopped moving alltogether.",);}+// WorseThan#[test]-fn corrects_definite_articles_lowercase() {- assert_suggestion_result(- ".. definitive articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",- lint_group(),- ".. definite articles -та /-ta/ and -те /-te/ (postfixed in Bulgarian).",- );+fn detect_worse_than_atomic() {+ assert_suggestion_result("worst than", lint_group(), "worse than");}#[test]-fn corrects_further_ado() {+fn detect_worse_than_real_world() {assert_suggestion_result(- "... but we finally hit a great spot, so without further adieu.",+ "Project real image - inversion quality is worst than in StyleGAN2",lint_group(),- "... but we finally hit a great spot, so without further ado.",+ "Project real image - inversion quality is worse than in StyleGAN2",);}+// WorstCaseScenario#[test]-fn corrects_much_ado() {+fn correct_worse_case_space() {assert_suggestion_result(- "After much adieu this functionality is now available.",+ "In the worse case scenario, remote code execution could be achieved.",lint_group(),- "After much ado this functionality is now available.",+ "In the worst-case scenario, remote code execution could be achieved.",);}#[test]-fn corrects_fair_bit() {+fn correct_worse_case_hyphen() {assert_suggestion_result(- "I've read through a fare bit of the ecosystem framework, but I am not clear on what is modified...",+ "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worse-case scenario.",lint_group(),- "I've read through a fair bit of the ecosystem framework, but I am not clear on what is modified...",+ "Basically I want my pods to get the original client IP address... or at least have X-Forwarded-For header, in a worst-case scenario.",);}#[test]-fn corrects_take_it_personal() {+fn correct_worse_case_two_hyphens() {assert_suggestion_result(- "This is not personal, do not take it personal, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",+ "In a worse-case-scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",lint_group(),- "This is not personal, do not take it personally, we also think Thingsboard is a extraordinary tool (we are using in several scenarios in fact)",+ "In a worst-case scenario, the scenario class code and the results being analysed, become out of sync, and so the wrong labels are applied.",);}#[test]-fn corrects_as_of_lately() {- assert_suggestion_result(- "I haven't noticed any crashing with AMDGPU as of lately, so this looks to not be an issue anymore.",- lint_group(),- "I haven't noticed any crashing with AMDGPU as of late, so this looks to not be an issue anymore.",- )-}--#[test]-fn corrects_points_of_view() {- assert_suggestion_result(- "This will produce a huge amount of raw data, representing the region in multiple point of views.",- lint_group(),- "This will produce a huge amount of raw data, representing the region in multiple points of view.",- )-}--#[test]-fn corrects_some_the_beginning() {+fn correct_worst_case_space() {assert_suggestion_result(- "Some the trees are too thick to climb.",+ "The worst case scenario can be calculated without looking at streams of data.",lint_group(),- "Some of the trees are too thick to climb.",+ "The worst-case scenario can be calculated without looking at streams of data.",);}#[test]-fn corrects_some_the() {+fn correct_worst_case_two_hyphens() {assert_suggestion_result(- "You have misplaced some the config files.",+ "CAPD worst-case-scenario cloud simulator for naughty clouds.",lint_group(),- "You have misplaced some of the config files.",+ "CAPD worst-case scenario cloud simulator for naughty clouds.",);}+// WorstEver#[test]-fn corrects_brutalness() {- assert_suggestion_result(- "the mildness and brutalness of the story rises.",- lint_group(),- "the mildness and brutality of the story rises.",- )-}--#[test]-fn corrects_unsurmountable() {- assert_suggestion_result(- "That being said, if you find upgrading to newer versions to be unsurmountable, please open an issue.",- lint_group(),- "That being said, if you find upgrading to newer versions to be insurmountable, please open an issue.",- )-}--#[test]-fn corrects_kinda_of() {- assert_suggestion_result(- "Some kinda of Sync issue only with 0.79.1",- lint_group(),- "Some kind of Sync issue only with 0.79.1",- );+fn detect_worst_ever_atomic() {+ assert_suggestion_result("worse ever", lint_group(), "worst ever");}#[test]-fn corrects_in_need_of() {+fn detect_worst_ever_real_world() {assert_suggestion_result(- "In need for a native control for map symbols (map legend) #5203.",+ "The Bcl package family is one of the worse ever published by Microsoft.",lint_group(),- "In need of a native control for map symbols (map legend) #5203.",+ "The Bcl package family is one of the worst ever published by Microsoft.",);}+// Used to belong to LoAndBehold which disappeared in #efb3b82#[test]-fn corrects_piece_of_mind() {- assert_suggestion_result(- "A Discord bot that gives you piece of mind knowing you are free from obnoxious intrusions in a Discord Voice Channel",- lint_group(),- "A Discord bot that gives you peace of mind knowing you are free from obnoxious intrusions in a Discord Voice Channel",- )-}--#[test]-fn corrects_a_couple_of_more() {- assert_suggestion_result(- "There are a couple of more rules that could be added, how can I contribute?",- lint_group(),- "There are a couple more rules that could be added, how can I contribute?",- )-}--#[test]-fn corrects_all_of_a_sudden() {- assert_suggestion_result(- "On an app that has been released since December, all of the sudden around February 5th ANRs started going up.",- lint_group(),- "On an app that has been released since December, all of a sudden around February 5th ANRs started going up.",- )-}--#[test]-fn corrects_low_hanging_fruit() {- assert_suggestion_result(- "If you add me as a collaborator i can start merging some of the low hanging fruit.",- lint_group(),- "If you add me as a collaborator i can start merging some of the low-hanging fruit.",- )-}--#[test]-fn corrects_low_hanging_fruits_hyphen() {- assert_suggestion_result(- "Field guide to gather low-hanging fruits.",- lint_group(),- "Field guide to gather low-hanging fruit.",- )-}--#[test]-fn corrects_low_hanging_fruits_space() {- assert_suggestion_result(- "Will search for low hanging fruits and useful information for escalation on a compromised workstation.",- lint_group(),- "Will search for low-hanging fruit and useful information for escalation on a compromised workstation.",- )+fn now_on_hold() {+ assert_lint_count("Those are now on hold for month.", lint_group(), 0);}