from_title matches a title twice, for the highest people level and the highest individual grade. A people level wins on its own rung; a grade above that rung lifts it one rung (Principal Engineering Manager is a senior manager). Senior Staff is principal, Senior Principal, Distinguished and Technical Fellow are distinguished; Associate Director, AVP and Senior Manager are senior managers. lead is now a team lead only (Team Lead, Shift Lead, Supervisor, Teamleiter); Tech Lead, Lead X and X Lead(er) are staff. A slash names two levels, so Senior/Staff is staff. - Jobylon "lead" maps to staff; Recruitee maps student_college, manager, senior_manager and executive. - extract's prompt describes the ladder and its two tracks; enum from LEVELS. - prep VERSION 2, so the next prep maps every open role again. - Migration 25 clears seniority_model where it is staff, lead, manager or director, so extract reads those roles again, and sets roles.seniority to the first filled of model, stated and title. - The coverage test of tests/test_seniority.py passes; its xfail is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
976 B
Python
18 lines
976 B
Python
"""Recruitee's words, for prep."""
|
|
|
|
#: `experience_code`. `experienced` names no level and is known, so it maps
|
|
#: to none. A college student is an intern as a school one is.
|
|
SENIORITY = {"student_school": "intern", "student_college": "intern",
|
|
"entry_level": "junior", "mid_level": "mid", "experienced": "",
|
|
"manager": "manager", "senior_manager": "senior_manager", "executive": "exec"}
|
|
|
|
#: The words of `employment_type_code` (`fulltime_permanent`), which is
|
|
#: lowercased and split at "_" and "-"; the first entry found among its words
|
|
#: decides, so a contract type beats the hours. The fixtures hold three whole
|
|
#: codes only, so this is a table of words, not whole codes.
|
|
MATCH = [("internship", "internship"), ("intern", "internship"),
|
|
("freelance", "contract"), ("contract", "contract"),
|
|
("temporary", "temporary"), ("fixed", "temporary"),
|
|
("parttime", "part_time"), ("fulltime", "full_time")]
|
|
MATCH_MODE = "token"
|