Vietnamese frontend provenance

The Vietnamese frontend is a native clean-room implementation for the vi-vn Northern/Hanoi-oriented broad phonemic profile. The implementation did not inspect, copy, translate, or depend on hoang1007/vig2p. The gold cases are independently constructed from ordinary Vietnamese vocabulary and the sources below.

Unicode and tone extraction

Sources:

Reason: canonical NFC/NFD normalization and combining-mark classification.

Syllable structure

Sources:

Reason: optional onset, medial glide, obligatory nucleus, optional coda, and lexical tone represented as separate structural fields.

Inventory and tones

Source:

Reason: broad Northern onset, vowel, coda, glide, and six-tone categories. The output deliberately remains broad rather than claiming narrow allophonic accuracy.

Model adaptation

Source:

  • Kokoro 82M vocabulary is read from this repository’s existing kokorog2p/data/kokoro_config.json.

Reason: Vietnamese rendering is checked against the selected Kokoro model vocabulary. Unsupported characters are reported instead of silently removed.

Gold data

tests/data/vi_gold.json contains independently selected, human-reviewable examples. Expected output is structural broad phonology rendered with the named tone markers. External G2P implementations are not used to generate the curated expected values.