slug: journey-developing-quizzman-fanqie-engine-lookup-tool-phonological-platform
title: "The Journey of Developing the Quizzman Fanqie Engine: From a Lookup Tool to a Computational Phonology Platform" lang: en excerpt: "The architectural evolution of the Fanqie Engine: from early prototypes to rule-driven execution, Middle Chinese decoupling, Eight Tone Slots, Lexical Normalization, Candidate Ranking, and the V6 Inference Engine." publishedat: "2026-07-15T08:50:54.469Z" updatedat: "2026-07-30T10:58:38.510Z"
Quizzman Fanqie Engine Series — Part 11. Not a Sino-Vietnamese Dictionary
The Journey of Developing the Quizzman Fanqie Engine: From a Lookup Tool to a Computational Phonology Platform
The Quizzman Fanqie Engine was not built in a single attempt. Its current architecture is the product of years of dedicated research into fanqie spellings, Sino-Vietnamese readings, and Middle Chinese phonology. Throughout its development, the engine's core architecture underwent multiple major transformations. Each successive version solved a new layer of complex linguistic problems, overcame previous limitations, and brought the system closer to its foundational goal: algorithmically modeling the historical formation of Sino-Vietnamese readings rather than storing results in static dictionary tables.
The Initial Goal
The initial concept behind the Quizzman Fanqie Engine was straightforward:
Is it possible to algorithmically derive Sino-Vietnamese readings solely from fanqie spellings?
At first glance, this seemed like a simple lookup and combination problem.
It appeared one only needed to:
- extract the initial consonant (thanh mẫu);
- extract the final/rhyme (vận mẫu);
- combine them together.
However, once implementation began, major complexities quickly emerged.
A fanqie spelling does not merely encode:
- an initial;
- a final.
It inherently pulls along:
- rhyme group (nhiếp);
- division/division class (đẳng);
- open/closed mouth aperture (khai khẩu / hợp khẩu);
- ancient tonal categories (Level, Rising, Departing, Entering);
- centuries of historical sound shifts in the Vietnamese language;
- multiple co-existing Sino-Vietnamese reading layers.
This realization expanded the scope of the project far beyond its initial parameters.
The First Prototypes
Early iterations focused strictly on core functional mechanics:
- parsing raw fanqie strings;
- extracting initial consonants;
- extracting finals;
- generating candidate Sino-Vietnamese syllables.
This phase successfully validated the core concept.
The engine was able to process standard, unambiguous fanqie spellings.
However, a significant number of edge cases and historical exceptions remained unresolved.
Phonological rules were not yet fully modeled.
Many output derivations still relied on auxiliary dictionary lookup data.
Scaling Up Historical Data
As development progressed, the volume of ingested fanqie spellings and Sino-Vietnamese datasets grew rapidly.
This brought the architecture to a critical crossroads:
Should development focus on continuously expanding dictionary data?
Or should it pivot to perfecting the underlying phonological rule system?
This architectural decision defined the future direction of the entire project.
If data ingestion remained the focus, the engine would gradually degenerate into a massive lookup database.
If development prioritized rule engineering, progress would be slower initially, but the system's dynamic reasoning capabilities would become exponentially stronger.
Quizzman chose the second path.
Transitioning from Data-Driven to Rule-Driven
This decision marked the single most significant turning point in the project's history.
Instead of memorizing static character-to-reading pairs:
Character A
↓
Reading A Character B
↓
Reading B The engine began encoding phonological rules:
Rule A Rule B Rule C A single phonological rule could dynamically cover hundreds or even thousands of Chinese characters.
This transition also laid the groundwork for what would become the Pure Projection layer.
Decoupling Middle Chinese from Sino-Vietnamese
Another crucial architectural shift was establishing Middle Chinese as an independent intermediate processing layer.
Originally, Middle Chinese reconstruction and Sino-Vietnamese projection were executed in a single combined step.
This created several structural issues:
- unit testing individual rules was difficult;
- expanding to other Sino-Xenic traditions was cumbersome;
- explaining derivation pathways was complex.
By isolating Middle Chinese reconstruction into a distinct pipeline stage, the architecture became clean and modular:
Fanqie
↓
Middle Chinese
↓
Sino-Vietnamese This structural decoupling delivered immediate advantages:
- isolated step-by-step testing and verification;
- modular substitution of Middle Chinese reconstruction models;
- seamless addition of Pinyin projection;
- extensible groundwork for studying other Sino-Xenic reading traditions.
This modular pipeline forms the backbone of the engine today.
Separating Rules from Lexical Databases
Another key breakthrough in later iterations was the strict separation between:
Phonological Derivation Rules and
Lexical Usage Databases These two layers address fundamentally different objectives.
Phonological rules answer:
How should this syllable evolve according to historical sound laws?
While the lexical layer answers:
Which reading layer is predominantly used by Vietnamese speakers today?
Blending these two objectives creates fragile, unmaintainable code.
Therefore, the Quizzman Fanqie Engine separated them into two distinct operational phases:
Pure Projection
↓
Lexical Normalization This separation remains one of the core pillars of the engine's architecture.
Redesigning the Tonal Processing Pipeline
The tonal derivation engine underwent more iterations than almost any other module.
Early versions worked directly with surface-level Vietnamese tones:
- level ;
- grave (huyền);
- asking (hỏi);
- tumbling (ngã);
- acute (sắc);
- heavy (nặng).
While this direct mapping worked for basic cases, it struggled with historical tone splits and voicing conditions.
Drawing on research in Sino-Vietnamese historical phonology and the foundational works of Nguyen Tai Can, the engine adopted the Eight Tone Slot model.
Rather than operating directly on surface tones, the system first maps syllables into historical tonal slots:
- Yin Level (Âm Bình)
- Yang Level (Dương Bình)
- Yin Rising (Âm Thưởng)
- Yang Rising (Dương Thưởng)
- Yin Departing (Âm Khứ)
- Yang Departing (Dương Khứ)
- Yin Entering (Âm Nhập)
- Yang Entering (Dương Nhập)
Only after evaluating these slots are the values mapped to surface-level Vietnamese tones.
This design preserves complete historical phonological context throughout the entire computational pipeline.
Implementing Candidate Ranking
As fanqie coverage expanded, another challenge emerged: polyphonic characters and divergent source spellings.
A single Chinese character frequently possesses:
- multiple fanqie spellings;
- multiple dictionary sources;
- multiple reconstruction hypotheses.
Selecting a fanqie spelling at random resulted in non-deterministic, inconsistent outputs.
To solve this, the engine introduced Candidate Ranking.
Every candidate reading profile is evaluated against multiple criteria:
- source authority and metadata;
- alignment with established phonological rules;
- match against standard Sino-Vietnamese lexical layers;
- historical frequency and usage;
- overall composite confidence score.
This mechanism enables the engine to deliver stable primary outputs while preserving all alternative historical readings in the background.
Confidence Scoring
As the engine's internal logic grew more sophisticated, a new requirement arose: transparency in output reliability.
Rather than returning a single unweighted result, the Quizzman Fanqie Engine introduced a multi-dimensional confidence scoring framework:
- Source Confidence
- Phonological Confidence
- Lexical Confidence
- Final Composite Confidence
Each metric quantifies a specific dimension of the derivation process.
This step transformed the engine from a black-box generator into an auditable research tool.
Evolving the Test and Verification Suite
As the rule architecture grew, the risk of code regressions increased.
A subtle modification to one phonological rule could inadvertently disrupt derivations for thousands of unrelated characters.
To prevent this, later versions introduced a comprehensive testing harness:
- Golden Fixture Suite;
- Automated Batch Audit;
- Regression Test Harness;
- Stress Test Suite;
- Tone Allocation Audit;
- Candidate Ranking Audit.
The goal of this suite is not merely catching new bugs, but guaranteeing that verified phonological rules remain intact across future updates.
From a Sino-Vietnamese Tool to a Computational Platform
Initially, the Quizzman Fanqie Engine was built strictly to derive Sino-Vietnamese readings.
However, once Middle Chinese was established as an independent intermediate layer, the platform's potential expanded significantly.
A single Middle Chinese phonological profile can now be leveraged to:
- project Sino-Vietnamese readings;
- project Pinyin pronunciations;
- analyze fanqie structures for linguistic research;
- support classical text Natural Language Processing ;
- power academic dictionary lookups and research tools.
This evolution transformed the engine from a single-purpose utility into a foundational platform for computational historical linguistics.
Version 6: The Shift from "Lookup" to "Inference Engine"
Version 6 represents the full maturation of the engine's architecture.
V6 is far more than an update that added more phonological rules.
It represents the complete realization of the project's core design philosophy:
- Middle Chinese serves as a decoupled intermediate layer.
- Pure phonological rules operate independently of lexical databases.
- The Eight Tone Slot system is fully integrated.
- Candidate Ranking determines optimal output readings.
- Multi-tier Confidence Scores make every derivation auditable.
- Pure Projection and Hybrid operational modes are explicitly separated.
With these components in place, the Quizzman Fanqie Engine transitioned from a basic reading assembler into a true Historical Phonology Inference Engine.
The Ongoing Journey
Although the current architecture is stable and robust, the evolution of the Quizzman Fanqie Engine is far from complete.
Historical phonology remains a vast field with many frontiers to explore.
Looking ahead, the underlying Middle Chinese platform can be extended to support:
- Sino-Japanese reading traditions (Kan-on, Go-on);
- Sino-Korean projections;
- historical Chinese dialectal variations;
- multi-period historical phonological reconstructions;
- AI-driven NLP tools for classical Chinese literature.
That remains Quizzman's overarching vision: not merely providing a Sino-Vietnamese lookup tool, but building an open, computational platform dedicated to the study of East Asian historical linguistics.