Skip to content

0005 Rank with rules before labelling locations

  • Status: Accepted
  • Date: 2026-12-04

Context

The plan for Milestone 1 was to label where each job can be done (ADR 0003) and then rank jobs against a profile.

The first live run on 2026-12-04 changed the order. The collector kept 74 worldwide jobs, and none of them was relevant to a knowledge management or technical writing profile. About half were AI-training gigs. Better location labels would only make that list more accurate. They wouldn't make it useful. What's missing is a way to pick the few jobs that match the person.

The architecture overview plans ranking with an AI model. Before paying for that, the project needs to know what a good pick looks like and which signals matter.

Options considered

Option For Against
Location labelling first, as planned Keeps the original order The output stays unusable until ranking exists
AI ranking first Understands wording that rules miss Costs money per run, harder to test, and hard to explain why a job was picked
Rule-based ranking first Free, fast, testable without internet, and every score can be explained Misses jobs described in words the profile doesn't list

Decision

Build a rule-based ranker now, before location labelling. It uses no AI.

  • The profile is a data file, profiles/gergely.yaml: titles, skills, and languages with weights, plus exclusion lists, experience, and salary limits. The repository is public, so the file holds non-sensitive preferences only.
  • Ranking is a separate function that takes jobs and a profile. Supporting many profiles in Milestone 2 means loading more profile files, not changing the ranker.
  • The ranker reads the profile with PyYAML, listed in requirements.txt. The collector still uses only the standard library.
  • Until ADR 0003 is built, worldwide_only relies on the sources' own location fields.

How scores are calculated is described in Rank jobs.

Consequences

  • The daily output becomes something a person can read and judge, which shows what location labelling and later AI ranking need to improve.
  • Every pick lists the keywords it matched and the experience it found, so a wrong pick can be traced to a rule.
  • Rules only find the words they're given. A good job described in other words is missed until someone adds the words to the profile. The ranker lists near misses, jobs that matched skills but no target title, to help spot them.
  • The code now has one dependency. Contributors and the tests workflow must install requirements.txt before running the tests. A well-tested library reads YAML more reliably than a hand-written reader.
  • Location labelling (ADR 0003) is still planned and comes next. It matters more once ranking works, because Jobicy contributed no worldwide jobs and restricted jobs need reliable labels before they can be sent.