Docs / AI & Translation / Preset Themes & Multilingual Glossaries

Preset Themes & Multilingual Glossaries

Explore the 7 specialized fiction theme packs, 20-language support matrix, and Aho-Corasick matching engine.

Preview Content
Please note that the details on this page are pre-content drafts. More detailed technical specifications, architectural breakdowns, and updated guides will be added soon.

1. The 7 Fiction Genre Theme Packs

XianScan includes built-in domain dictionaries compiled from web novel corpuses in master-glossary.json:

  1. Wuxia & Cultivation (xianxia): Standard terminology for Cultivation realms (Qi Condensation, Foundation Establishment, Golden Core, Nascent Soul, Tribulation), meridians, sects, alchemy, and artifacts.
  2. Murim & Martial Arts (murim): Standard terminology for Murim clans, martial sects (Shaolin, Wudang, Mount Hua, Tang Clan, Heavenly Demon), internal energy, and Qi deviation.
  3. Hunter & System Leveling (system): Standard terminology for Awakened hunters, gates, status windows, constellations, regressors, and hunter ranks (F to SSS).
  4. Fantasy & Isekai Guilds (fantasy): Standard terminology for Adventurers' Guilds, Demon Lords, Heroes, Saintesses, magic circles, and mana affinity.
  5. Romance Fantasy & Otome Isekai (rofan): Standard terminology for Villainesses, Grand Dukes, Crown Princes, debutantes, tea parties, and white lotuses.
  6. Imperial Palace & Court Drama (palace): Standard terminology for Emperors, Imperial Consorts, Cold Palace, Grand Secretariat, eunuchs, and royal court etiquette.
  7. Sci-Fi, Mecha & Sentinelverse (scifi): Standard terminology for Sentinels, Guides, mental landscapes, Mecha synchronization, quantum cores, and Zerg.

2. Aho-Corasick Exact & Inverted 2-Gram Fuzzy Matching

Glossary matching is handled by a high-performance matching engine (glossary-match.ts):

  • Aho-Corasick Automaton: Sub-millisecond exact string matching with NFKC unicode normalization.
  • Word-Boundary Enforcement: Applied for Latin and Cyrillic languages so sub-words are not falsely matched.
  • Scriptura Continua Support: Substring matching with whitespace stripping for CJK languages (Chinese, Japanese, Korean).
  • Fuzzy Typos & OCR Recovery: Inverted 2-gram index to recover glossary terms damaged by OCR noise.

3. 20-Language Matrix

All 7 preset theme packs are compiled across 20 languages:

zh-Hans (Simplified Chinese), zh-Hant (Traditional Chinese), en (English), ja (Japanese), ko (Korean), es (Spanish), fr (French), de (German), ru (Russian), pt (Portuguese), it (Italian), id (Indonesian), tr (Turkish), nl (Dutch), pl (Polish), th (Thai), hi (Hindi), uk (Ukrainian), sv (Swedish), fi (Finnish).