Skip to content

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

fix: issue #171

Elijah Potterf4f1f9a8e520
diff --git a/harper-core/dictionary.dict b/harper-core/dictionary.dict
index a1d3ee915..ee0fb8936 100644
--- a/harper-core/dictionary.dict
+++ b/harper-core/dictionary.dict
@@ -33198,7 +33198,7 @@ nationalization/1MS
nationalize/4CDSG
nationhood/1M
nationwide/5
-native/51MS
+native/51MSY
nativity/1SM
natl/5
natter/41GMDS
diff --git a/harper-core/src/document.rs b/harper-core/src/document.rs
index fcbb933ba..3da3c7763 100644
--- a/harper-core/src/document.rs
+++ b/harper-core/src/document.rs
@@ -14,7 +14,6 @@ use crate::vec_ext::VecExt;
use crate::{Dictionary, FatToken, FullDictionary, Lrc, Token, TokenKind, TokenStringExt};
/// A document containing some amount of lexed and parsed English text.
-/// This is
#[derive(Debug, Clone)]
pub struct Document {
source: Lrc<Vec<char>>,
diff --git a/harper-core/src/spell/full_dictionary.rs b/harper-core/src/spell/full_dictionary.rs
index e63c5c5c7..30e117406 100644
--- a/harper-core/src/spell/full_dictionary.rs
+++ b/harper-core/src/spell/full_dictionary.rs
@@ -205,4 +205,10 @@ mod tests {
assert!(dict.get_word_metadata_str("than").is_conjunction());
assert!(dict.get_word_metadata_str("Than").is_conjunction());
}
+
+ #[test]
+ fn discussion_171() {
+ let dict = FullDictionary::curated();
+ assert!(dict.contains_word_str("natively"));
+ }
}