Hebrew holam haser dropped, and three small follow-ups from #9

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start with _map_basic_vowel in he.py, which reads holam only on vav, and reproduce with HebrewIPAPhonemizer().phonemize_string on the word לֹא, which currently returns an empty string. The fix belongs in a new variant such as hebrew_ipa_v2, leaving hebrew_ipa output unchanged; the tests for split_sentences and _GROUPED_NUMBER are the other entry points. Done means holam haser reads /o/ and the three small follow-ups (ImportError text, guard test rows, docstring versions) are addressed.

Written by the indexing model from the issue text.

Description

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting.
Verified by the review of #9: the Hebrew outputs, the FLORES-200 count and the two untested paths were run on the merged code (evidence: knowledge/wiki/audits/phoonnx-piper-retrained/review-copyleft-9.md).

Four follow-ups from the review of #9. The first is a reading defect; the other three are small.

Observed

  • Hebrew holam haser is dropped. he.py (_map_basic_vowel) reads holam only on vav (holam male). A word whose only vowel is holam haser (U+05B9 on a consonant) loses its onset: לֹא ("not") gives an empty string, so a negation disappears. On rows 0 to 24 of FLORES-200 devtest after Nakdimon, 9 of 9 holam-haser words lose their /o/ and 6 of 25 rows lose a whole word. Related: שָׁלוֹם gets ʃˈalom (expected ʃalˈom) and כָּל reads kal.
  • The TLTK ImportError names scriptconv[th], an extra that exists only once TigreGotico/scriptconv#371 ships.
  • Two code paths have no test row: the Japanese decimal point (1.5キロ) and the Thai thousands separator (1,250 บาท). Both work in a live probe; a mutant that removes either guard passes the suite.
  • The module docstrings of ja_prosody.py and th.py give no version for pyopenjtalk-plus and TLTK (the PR body gives 0.4.1.post10 and 1.10).

Expected

Hebrew: holam haser reads /o/ and penultimate stress follows the rule for closed syllables. The voice he_IL-saspeech-medium was trained on the current reading, so the fix is a new variant (for example hebrew_ipa_v2), and hebrew_ipa keeps its output; the README says which one a new caller should use.

The other three: the ImportError names an extra that exists, each guard has a row generated with piper-tts, and the docstrings carry the version.

Reproduce

from scriptconv_copyleft.phonemizers.he import HebrewIPAPhonemizer
HebrewIPAPhonemizer().phonemize_string("לֹא", "he")   # gives an empty string

Where

he.py (_map_basic_vowel), th.py (ImportError text), ja_prosody.py and th.py docstrings, tests for split_sentences and _GROUPED_NUMBER.

Dominant language
Python
Stars
0
Forks
0
Avg merge
6h 42m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TigreGotico/scriptconv-copyleft

All issues in TigreGotico/scriptconv-copyleft

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.