Skip to content

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

fix(core): PR getting flagged as 'misspelled' (#2476)

Elijah Potter5230d6ad8cca
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index e41489da0..bb57fd69f 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -8252,7 +8252,6 @@ PowerPoint/ONgV
Powers/NOg
Powhatan/NOg
Poznan/Og
-Pr/ # Praseodymium
Prada/g
Prado/Og
Praetorian/Ng
diff --git a/harper-core/src/linting/spell_check.rs b/harper-core/src/linting/spell_check.rs
index 1469d8493..b1a476848 100644
--- a/harper-core/src/linting/spell_check.rs
+++ b/harper-core/src/linting/spell_check.rs
@@ -505,4 +505,12 @@ mod tests {
SpellCheck::new(FstDictionary::curated(), Dialect::Indian),
);
}
+
+ #[test]
+ fn dont_flag_pr() {
+ assert_no_lints(
+ "PR",
+ SpellCheck::new(FstDictionary::curated(), Dialect::American),
+ );
+ }
}
diff --git a/harper-core/tests/text/linters/Difficult sentences.snap.yml b/harper-core/tests/text/linters/Difficult sentences.snap.yml
index 2994f33fc..7b8503edc 100644
--- a/harper-core/tests/text/linters/Difficult sentences.snap.yml
+++ b/harper-core/tests/text/linters/Difficult sentences.snap.yml
@@ -336,17 +336,6 @@ Suggest:
-Lint: Spelling (63 priority)
-Message: |
- 443 | With their reputation on the line, they decided to fire their PR team.
- | ^~ Did you mean to spell `PR` this way?
-Suggest:
- - Replace with: “Pa”
- - Replace with: “Par”
- - Replace with: “Pi”
-
-
-
Lint: Capitalization (31 priority)
Message: |
449 | slain with robbers.