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:
parent
d2a7c9d483
commit
00fba934fb
1 changed files with 4 additions and 0 deletions
|
|
@ -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).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue