From 00fba934fb549c09d79d01fa732dffcc8909e1a1 Mon Sep 17 00:00:00 2001 From: Sochen Date: Sun, 15 Mar 2026 13:18:55 +0000 Subject: [PATCH] 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 --- epub_examples.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/epub_examples.py b/epub_examples.py index cf2d193..ed1f266 100644 --- a/epub_examples.py +++ b/epub_examples.py @@ -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).