Skip to content

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

fix: better fix for "more foreign" → "foreigner" (#2711)

Andrew Dunbara4e1b608cfd6
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index 1822ef99f..64f3e3cb3 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -25373,7 +25373,7 @@ foregone/VTJ
foreground/~NgSVGd
forehand/~NgSJV
forehead/~NgS
-foreign/~J>pNZ
+foreign/~JpNZ
foreigner/~Ng
foreignness/Ng
foreknew/V
diff --git a/harper-core/src/linting/more_adjective.rs b/harper-core/src/linting/more_adjective.rs
index f740459de..dfbe2fd7b 100644
--- a/harper-core/src/linting/more_adjective.rs
+++ b/harper-core/src/linting/more_adjective.rs
@@ -89,9 +89,8 @@ where
return None;
}
- // "foreigner" is a noun, not an adjective "more foreign"
// "humaner" = "more humane", not "more human"
- if adj_str == "foreign" || adj_str == "human" {
+ if adj_str == "human" {
return None;
}