added dictionary lookup

This commit is contained in:
2026-03-20 13:39:54 -07:00
parent b1d64f795b
commit 54d4dddbc3
6 changed files with 146 additions and 12 deletions

View File

@@ -390,6 +390,12 @@
}));
}
async function loadWordsByPrefix(prefix) {
return fetchJson(buildApiUrl("/api/v1/words/prefix", {
prefix
}));
}
async function loadTextLibrary(forceRefresh = false) {
if (!forceRefresh && textLibraryCache) {
return textLibraryCache;
@@ -642,6 +648,7 @@
loadDeckOptions,
loadGematriaWordsByValue,
loadWordAnagrams,
loadWordsByPrefix,
loadQuizCategories,
loadQuizTemplates,
loadTarotCards,