Nearby word suggestion when word look-up fails

Author: brianhusterCreated Sep 20, 2026Updated Sep 22, 2026

Scope Self-Check (required)

  • I have read SCOPE.md and ROADMAP.md.
  • This is not a new theme or theming change (themes are temporarily closed pending the move to SD-loaded themes).
  • This is not a new external network connector (sync engine, cloud storage, remote file access, or any new "talk to a server" feature). Improvements to the existing OPDS support are in scope and do not count as a new connector.
  • This is not an interactive app (game, calculator, notepad), writing/authoring tool, RSS/news/browser feature, media playback feature, or PDF rendering.
  • The stock firmware does not already handle this well.
  • No other popular CrossPoint fork already handles this well (or, if one does, I explain below why CrossPoint still needs it).

Problem this solves

When reading in inflected languages (such as Japanese, German, or French) or when a dictionary lacks an exhaustive .syn sidecar, word lookups frequently hit a dead-end "Not Found" popup.

For example, in Japanese, verbs and adjectives are heavily conjugated in text (e.g. 食べた, 行かない, 高かった), but most StarDict dictionaries only index the dictionary base form (食べる, 行く, 高い). In English, the firmware has a workaround which is converting other form to dictionary form (like runs to run), but it only works with English anyway, and making it support a few thousands of other languages will make the firmware very big

Why the stock firmware (and other forks) do not already solve this

  • Stock firmware doesn't even have dictionary feature
  • The CrossInk fork has already proven and implemented this capability showing that fuzzy/prefix suggestions can run efficiently on constrained hardware. However, upstream CrossPoint currently lacks this feature, leaving non-English readers with frequent lookup misses. If Crosspoint implements this, we will be able to close issues like https://github.com/crosspoint-reader/crosspoint-reader/issues/2916. And we will also be able to remove the English stemming feature that only work with some English words and not work for a lot of other languages

Proposed change

  1. When direct lookup and .syn fail, scan a small, bounded neighborhood window around the target position in .idx (using the .qidx and .sidx sampled index accelerator to avoid scanning the whole file).
  2. Collect the top 4–6 closest candidate words sharing the longest common prefix or closest alphabetical proximity.
  3. If candidates exist, present them in a suggestions picker activity / popup (DictionarySuggestionsActivity) where the reader can select the root word using directional keys / Confirm, or cancel back to the reader with Back.
  4. If no candidates exist or the user cancels, display the standard "Not Found" toast.

Memory / flash / complexity cost

  • DRAM impact: Negligible (< 1 KB). The search operates bounded on SD using the existing .qidx sidecar offsets, and the candidate list only holds 4–6 short strings.
  • Flash impact: ~3–5 KB for the neighborhood scan algorithm and the lightweight suggestions UI.
  • Complexity: Low to moderate. Reuses the existing .qidx binary-search infrastructure and standard Activity stack navigation

Additional context

No response

Source: crosspoint-reader/crosspoint-reader