AI Campus • Sahaayaka resources

Build an explainable resume evidence matcher

Run a real local baseline on two text files, then extend it with PDF extraction or a web interface.

Beginner · 45–90 minutes

Before you start

  • Python 3.10+ and a terminal. Check with python --version; on Windows, try py --version if needed.
  • Two UTF-8 text files: resume.txt and requirements.txt. Use fictional details; put one skill per requirements line.

Cost: Python standard library only. No API key, paid account or model download.

Download a complete free starter

The ZIP includes the Python code, a README, sample files where needed, and a check you can run. No API key or paid service is needed for this baseline.

Download starter ZIP

Extract the ZIP, open its folder in a terminal and follow README.md. Start with python test_starter.py.

Step-by-step walkthrough

  1. 1. Create the input files

    Write “Built Python and SQL projects.” in resume.txt. Put Python, SQL and Docker on separate lines in requirements.txt. Keep every requirement explicit.

  2. 2. Download the code

    Save resume_matcher.py in the same folder. The code compares word sequences and returns evidence snippets; it does not call an AI service.

  3. 3. Run the first check

    Run python resume_matcher.py resume.txt requirements.txt. Expect Python and SQL matched, Docker missing, and a custom coverage of 66.7%.

  4. 4. Inspect a failure

    Empty requirements.txt and run again: the program must reject the empty requirement set instead of dividing by zero or showing a perfect score.

  5. 5. Extend and publish your evidence

    Add PDF extraction only after this baseline works. Write a README with inputs, actual output, limitations and a screenshot. Do not publish a real resume or personal contact details.

Complete code: resume_matcher.py

Download Python file
import argparse
import json
import re
from pathlib import Path

def tokens(text):
    return re.findall(r"[\w+#]+", text.casefold())

def match_resume(resume, requirements):
    required = list(dict.fromkeys(line.strip() for line in requirements.splitlines() if line.strip()))
    if not required or any(not tokens(term) for term in required):
        raise ValueError("Add at least one skill using letters or numbers.")
    sentences = [line.strip() for line in re.split(r"[.\n]", resume) if line.strip()]
    matched, missing = [], []
    for term in required:
        target = tokens(term)
        evidence = next((line for line in sentences if any(tokens(line)[i:i+len(target)] == target for i in range(len(tokens(line))))), None)
        if evidence:
            matched.append({"requirement": term, "evidence": evidence})
        else:
            missing.append(term)
    return {"custom_coverage_percent": round(100*len(matched)/len(required), 1), "matched": matched, "missing": missing, "limitation": "Keyword overlap only; not an ATS or hiring score."}

def main():
    parser = argparse.ArgumentParser(description="Compare resume text with explicit requirements")
    parser.add_argument("resume", type=Path)
    parser.add_argument("requirements", type=Path)
    args = parser.parse_args()
    try:
        result = match_resume(args.resume.read_text(encoding="utf-8"), args.requirements.read_text(encoding="utf-8"))
        print(json.dumps(result, indent=2, ensure_ascii=False))
    except (OSError, UnicodeError, ValueError) as error:
        parser.exit(1, str(error) + "\n")

if __name__ == "__main__":
    main()

Run and verify

python resume_matcher.py resume.txt requirements.txt

JSON reports matched terms, source snippets, missing requirements and a custom coverage percentage. The example produces 66.7%.

Understand the limits

A transparent keyword-overlap exercise, not an employer ATS score, hiring recommendation or semantic AI evaluation. It does not read PDFs until you add that capability.

Official references

AI Campus Weekly Dispatch

AI Campus updates padeyiri.

AI suddi, tools mattu kalikeya maahitiyannu vaarakke omme nimma inbox nalli padeyiri.

Get a welcome AI briefing and weekly Sunday updates. Unsubscribe anytime in 1 click.

BrandMint AI jothe kaliyiri mattu kattiri

BrandMint AI jothe kalikeya avakashagalu

AI Campus nalli suddi, tools mattu skills tiliyiri. Mundina kalikege BrandMint AI courses, mentoring athava apps aayke maadi.

AI Campus guides uchita. Course fees mattu labhyatege aayaa platform vivara nodi.

Courses mattu mentoring

AI basics athava practical software skills kaliyiri.

Learning apps

WhatsLearn athava CBSE learning application tereyiri.

Marketing mattu filmmaking

Creative practical learning jothe portfolio kattiri.

Essential cookies site kelasa maadalu beku. Bhaashe mattu subscription aaykegalu nimma device nalli ulitaave. Optional analytics athava advertising cookies eega balasuttilla.

Vivara mattu settings