mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 13:12:50 +00:00
fix(salary): convert the IDA workbook again ("Firmanavn og by" header) and list unreachable in the scrape schema (#615)
"firma" joins COMPOUND_PATTERNS so the glued Danish header "Firmanavn og by" matches again; whole-token matching since #75 skipped both sheets of the repository's own demonstration workbook with "Could not find header row". Every other workbook converts byte-identically. Also folds the `unreachable` status from #564 into the seen_jobs.json schema enum in the scrape spec. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
8123d88f30
commit
5d9e0977f0
4 files changed
+32
-3
No files matched your search
@@ -46,8 +46,9 @@ INDEX_PATTERNS = {"indeks", "index", "idx", "salary", "løn", "median", "average
|
||||
# header token, for languages that glue words together (e.g. Danish "lønindeks"
|
||||
# -> løn + indeks). Languages that write headers as separate words need none.
|
||||
# Ships populated for this repo's Danish demonstration data; a fork targeting
|
||||
# another locale edits this constant.
|
||||
COMPOUND_PATTERNS = {"antal", "indeks", "løn", "gennemsnit", "medarbejdere"}
|
||||
# another locale edits this constant. "firma" is here because the IDA workbook
|
||||
# heads its company column "Firmanavn og by" (firma + navn glued together).
|
||||
COMPOUND_PATTERNS = {"firma", "antal", "indeks", "løn", "gennemsnit", "medarbejdere"}
|
||||
# Identifier columns (employee id, Danish "personnummer", etc.) are never salary
|
||||
# data. They are dropped at classification so they are not mistaken for a salary
|
||||
# category. Matched as whole tokens only, like other pattern sets.
|
||||
|
||||
Reference in new issue
Block a user