← All projects

Case study · NLP for HR tech

  • NLP matching & ranking
  • Multi-class classification
  • Streamlit app

Who should a recruiter read first?

5,000 resumes, 10 jobs, 50,000 candidate–job pairs. I built an engine that cleans messy skills, scores every pair, ranks the candidates, recommends Shortlist, Review or Reject, and explains each score in one sentence. Then I checked which part of it actually does the work.

50,000candidate–job pairs scored
86%on-profile candidates in each top 20 (random: 10.5%)
61%fewer resumes to read, every High-fit kept

Step 01 · Clean the skills

“Jaav” is Java. A keyword filter disagrees.

The resumes listed 212 distinct skill spellings for what turned out to be 30 skills; 182 were misspelt. One in five resumes (1,040) had at least one typo. Here is the project's exact cleaning rule running in your browser: try an exact match, then the same letters with different spacing, then fuzzy matching that accepts a similarity of 75 or more.

runs in your browserreproduces all 212 corrections in the project's table
    0caught by an exact keyword filter
    0caught after cleaning
    182misspelt skill tokens mapped to 30 canonical skills
    +167more Python developers found after cleaning (1,796 → 1,963)
    1,063impossible records: a law degree (LLM) in a non-law field
    499resumes missing education, scored neutrally, never dropped
    Candidates per skill found by an exact keyword search versus after cleaning; every skill gains, Python from about 1,796 to 1,963
    Candidates found per skill: exact keyword search vs after cleaning.

    Step 02 · Score every pair

    Nine parts. Every one auditable.

    I wrote 10 structured job descriptions (the data had none) with must-have skills, optional skills, years and seniority. Every candidate gets a score against every job from nine weighted parts. The weights are a judgement call, not learned, so I tested how much the ranking moves when each one shifts by up to 30%.

    Rule-score weights

    Must-have skills30%
    Experience fit15%
    Domain fit10%
    Role fit10%
    Experience areas10%
    Optional skills10%
    Education fit5%
    Tools5%
    Resume quality5%
    93.2%of each top 20 survives 50 random ±30% weight shifts
    0.996average rank correlation across those shifts
    Institution tier stays out

    Tier-1, 2 and 3 colleges were tested and never used in scoring. Shortlist rates came out 7.7%, 7.9% and 8.0% (χ² p = 0.898): the engine doesn't favour where someone studied.

    Stacked bars of rule-score components for a shortlisted, a review and a rejected candidate for the cloud backend job
    Why three candidates got their scores for the Senior Cloud Backend Engineer job: Shortlist #1, Review #699, Reject #1505. The Review candidate is missing Docker.

    Step 03 · Which part does the work? The hard part

    I built a hybrid. The rules did the ranking.

    03 · aAn independent yardstick

    With no real hiring decisions, I needed a fair test that no score was built from: is the candidate's role one the job targets, and are their years in range? Each method ranks all 5,000 candidates per job; I count how many of its top 20 pass. The tick is NDCG@50, which also rewards putting them near the top.

    Sort:
      precision@20 (0–1 scale)NDCG@50

      Rule alone vs hybrid

      0.860 = 0.860

      Same precision@20, same NDCG@50. Giving text similarity any direct weight made it worse.

      What the ML layer really adds

      Not better ranking. It adds a probability that a pair is a High fit, useful when a recruiter is reviewing borderline cases. Text similarity is weak here because the resumes are templated: their summaries use just 18, 13 and 3 sentence patterns. The weights were also chosen on this yardstick, so 86% is slightly optimistic.

      03 · bA 0.995 that doesn't mean what it seems

      Near-perfect F1, for a circular reason.

      Gradient Boosting predicted High / Medium / Low fit with a macro-F1 of 0.995 under 5-fold cross-validation grouped by candidate. But those labels were defined by rules over the same engineered features. On raw features it scores 0.710. The model learned my rules, not who gets hired.

      0.995

      macro-F1, Gradient Boosting, 5-fold GroupKFold

      The labels were built from these same features: a near-perfect score was guaranteed.

      Step 04 · What it changes for a recruiter

      13,389 fewer resumes. Zero good fits lost.

      04 · aSpelling costs candidates

      An exact-keyword filter with the same rule (at least two of three must-haves) would silently drop 370 of 3,772 High-fit matches: 9.8%, just from spelling. Per job:

      HR Business Partner17.1%
      DevOps Engineer14.8%
      Compliance Counsel12.1%
      Talent Acquisition11.9%
      Mechanical Design Eng.9.0%
      Data Scientist, NLP8.1%
      Junior Java Developer7.6%
      Business Data Analyst6.6%
      Senior Cloud Backend5.4%
      Senior IT Project Mgr2.9%

      Share of each job's High-fit candidates an exact keyword filter would miss.

      04 · bRecruiter hours

      Read the Shortlist and Review piles. Archive the rest, with a reason.

      Resumes read today (domain filter)21,782
      With the engine8,393
      61%less reading across the 10 jobs
      ≈1,116recruiter hours saved, at 5 minutes a resume
      100%of High-fit candidates still read
      Read the fine print

      The saving depends on the baseline. “Today” assumes a recruiter reads every resume in the job's domain and related domains, which is why the IT project manager role shows a 95% cut (2,911 → 139). Two jobs show no saving at all. And 1,031 Medium-fit pairs are auto-rejected, so the Reject pile deserves a periodic spot check.

      The Streamlit recruiter dashboard for the Senior Cloud Backend Engineer job: 5,000 scored, 698 shortlisted, 806 to review, a ranked table with fit scores and reasons
      The Streamlit dashboard: ranked shortlist with a reason per candidate, candidate profiles, job insights, and a tab to define any new job and rank all 5,000 candidates live.
      • Learn from real decisionsLog which candidates recruiters advance, then retrain the classifier on those outcomes instead of rule labels.
      • Ask about the blocking skillOne missing must-have (Docker, Power BI) holds back a third to half of most Review piles. Is it trainable?
      • Test on real resumesTemplated text understates what TF-IDF, LSA or a sentence-embedding model could add on natural writing.

      The lesson

      Ablate your own system. Keep the part that earns its place.

      Python · pandas · scikit-learn · RapidFuzz · SciPy · Streamlit · Plotly. 5,000 synthetic parsed resumes for TalentBridge, a fictional HR-tech company.