Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

chore: +"eighth"

hippietrail7790b40ef9c6
diff --git a/harper-core/src/linting/adjective_of_a.rs b/harper-core/src/linting/adjective_of_a.rs
index 28154315c..bbe61a5db 100644
--- a/harper-core/src/linting/adjective_of_a.rs
+++ b/harper-core/src/linting/adjective_of_a.rs
@@ -26,6 +26,7 @@ const FALSE_POSITIVES: &[&str] = &[
"clockwork",
"derivative",
"dream",
+ "eighth",
"front",
"half",
"head",
@@ -468,4 +469,13 @@ mod tests {
0,
);
}
+
+ #[test]
+ fn dont_flag_eighth() {
+ assert_lint_count(
+ "It's about an eighth of an inch or whatever",
+ AdjectiveOfA,
+ 0,
+ );
+ }
}