Sub topic 3
How a parser turns your CV into a profile
This chapter assumes you know what an applicant tracking system (ATS) is and why recruiters use one. It also assumes you can export a document as DOCX or PDF and have filled in an online application form. It does not assume any programming knowledge, but the short Python example will make more sense if you can read simple code.
What the parser is for
When you upload a CV, the ATS does not store it as a document to be read like a page. It runs a parser, a program that reads the file and fills in a structured record. That record is your profile. It has separate fields for name, email, phone, job titles, employers, dates, education and skills.
Most of what a recruiter does afterwards uses the profile, not the file. Search results, list views, "years of experience" filters and the pre-filled fields on an application form all come from it. The original file is usually kept and can be opened, but a recruiter often sees the parsed version first.
So parsing sets what the rest of the system knows about you. If a parser reads your most recent job as "Present" at an employer called "March 2021", every later step starts from wrong data.
The stages of parsing
Vendors differ in the details, but most parsers follow the same sequence. Knowing the sequence helps you work out why a particular mistake happened.
1. Text extraction
The parser first turns the file into a stream of plain text. For a DOCX file it reads the text from the document's internal XML. For a PDF it reads the text layer, if there is one. A PDF made by scanning paper has no text layer, only an image, so the parser either needs optical character recognition (OCR) or gets nothing.
Extraction also decides the reading order. A parser does not see your page as you do. It receives characters in the order the file stores them, and that order may differ from the visual order. Chapters on file formats and layout cover which choices cause this. Here the point is that every later stage works on this text stream, so an error at this stage spreads to the others.
2. Section segmentation
Next the parser splits the text into sections, such as contact details, work experience, education and skills. It mostly does this by recognising headings. A line reading "Work Experience" or "Education" tells the parser that what follows belongs to that section until the next heading.
Segmentation matters because the same text means different things in different sections. "2019" under Education is a graduation year. "2019" under Work Experience is part of an employment date. A parser that misses a heading may apply the wrong rules to a whole block.
3. Field extraction
Within each section the parser looks for specific fields. For a work entry it wants a job title, an employer, a location, a start date and an end date. Parsers find these with a mix of methods:
- Patterns, such as a regular expression for email addresses or for date ranges like
March 2021 - Present. - Lists of known values, such as job titles, company names, universities, cities and skills.
- Position and layout cues, such as "the line just above a date range is usually the title and employer".
- Statistical or machine-learning models trained on large sets of labelled CVs, which guess the role of each piece of text from its surroundings.
Older systems lean on patterns and lists. Newer ones lean on models. Both depend heavily on predictable structure. A model trained on millions of conventional CVs does best on conventional CVs.
4. Normalisation
Finally the parser cleans the extracted values so they can be compared. Dates become real dates, so "Mar 2021" and "03/2021" are the same month. Employment periods are added up to give a total experience figure. Skills may be mapped to a standard vocabulary, so "MS Excel" and "Excel" count as one skill. Job titles may be grouped into families.
Normalisation is where small extraction errors turn into visible ones. An end date read as the wrong year changes the calculated length of a job. A missing end date can make a past job look current.
A toy parser you can run
Real parsers are much larger, but a small version shows the same logic and the same ways it breaks. This script uses the plain-text CV skeleton from this tutorial. It finds headings, then looks for a date range and treats the line above it as "title, employer, location".
import json
import re
CV = """JANE DOE
London, UK | [email protected]
WORK EXPERIENCE
Data Analyst, Example Retail Ltd, London
March 2021 - Present
- Built weekly sales dashboards in Tableau used by 12 regional managers.
- Wrote SQL queries to reconcile order data across three systems.
Junior Analyst, Sample Logistics, Leeds
June 2019 - February 2021
- Automated monthly reports with Python and Excel.
EDUCATION
BSc Mathematics, University of Example, 2019
"""
HEADINGS = {"summary", "work experience", "education", "skills"}
DATE_RANGE = re.compile(
r"^(?P<start>[A-Z][a-z]+ \d{4})\s*-\s*(?P<end>[A-Z][a-z]+ \d{4}|Present)$"
)
def split_sections(text):
sections = {}
current = None
for line in text.splitlines():
stripped = line.strip()
if stripped.lower() in HEADINGS:
current = stripped.lower()
sections[current] = []
elif current and stripped:
sections[current].append(stripped)
return sections
def parse_entries(lines):
entries = []
previous = ""
for line in lines:
match = DATE_RANGE.match(line)
if match:
parts = [part.strip() for part in previous.split(",")]
entries.append(
{
"title": parts[0],
"employer": parts[1] if len(parts) > 1 else None,
"location": parts[2] if len(parts) > 2 else None,
"start": match.group("start"),
"end": match.group("end"),
"bullets": [],
}
)
elif line.startswith("- ") and entries:
entries[-1]["bullets"].append(line[2:])
previous = line
return entries
sections = split_sections(CV)
profile = {"experience": parse_entries(sections["work experience"])}
print(json.dumps(profile, indent=2))Run it and you get two entries, each with a title, employer, location, start, end and bullet list. Now change the heading WORK EXPERIENCE to MY JOURNEY. The script raises a KeyError, because it never found a section it recognised. A real parser fails more quietly. It does not crash, it just leaves the experience section empty or treats the text as something else.
Next put the date on the same line as the title, for example Data Analyst, Example Retail Ltd, London (March 2021 - Present). The date pattern no longer matches, so the entry vanishes. This is the main lesson of the toy: the parser relies on a fixed relationship between pieces of text, and your CV has to supply it.
Where parsing goes wrong
Most parsing faults fall into a few families. Recognising the family tells you what to change.
| Symptom in the parsed profile | Likely cause | What it points to |
|---|---|---|
| Name or contact details missing | Details placed in a page header, footer or text box that extraction skipped | Layout |
| Text from two columns mixed into single lines | Reading order differs from visual order | Layout |
| Whole section empty or merged into another | Heading not recognised, such as a creative label | Section headings |
| Job title and employer swapped | Entry order or punctuation did not match the expected pattern | Experience entries |
| Wrong total years of experience | Date format or range not recognised, or a missing end date | Experience entries |
| Garbled or empty text | Scanned PDF with no text layer, or unusual fonts | File format |
| Skills missing | Skills only inside an image, graphic or rating bars | Layout and content |
Parsers are tolerant, but only within limits, and they are not consistent from one vendor to the next. A CV that parses cleanly in one system can fail in another. That is why the safest approach is a conventional structure that works almost everywhere, and not one that is tuned to a single product.
What a parser does not do
A parser extracts and organises. It does not decide whether you are a good candidate. It also does not understand your CV the way a person does. It recognises that "Tableau" looks like a skill, but it does not know whether you used it well.
Some systems add a ranking or match score on top of the profile. Even then, the score is built from parsed fields. If the fields are wrong, the score is built on wrong data. This is the real risk of a badly parsed CV. The system does not necessarily reject it, but it can misrepresent it every time someone searches or filters.
Working with the parser
You cannot see inside the parser, but you can make its job easier. Apply these habits to every CV:
- Keep the order of facts the same in every job entry. If one entry reads title, employer, location and the next reads employer, title, the parser has to guess.
- Put dates on their own line or in a consistent position, in a format with a month name and a four-digit year.
- Use ordinary headings for sections, so segmentation finds them.
- Put critical details in the main body, not in headers, footers, text boxes or images.
- Check the result instead of assuming it worked. Later chapters show how to test extraction and read the parsed profile.
Edge cases to know about
- Employment gaps and overlaps. A parser computes experience from date ranges. Two overlapping jobs may be counted twice or merged, depending on the system. A gap is not penalised by the parser itself, but it does show up in the timeline a recruiter sees.
- Several roles at one employer. If you list three promotions at one company, a parser may treat them as three jobs, one job with a single title, or a mix. Giving each role its own title and date line is the clearest form.
- Current roles. "Present" is widely understood. Variants such as "to date" or "ongoing" are less reliable.
- Non-English or mixed-language CVs. Heading and date recognition depends on the languages a vendor supports. A mismatch between the CV language and the system's configured language can reduce accuracy.
- Re-parsing. Some systems keep the original file and re-run the parser after an update. Your profile can therefore change after you applied, and the field-level data you checked at submission may not be what a recruiter sees later.
Exercise
A parsed profile shows your current job as having no end date and your previous job's employer as "June 2019". Using the stages of parsing, name the stage where the error most likely began and suggest one change to the CV.
Show answer
The error most likely began in field extraction. The parser did not match each date range to the entry it belongs to, so the date was read as the employer name and the end date was left empty. The fix is to give every job entry the same fixed order, with the title, employer and location on one line and the date range, in a month-and-year format, on its own line directly below it. This lets the parser's pattern and position rules match.
Exercise
Why can a CV that parses perfectly in one ATS give a wrong profile in another, and what does that imply about how you should structure it?
Show answer
Each vendor uses its own mix of patterns, word lists and trained models, so each makes different guesses about ambiguous text. A layout that depends on one system's quirks is risky. Using a conventional structure (standard headings, one consistent entry format, dates in a predictable position, important details in the main body) works across most systems.