{"slug": "why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine", "title": "Why We Replaced LLM-Only Resume Scoring with a Deterministic Multilingual Engine in TypeScript", "summary": "The team behind LaunchCV Studio built a deterministic, multilingual resume-scoring engine in TypeScript that runs identically on client and server, replacing LLM-only scoring that produced inconsistent 0–100 results and mishandled non-English text. The engine strips contact metadata and section headers before counting substantive words, uses Unicode-aware regex and language-specific stop-word and action-verb sets across English, French, German, Spanish and Arabic, and reserves LLMs for targeted bullet rewrites and qualitative diagnostics shown as side-by-side diffs. Every deduction carries an explicit tip ID and point weight so users can see exactly what moves their score.", "body_md": "When we started building **LaunchCV Studio** ([launchcv.net](https://www.launchcv.net)), our first instinct for scoring resumes against Applicant Tracking Systems (ATS) was to prompt an LLM and ask for a `0–100` score.\n\nIn practice, pure LLM scoring broke down immediately in three ways:\n\n`74/100` on one call and `82/100` ten seconds later. Users editing a bullet point in a live split-screen editor need predictable feedback, not random drift.`/[a-zA-Z]+/`) silently discard Arabic, French accents, and German umlauts — treating non-English resumes as empty or low-quality.\nHere is how we designed a deterministic TypeScript scoring core that runs identically on the client and server, while keeping LLMs strictly for targeted bullet rewrites and qualitative diagnostics.\n\nA surprisingly common bug in simple resume checkers is counting *any* non-empty string toward completeness. If a user leaves sample placeholders or fills only their name, email, and LinkedIn URL, a naive character counter rewards them with points.\n\nTo avoid false positives, we normalize serialized or structured CV data so contact metadata (`email`, `phone`, `github`, `location`, `الاسم`, `البريد`, `الهاتف`) and section headers are stripped before measuring substance:\n\n``` js\nconst CONTACT_LINE_PATTERNS = [\n  /^(name|full\\s*name|nom)\\s*:/i,\n  /^(email|e-mail|courriel)\\s*:/i,\n  /^(phone|tel|telephone|téléphone|mobile)\\s*:/i,\n  /^(الاسم|البريد|الهاتف|الموقع|العنوان)\\s*:/i,\n];\n```\n\nOnly actual career fields — job titles, summaries, experience descriptions, skills, and education — pass through to substantive word counting.\n\nCandidates often test a builder with `\"asdf\"`, `\"John Doe\"`, `\"lorem ipsum\"`, or `\"xxxx\"`. At the same time, real technical resumes are packed with short, vowel-less acronyms like `CV`, `HR`, `PR`, `AR`, or `VR`.\n\nInstead of banning short words blindly, we combine three lightweight checks:\n\n`john doe`, `company name`, `your skill`, `lorem ipsum`, or `n/a`.`/[^\\p{L}\\p{N}\\s]/gu` preserves accented European letters (`é`, `ü`, `ñ`) and Arabic script (`\\p{L}`) equally.`\"sds\"`, `\"asaaaa\"`).`^[a-z]+$`), with an explicit allow-list (` cv`, `hr`, `dr`, `ar`, etc.) — while leaving Arabic and accented scripts untouched.\n\n```\n// Latin vowel guard runs only on pure ASCII words, never penalizing Arabic or accented scripts\nif (/^[a-z]+$/i.test(clean) && !/[aeiouyà-ÿ]/i.test(clean)) {\n  if (!ALLOWED_VOWEL_LESS.has(clean)) return true;\n}\n```\n\nAn ATS scorer evaluating global applicants across English, French, German, Spanish, and Arabic can't rely on English stop words alone.\n\nWe maintain language-aware `STOP_WORDS` across all five languages (including French `de`, `pour`, `chez`; German `und`, `mit`, `für`; Spanish `para`, `con`; and Arabic `في`, `من`, `على`, `إلى`) alongside action-verb sets so bullets starting with strong verbs like *architected*, *spearheaded*, *piloté*, or *conçu* are consistently recognized regardless of CV language.\n\nEvery point deduction emits an explicit, deterministic tip ID + point weight — meaning a user sees *exactly* what moves their score from `68` to `91` in real time.\n\nOnce deterministic checks validate structure, contact info, metrics, and ATS parseability, the LLM focuses on what heuristics cannot do well:\n\nCrucially, AI suggestions never overwrite a user's CV automatically. Every rewrite renders as an interactive side-by-side diff so candidates approve only claims that remain 100% faithful to their real experience.\n\nIf you want to inspect how this behaves on a real resume (PDF/DOCX import, deterministic ATS breakdown, and multi-language RTL support), you can test our free live scanner here:\n\n👉 [LaunchCV Studio — Free ATS Resume Checker](https://www.launchcv.net/ats-resume-checker)\n\nI'd love to hear how other builders handle Unicode ATS parsing or deterministic-vs-LLM scoring in production — drop your approach in the comments!", "url": "https://wpnews.pro/news/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine", "canonical_source": "https://dev.to/launchcvstudio/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine-in-typescript-16km", "published_at": "2026-12-05 11:10:14+00:00", "updated_at": "2026-12-05 11:14:20.744542+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "natural-language-processing", "developer-tools"], "entities": ["LaunchCV Studio", "TypeScript"], "also_reported_by": [], "takeaway": "Use deterministic, Unicode-aware TypeScript checks for resume structure, contact stripping and language-specific stop words, and reserve LLMs for targeted rewrites rendered as user-approved diffs, because pure LLM scoring drifted from 74 to 82 on the same input.", "recommendation": {"advice": "Move scoring and validation into deterministic code with explicit tip IDs and weights, and gate every LLM rewrite behind a side-by-side diff the user must approve.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine", "markdown": "https://wpnews.pro/news/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine.md", "text": "https://wpnews.pro/news/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine.txt", "jsonld": "https://wpnews.pro/news/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine.jsonld"}}