Skip to content

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

Moved dictionaries to publishable location

Elijah Potter9291165c4afb
diff --git a/dictionary.aff b/harper-core/dictionary.aff
similarity index 100%
rename from dictionary.aff
rename to harper-core/dictionary.aff
diff --git a/dictionary.dict b/harper-core/dictionary.dict
similarity index 100%
rename from dictionary.dict
rename to harper-core/dictionary.dict
diff --git a/harper-core/src/spell/hunspell/mod.rs b/harper-core/src/spell/hunspell/mod.rs
index 139ff7adb..94e2a9709 100644
--- a/harper-core/src/spell/hunspell/mod.rs
+++ b/harper-core/src/spell/hunspell/mod.rs
@@ -9,11 +9,11 @@ pub use attributes::AttributeList;
pub use error::Error;
pub fn parse_default_word_list() -> Result<Vec<MarkedWord>, Error> {
- parse_word_list(include_str!("../../../../dictionary.dict"))
+ parse_word_list(include_str!("../../../dictionary.dict"))
}
pub fn parse_default_attribute_list() -> Result<AttributeList, Error> {
- AttributeList::parse(include_str!("../../../../dictionary.aff"))
+ AttributeList::parse(include_str!("../../../dictionary.aff"))
}
#[cfg(test)]
diff --git a/harper-wasm/Cargo.toml b/harper-wasm/Cargo.toml
index fe7816f8e..ab21abee6 100644
--- a/harper-wasm/Cargo.toml
+++ b/harper-wasm/Cargo.toml
@@ -2,6 +2,7 @@
name = "harper-wasm"
version = "0.1.0"
edition = "2021"
+private = true
[lib]
crate-type = ["cdylib", "rlib"]