← Back to AI Insights
Gemini Executive Synthesis

Internationalization (i18n) of Lastbook's search and chat

Technical Positioning
Globally accessible offline knowledge AI with multi-language search and chat capabilities
SaaS Insight & Market Implications
Lastbook's search and chat functionality is fundamentally English-only, despite its global 'survival and rebuilding' mission. The analysis reveals critical issues: `readable()` drops non-English passages, search queries are incorrectly tokenized for non-Latin scripts, and the underlying embedding model (`bge-small-en-v1.5`) is English-specific. Furthermore, UI text and core constants are hardcoded in English. These limitations severely restrict the product's utility for non-English speakers, directly contradicting its potential for international impact. Addressing these i18n deficiencies, particularly in the search pipeline, is paramount for Lastbook to achieve global relevance and serve its intended user base effectively. This is a major technical debt impacting market expansion.
Proprietary Technical Taxonomy
localisation i18n readiness English-only assumptions search pipeline retrieval.py:83-93 readable() common English words meaning-based search

Raw Developer Origin & Technical Request

Source Icon GitHub Issue Nov 14, 2026
Repo: Immortal-Protocols/lastbook
Search and chat only work in English (i18n readiness notes)

Hi! I work in localisation and had a read through Lastbook's code with an eye on other languages. Really nice project. It isn't localised yet, which is fair at 1.1.8, but a few English-only assumptions sit in the search pipeline, where they'd quietly hurt non-English users before any UI translation happens. Notes below in case they're useful.

### Search drops non-English text (worth fixing even while the app stays English-only)

- **`retrieval.py:83-93`**: `readable()` only indexes passages with enough common English words. I re-created the logic and tried a water-safety paragraph: the English version passes; the Spanish, French and Chinese versions are all dropped, so they never reach meaning-based search.
- **`web/app.js:880`**: the guide search splits queries on `[^a-z0-9]+`, so "niño" becomes "ni" + "o" and both get dropped, and a Chinese query comes out empty. `Intl.Segmenter` would fix it, and it helps English too ("jalapeño" splits the same way).
- **`retrieval.py:21`**: `bge-small-en-v1.5` is English-only per its model card, which points to `bge-m3` for other languages.
- Stopwords, synonyms and phrase maps (`server.py:257, 261, 312`, `web/app.js:878`) and the topic `keywords` are English constants. Per-language files would make them translatable later.

### Before a second language

- All UI text lives in code: the JS templates, Python labels sent to the UI (`TRUST`, `SHELVES`, `VROWS`, `HELP` in `server.py`), the macOS menus and the Windows setup stub. One message ...

Developer Debate & Comments

wonderdawg • Nov 14, 2026
Thanks for the thoughtful review and for offering to help. We'd welcome a focused PR for the query-splitting fix. Please cover the matching logic and short-word handling alongside segmentation, so accented words stay intact and useful Chinese words don't get discarded by the current length filter. A few regression tests for accented words, Chinese queries, and existing English matches would be great. Please also account for the embedded browser runtimes if Intl.Segmenter isn't available. Let's keep this first PR focused on topic-search behavior. We can discuss the broader multilingual retrieval and UI translation work separately. Appreciate you helping make Lastbook more accessible!
9jbkhd9b2j-ui • Nov 14, 2026
Thanks, great to hear! I'll keep the PR to topic search as you said, and leave the wider retrieval and UI translation for a separate conversation. I read `topicMatches()` closely before starting, and the split turns out to be only half of it. Here's everything I found, what I'd change, and two questions where I'd like your call first. ## What breaks today (all reproduced in Node 22 / ICU 78) **1. The split drops anything outside a–z** (the original report). `q.toLowerCase().split(/[^a-z0-9]+/)` turns "niño" into `ni` + `o`, which the length filter then drops, and Chinese input becomes empty. Two less obvious cases hit the same line: - Text pasted with combining accents (`n` + `U+0303` instead of `ñ`) splits into `["nin", "o"]`. - Full-width Latin from a Japanese keyboard ("water") comes out as `["", ""]`, so a perfectly English word finds nothing. **2. The matching step has the same English-only assumption.** `new RegExp('\\b' + w)` relies on `\b`, and in JavaScript `\b` only treat...
wonderdawg • Nov 15, 2026
Thanks for digging into this so thoroughly. Yes to both choices: - Put the word-handling helpers in a small web/words.js file loaded before app.js so they can be tested directly. - Fold accents for matching while preserving the original display text, consistent with the existing FTS search. The proposed scope and regression tests sound good. Please cover the Turkish dotted-I case explicitly, including the order of lowercasing and removing combining marks, and include the Linux WebKitGTK runtime in the compatibility considerations now that Linux support has shipped. Please go ahead and open the PR. We appreciate the help!
9jbkhd9b2j-ui • Nov 15, 2026
One more thing I found while checking claims for . It's separate from topic search, so I've kept it out of that PR. The library index in `engine/library.py` (line 200) uses `tokenize="unicode61"`. Its default `categories` is `"L* N* Co"`, so every combining mark counts as a word break. Latin accents are removed before that matters, so English and other European languages are fine. Other scripts get cut into pieces: - Hindi पानी ("water") is indexed as `प` + `न`, and उबालें ("boil") as `उब` + `ल`. Devanagari vowel signs are marks, so this hits nearly every Hindi word, and the other Indic scripts the same way. - Thai น้ำ ("water") becomes `น` + `ำ`. - Vowelled Arabic حَرْف becomes `ح ر ف`, and pointed Hebrew שָׁלוֹם becomes `ש לו ם`. Unvowelled text is fine. What users see: a Hindi search matches any word with the same consonants. On SQLite 3.53.1, with three small pages indexed, a search for पानी ("water") also returns the page with पीना ("drink"), and a search for पीना returns the...
wonderdawg • Nov 16, 2026
Thanks for finding this. is now merged, and I reproduced the separate Hindi index problem: with the default unicode61 tokenizer, searching for पानी also finds पीना; adding the mark category keeps those words distinct. Please go ahead with a focused follow-up PR for the library index tokenizer. Include regression coverage for Hindi, Thai, vowelled Arabic/Hebrew, and unchanged English/Latin accent matching. Please cover how existing indexes are rebuilt safely, preserving the old working index until the new one is ready. No need to bundle UI translation, a new embedding model, or broader language normalization into this change. Keeping this issue open to track the remaining language work. Thank you again for the careful testing and for contributing!

Adjacent Repository Pain Points

Other highly discussed features and pain points extracted from Immortal-Protocols/lastbook.

Extracted Positioning
Lastbook mobile application
Offline knowledge AI, maps, and videos for survival and rebuilding, accessible on mobile
Top Replies
wonderdawg • Nov 17, 2026
Absolutely—we'd be very happy to have your help, and thank you for offering your mobile experience! Our first iPad version is already working in development, and we're preparing its source and buil...
wonderdawg • Nov 17, 2026
@j-roskopf The iPad source is now public: https://github.com/Immortal-Protocols/lastbook/tree/main/mobile/ipad Build instructions, what works and the current limitations are in the [iPad README](ht...
j-roskopf • Nov 17, 2026
Hey! That's awesome. I will definitely take a look at that readme for the ipad repo. My main experience comes from native app development for Android / iOS, but I would probably go for a compose mu...
Extracted Positioning
Internationalization of Lastbook (maps, units, language)
Globally relevant offline knowledge AI, maps, and videos, not US-centric
Top Replies
wonderdawg • Nov 16, 2026
Agreed — broader map coverage would make Lastbook much more useful. And yes, once downloaded, the maps work offline. We'd welcome your help expanding them: point your coding agent at the repo and t...
wilmeragsgh • Nov 17, 2026
Please look at for how we could integrate at least countries capitals preliminarly
wonderdawg • Nov 17, 2026
Thanks for raising the metric/imperial point as well as broader map coverage. We're working on both. We're adding a Metric / Imperial choice under Settings → Units, so map distances and the scale b...
Extracted Positioning
International map expansion for Lastbook
Comprehensive, detailed offline maps for global regions, beyond US-centric data
Top Replies
wonderdawg • Nov 17, 2026
Thank you for researching the sources, licensing, and regional differences so carefully, and for the related map contributions in and . We've included this proposal and those PRs in our shared map ...
kaushika05 • Nov 17, 2026
Adding Sri Lanka to this discussion: proposes one island-wide region (`LK`) in the same shape as the Argentina doc. Main findings: OSM via Geofabrik is a ready source (ODbL), Overture has no Sri La...
tobsiberlin • Nov 17, 2026
Adding Germany to this discussion: proposes one region per state (16, `DE-BW` … `DE-TH`; a bare `DE` is Delaware) in the same shape as the Argentina doc. Main findings: Overture already has address...

Frequently Asked Questions

Market intelligence mapped to Internationalization (i18n) of Lastbook's search and chat.

How is Internationalization (i18n) of Lastbook's search and chat positioned in the market?
Based on our AI analysis of the original developer request, its primary technical positioning is: Globally accessible offline knowledge AI with multi-language search and chat capabilities
What is the general sentiment around Internationalization (i18n) of Lastbook's search and chat?
Yes, we have tracked 6 direct responses and active debates regarding this specific topic originating from GitHub Issue.
What architecture is tied to Internationalization (i18n) of Lastbook's search and chat?
Our proprietary extraction maps Internationalization (i18n) of Lastbook's search and chat to adjacent architectural concepts including localisation, i18n readiness, English-only assumptions, search pipeline.

Engagement Signals

6
Replies
open
Issue Status

Cross-Market Term Frequency

Counts stored text matches for foundational terms like localisation and i18n readiness in analysed public discussions. These counts do not measure adoption.

Stored text matches, not adoption or market-share measurements.

  • localisation: 1 records
  • i18n readiness: 1 records
  • English-only assumptions: 1 records
  • search pipeline: 1 records
  • retrieval.py:83-93: 1 records
  • readable(): 1 records
  • common English words: 1 records
  • meaning-based search: 1 records
  • web/app.js:880: 1 records
  • guide search splits queries on `[^a-z0-9]+`: 1 records
  • Intl.Segmenter: 1 records
  • bge-small-en-v1.5: 1 records
  • bge-m3: 1 records
  • stopwords, synonyms and phrase maps: 1 records
  • server.py:257, 261, 312: 1 records
  • web/app.js:878: 1 records
  • topic keywords: 1 records
  • Per-language files: 1 records
  • UI text lives in code: 1 records
  • JS templates: 1 records
  • Python labels: 1 records
  • macOS menus: 1 records
  • Windows setup stub: 1 records