diff options
author | JJ | 2023-06-17 23:21:25 +0000 |
---|---|---|
committer | JJ | 2023-06-17 23:21:25 +0000 |
commit | 1151e9d5c673dbdf61896094b86373c1a4edf4ab (patch) | |
tree | 69480ea62c8cfbede9df6306dee071d8d795232e /src/lib.rs | |
parent | 6aeacb7abca05bac190d093cbefc3a88c46052b6 (diff) |
implement online lookups if a wiktionary dump is not detected
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |