Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: mention which verb triggered lint in msg
hippietrailee197a6711b4
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dictindex 10f891bf4..6f72aedf3 100644--- a/harper-core/dictionary.dict+++ b/harper-core/dictionary.dict@@ -10192,7 +10192,7 @@ Tyree/2MTyrolean/51Tyrone/21MTyson/2M-U/15+2M+U/M # removed `1`noun `5`adj. `2`proper noun `+`prep., was interfering with linter heuristics. I only know this as an abbreviation for universityUAE/2M # United Arab EmiratesUAR/2UAW/2@@ -10212,7 +10212,7 @@ UPC/1UPI/21MUPS/142MURL/1S-US/215M+US/2MUSA/21MUSAF/2USAID/2M # agency@@ -35786,7 +35786,7 @@ omniscient/51omnivore/1MSomnivorous/~5PYomnivorousness/1M-on/~5+4+on/~5+ # verb sense is nonstandard dialectal and interferes with linter heuristicsonboard/~5j4SDGonce/~71Moncogene/1SM@@ -48889,7 +48889,7 @@ tyrant/~154SMtyre/14MS!tyro/1MStzatziki/1-u/~185S+# u/~185S # probably left over from hunspell, causes havoc with linter heuristicsubiquitous/~5Yubiquity/1Mudder/1SMdiff --git a/harper-core/src/linting/compound_nouns/implied_instantiated_compound_nouns.rs b/harper-core/src/linting/compound_nouns/implied_instantiated_compound_nouns.rsindex cd804d6fe..af6cb4acc 100644--- a/harper-core/src/linting/compound_nouns/implied_instantiated_compound_nouns.rs+++ b/harper-core/src/linting/compound_nouns/implied_instantiated_compound_nouns.rs@@ -49,7 +49,8 @@ impl PatternLinter for ImpliedInstantiatedCompoundNouns {lint_kind: LintKind::WordChoice,suggestions: vec![Suggestion::replace_with_match_case(word.to_vec(), orig)],message: format!(- "The verb here implies the existence of the closed compound noun “{}”.",+ "The auxiliary verb “{}” implies the existence of the closed compound noun “{}”.",+ matched_tokens[4].span.get_content(source).to_string(),word.to_string()),priority: 63,