From 1151e9d5c673dbdf61896094b86373c1a4edf4ab Mon Sep 17 00:00:00 2001 From: JJ Date: Sat, 17 Jun 2023 16:21:25 -0700 Subject: implement online lookups if a wiktionary dump is not detected --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') 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 -- cgit v1.2.3-70-g09d2