In depth
Why series fiction needs a structured pronunciation dictionary
Even expressive neural voices stumble when an author introduces invented geography like `Aelindor` or `Xylar` alongside ambiguous homographs, foreign honorifics, or unusual compound titles. Fixing one word in paragraph four with manual find-and-replace often mutates substring fragments inside unrelated words or breaks inline performance cues.
A dedicated pronunciation lexicon separates phonetic spelling rules cleanly from your master manuscript. You maintain clean, reader-facing typography in your print and ebook editions while applying deterministic respellings ahead of audio synthesis—or exporting a portable glossary file that keeps human narrators, audio editors, proofers, and co-authors aligned across every sequel, prequel, and spinoff installment.
How longest-term-first single-pass matching prevents errors
Naive loop-based string replacement introduces subtle bugs: substituting `Ael` before `Aelindor`, matching partial stems inside ordinary English words, or matching an inserted respelling inside a second dictionary rule. This engine sorts your entire rule list from longest term to shortest and wraps ASCII words with word-boundary anchors (`\b`) automatically so shorter substrings cannot hijack compound titles.
During evaluation, the scanner executes a single left-to-right pass across the excerpt. Once a span matches an entry and swaps in your phonetic respelling, the cursor advances completely past the inserted text so downstream rules never inspect or rewrite it again—eliminating cascading edits, garbled syllables, and infinite replacement loops.
Shielding [vocal] cues and <ssml> markup from edits
Audio scripts often embed director performance directions such as `[whisper]`, `[sigh]`, or `[clears throat]`, alongside `<break>` or `<phoneme>` SSML tags. If a minor character happens to share a word with a tag attribute—such as a character named Whisper or Break—naive search-and-replace silently corrupts your markup.
Before scanning prose words, the tokenizer splits text around bracketed vocal cues and `<...>` angle-bracket tags, locking those segments as immutable tokens. Pronunciation substitutions run strictly against spoken dialogue and narration, leaving every performance tag, SSML break marker, and XML attribute completely untouched during replacement.
Quick-add respellings vs. imported W3C PLS XML and IPA
The quick-add bar keeps drafting lightweight by accepting two fields: `Term` and `Respelling` (case-insensitive by default), pre-seeded with fantasy examples (`Aelindor → ay-LIN-dor`, `Xylar → ZYE-lar`) so you can verify word-boundary behavior immediately. Notice that the quick-add UI does not show a separate IPA field, keeping fast respelling entry frictionless.
For publishing houses that already maintain formal phonetic lexicons, the importer accepts `.pls`, `.xml` (W3C PLS `<lexeme>` elements with `<grapheme>`, `<phoneme>`, and `<alias>`), `.json`, `.csv`, and `.tsv` files. Any `ipa`, `alias`, and `caseSensitive` properties present on imported entries are retained in memory and written straight back out when you export W3C PLS 1.0 XML (`xmlns="http://www.w3.org/2005/01/pronunciation-lexicon"`, `alphabet="ipa"`), structured JSON, or five-column CSV.
Testing excerpts live with matched-replacement metrics
Paste any chapter sample containing invented names, abbreviations, or director cues into the right-hand test manuscript box. The live readout displays how many lexicon substitutions triggered alongside the full respelled preview, letting you spot capitalization quirks, plural suffixes, possessive apostrophes, or word-boundary edge cases before committing a multi-hour audio render.
Because pre-seeded fantasy rules (`Aelindor` and `Xylar`) load automatically on first visit, you can experiment right away—toggling entries on or deleting sample rows—to see exact word-boundary replacement in action. Notice that imported dictionaries preserving `caseSensitive: true` honor exact casing, while entries added through the quick-add row match flexibly regardless of sentence-initial capitalization.
For broader structural preparation—such as stripping URLs, HTML tags, footnotes, or stray page numerals—run the draft through the manuscript TTS cleaner first, then apply your custom pronunciation lexicon last so structural edits never interfere with carefully tuned phonetic syllables or imported glossary entries.
Routing respelled scripts to Studio and exporting glossaries
Editing entries, importing dictionaries, and testing live substitutions run entirely locally in your browser with no sign-in required. Clicking the primary Studio handoff button routes your respelled preview text straight into `/settings/studio?view=new` under `Lexicon Script`, ready for voice casting without retyping a word.
Need to archive or share the dictionary itself across chapters or multi-book series installments? Exporting W3C PLS 1.0 XML, JSON, or CSV incurs zero extra credits for active FullCastBook subscribers and paid credit-pack holders, letting publishing teams maintain one canonical pronunciation bible across editions and revisions. Pair this step with our audiobook pronunciation guide or check formatted scene dialogue in screenplay to audio script.




