Skip to content

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

perf(core): `PlainEnglish` parser in `ExactPhrase` (#1217)

Steve Kurch6e58a1500439
diff --git a/harper-core/src/patterns/exact_phrase.rs b/harper-core/src/patterns/exact_phrase.rs
index 5a78f21a7..06659e1ce 100644
--- a/harper-core/src/patterns/exact_phrase.rs
+++ b/harper-core/src/patterns/exact_phrase.rs
@@ -8,7 +8,7 @@ pub struct ExactPhrase {
impl ExactPhrase {
pub fn from_phrase(text: &str) -> Self {
- let document = Document::new_markdown_default_curated(text);
+ let document = Document::new_plain_english_curated(text);
Self::from_document(&document)
}