aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJJ2023-06-17 23:21:25 +0000
committerJJ2023-06-17 23:21:25 +0000
commit1151e9d5c673dbdf61896094b86373c1a4edf4ab (patch)
tree69480ea62c8cfbede9df6306dee071d8d795232e /src/lib.rs
parent6aeacb7abca05bac190d093cbefc3a88c46052b6 (diff)
implement online lookups if a wiktionary dump is not detected
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bf08223..6a556e8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,6 +11,7 @@ pub mod state;
const version: &str = env!("CARGO_PKG_VERSION");
const index_path: &str = env!("index_path");
const dictionary_path: &str = env!("dictionary_path");
+const wiktionary_api_path: &str = "https://en.wiktionary.org/w/api.php?action=parse&format=json&formatversion=2&prop=wikitext&page=";
pub fn handle_word(word: String, state: &state::State) {
// if lets are kinda clunky