Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
chore: "derivative of a" false positive
hippietrail723e2ba0773f
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rsindex c693a9094..1b98c00e0 100644--- a/harper-core/src/linting/adjective_of_a.rs+++ b/harper-core/src/linting/adjective_of_a.rs@@ -21,6 +21,7 @@ const FALSE_POSITIVES: &[&str] = &["bit","bottom","chance",+ "derivative","dream","front","half",@@ -427,4 +428,14 @@ mod tests {0,);}++ #[test]+ fn dont_flag_derivative() {+ // Adj: "a derivative story", Noun: "stocks and derivatives"+ assert_lint_count(+ "Techniques for evaluating the *partial derivative of a function",+ AdjectiveOfA,+ 0,+ )+ }}