# Why We Replaced LLM-Only Resume Scoring with a Deterministic Multilingual Engine in TypeScript

> Source: <https://dev.to/launchcvstudio/why-we-replaced-llm-only-resume-scoring-with-a-deterministic-multilingual-engine-in-typescript-16km>
> Published: 2026-12-05 11:10:14+00:00

**Recommendation:** 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.
More in the playbook "Verifying model output": <https://wpnews.pro/playbooks/output-verification>

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.

In practice, pure LLM scoring broke down immediately in three ways:

`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.
Here 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.

A 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.

To 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:

``` js
const CONTACT_LINE_PATTERNS = [
  /^(name|full\s*name|nom)\s*:/i,
  /^(email|e-mail|courriel)\s*:/i,
  /^(phone|tel|telephone|téléphone|mobile)\s*:/i,
  /^(الاسم|البريد|الهاتف|الموقع|العنوان)\s*:/i,
];
```

Only actual career fields — job titles, summaries, experience descriptions, skills, and education — pass through to substantive word counting.

Candidates 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`.

Instead of banning short words blindly, we combine three lightweight checks:

`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.

```
// Latin vowel guard runs only on pure ASCII words, never penalizing Arabic or accented scripts
if (/^[a-z]+$/i.test(clean) && !/[aeiouyà-ÿ]/i.test(clean)) {
  if (!ALLOWED_VOWEL_LESS.has(clean)) return true;
}
```

An ATS scorer evaluating global applicants across English, French, German, Spanish, and Arabic can't rely on English stop words alone.

We 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.

Every 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.

Once deterministic checks validate structure, contact info, metrics, and ATS parseability, the LLM focuses on what heuristics cannot do well:

Crucially, 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.

If 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:

👉 [LaunchCV Studio — Free ATS Resume Checker](https://www.launchcv.net/ats-resume-checker)

I'd love to hear how other builders handle Unicode ATS parsing or deterministic-vs-LLM scoring in production — drop your approach in the comments!
