feat(epub_examples): export try_strip_prefix as public alias

Exposes _try_strip_prefix under a public name so the upcoming
sentence_difficulty module can reuse Hebrew prefix stripping logic
without duplicating it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sochen 2026-03-15 13:18:55 +00:00
parent d2a7c9d483
commit 00fba934fb

View file

@ -448,6 +448,10 @@ def _try_strip_prefix(token: str, nikkud_index: dict) -> list[tuple[str, str, st
return results
# Public alias for use by sentence_difficulty module
try_strip_prefix = _try_strip_prefix
def _build_nikkud_index(words: dict) -> dict[str, list[tuple[str, str]]]:
"""Build a mapping from nikkud form to list of (unique_key, match_type).