Readers oracle to workday and the providers hand on the host's words; their word tables move to app/prep/hosts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 11:07:07 +02:00
1 parent a66aac95cf
commit 06eb929eaf
48 files changed
+460 -388

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
"""Rippling's word table for prep: the words of `employmentType.label`."""
from __future__ import annotations
import importlib
rippling = importlib.import_module("app.prep.hosts.rippling")
def _match(label: str) -> str | None:
"""The first entry of `MATCH` found among the "_"-separated words of a label."""
words = set(label.strip().lower().split("_"))
return next((value for token, value in rippling.MATCH if token in words), None)
def test_employment_labels_read_by_their_words() -> None:
assert [_match(w) for w in ("SALARIED_FT", "HOURLY_PT", "INTERN", "CONTRACTOR",
"SEASONAL", "ODD")] == [
"full_time", "part_time", "internship", "contract", "temporary", None]