Unpack structured pay from five ATS hosts; fix the function classifier

Part A: Ashby (?includeCompensation=true), Greenhouse (pay_transparency=true,
already free on the list request), Lever (salaryRange), Recruitee (salary)
and Personio (salaryInformation) all give structured pay; Workable and
SmartRecruiters do not (checked live). Every host converts to a yearly
salary_min/salary_max/currency, multiplying a monthly figure by 12 and
skipping an hourly or daily one rather than annualising a number nobody
stated. A range with no currency is ignored, and Greenhouse's own multi-zone
ranges are skipped outright since nothing says which zone the role is at.

Part B: classify() matched substrings, so " it" matched inside "Italy",
filing European sales roles as engineering; it now matches on word
boundaries (full boundary for the handful of short tokens that are
themselves the start of an unrelated word, prefix matching kept for the
stems). Title is checked before department (a hand-checked sample found
title-first right about twice as often), nothing matching returns '' rather
than "other", and a modest set of German/Dutch/Danish/Norwegian/Swedish/
French keywords covers the seed's other languages.

function is not a board field, so it gets the opposite rule from every
other raw column: extract's answer overwrites the classifier's guess
outright, and once extracted_at is set no later pull may put the guess
back. Migration 9 recomputes function for every not-yet-extracted role from
its stored title and department.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5 committed 2026-09-29 14:29:12 +02:00
1 parent 0558ef19ed
commit 44ff7c0131
10 files changed
+458 -35

No files matched your search

+7 -1
View File
@@ -11,7 +11,13 @@
"jobUrl": "https://ashby.example/1",
"applyUrl": "https://ashby.example/1/apply",
"descriptionHtml": "<p>Design our <strong>onboarding</strong> flow.</p>",
"compensation": {"compensationTierSummary": "70,000-90,000 EUR"}
"compensation": {
"compensationTierSummary": "70,000-90,000 EUR",
"summaryComponents": [
{"compensationType": "Salary", "interval": "1 YEAR", "currencyCode": "EUR",
"minValue": 70000, "maxValue": 90000}
]
}
},
{
"id": "3002",
+10 -2
View File
@@ -8,7 +8,11 @@
"updated_at": "2026-09-10T12:00:00-04:00",
"first_published": "2026-09-09T08:00:00-04:00",
"departments": [{"id": 1, "name": "Engineering"}],
"content": "&lt;p&gt;Build our &lt;strong&gt;core platform&lt;/strong&gt;.&lt;/p&gt;"
"content": "&lt;p&gt;Build our &lt;strong&gt;core platform&lt;/strong&gt;.&lt;/p&gt;",
"pay_input_ranges": [
{"min_cents": 6500000, "max_cents": 8500000, "currency_type": "EUR",
"title": "Base salary range:"}
]
},
{
"id": 1002,
@@ -17,7 +21,11 @@
"absolute_url": "https://gh.example/2",
"updated_at": "2026-09-11T12:00:00-04:00",
"departments": [{"id": 2, "name": "Sales"}],
"content": ""
"content": "",
"pay_input_ranges": [
{"min_cents": 3000, "max_cents": 4500, "currency_type": "USD",
"title": "SF Bay Area Hourly Rate"}
]
},
{
"id": 1003,
+4 -2
View File
@@ -6,7 +6,8 @@
"createdAt": 1789430400000,
"categories": {"location": "Remote", "department": "Engineering", "team": "Platform"},
"workplaceType": "remote",
"description": "<p>Own our <b>platform</b> reliability.</p>"
"description": "<p>Own our <b>platform</b> reliability.</p>",
"salaryRange": {"min": 90000, "max": 120000, "currency": "EUR", "interval": "per-year-salary"}
},
{
"id": "2002",
@@ -15,6 +16,7 @@
"createdAt": 0,
"categories": {"location": "New York", "department": "Customer Success"},
"workplaceType": "on-site",
"description": ""
"description": "",
"salaryRange": {"min": 25, "max": 35, "currency": "USD", "interval": "per-hour-wage"}
}
]
+7
View File
@@ -19,6 +19,13 @@
<seniority>entry-level</seniority>
<schedule>full-time</schedule>
<createdAt>2026-08-19T10:04:22+00:00</createdAt>
<salaryInformation>
<min>42000.00</min>
<max>55000.00</max>
<currencySymbol>€</currencySymbol>
<currencyCode>EUR</currencyCode>
<type>yearly</type>
</salaryInformation>
</position>
<position>