Sub topic 12
Testing How Your CV Is Read
This chapter assumes you have read the earlier chapters on parsing, file formats, layout, section headings and job entries. You should be able to export a document as DOCX and PDF and to run a short Python script. The goal is to check your CV the way a parser sees it, so you can find and fix problems before a recruiter does.
Why testing matters
A CV that looks fine on screen can still parse badly. Parsers read the text layer of a file, not its appearance. A two-column layout, a text box or an unusual font encoding can scramble the reading order or drop text without any visible sign.
You cannot see the parser used by each employer. You can still test three things that predict most failures:
- The plain-text extraction of your file.
- The parsed profile that an application form shows after you upload.
- The keyword coverage of your text against a job description.
Check 1: plain-text extraction
The simplest test is to extract the text from your file and read it as a machine would. If the text is jumbled, missing or full of odd characters, a parser will probably struggle too.
Quick manual method
- Open the file in a viewer.
- Select all (Ctrl+A or Cmd+A) and copy.
- Paste into a plain-text editor such as Notepad or TextEdit in plain-text mode.
Selection order usually follows the order in the file, so this shows you roughly the sequence in which a parser meets your text. It is a rough guide only, because some parsers use their own layout analysis.
Command-line method for PDFs
If you have the pdftotext tool from the Poppler package, you can extract the text from a PDF. The default mode follows the file's text order. The -layout option tries to preserve the visual layout instead. Running both is useful, because a difference between them points to a layout problem.
pdftotext cv.pdf cv_default.txt
pdftotext -layout cv.pdf cv_layout.txtCommand-line method for DOCX
A DOCX file is a ZIP archive that contains XML. A short Python script can pull out the paragraph text using only the standard library. Note that this reads the main document body. It does not read headers and footers, which are stored in separate parts of the archive.
import re
import sys
import zipfile
from xml.etree import ElementTree
W = "{http://schemas.openxmlformats.org/wordprocessingml/2006/main}"
def docx_paragraphs(path):
with zipfile.ZipFile(path) as archive:
xml = archive.read("word/document.xml")
root = ElementTree.fromstring(xml)
paragraphs = []
for para in root.iter(W + "p"):
text = "".join(node.text or "" for node in para.iter(W + "t"))
paragraphs.append(text)
return paragraphs
if __name__ == "__main__":
for line in docx_paragraphs(sys.argv[1]):
print(line)Save it as docx_text.py and run python docx_text.py cv.docx. Text inside text boxes also appears in document.xml, but a parser may treat it differently. If a line shows up here and not in a simple copy-and-paste, it is probably in a text box or a similar object. Move it into the normal body.
What to look for
Read the extracted text from top to bottom and check each item in this table.
| Symptom in the extracted text | Likely cause | Fix |
|---|---|---|
| Lines from two columns interleaved | Two-column layout or table | Use a single column |
| Contact details missing | Details placed in the page header or footer | Move them into the body |
| Letters separated by spaces (`J A N E`) | Letter-spaced headings | Use normal character spacing |
| Strange symbols instead of bullets | Decorative bullet font | Use standard round bullets |
| Whole sections missing | Text inside images or text boxes | Use real text in the body |
| Dates detached from their job titles | Dates in a separate column or tab-aligned table | Put dates on their own line below the title |
| Ligature glitches (`fi` shown as `fi` or lost) | Font encoding | Try another standard font, then re-export |
An empty or near-empty extraction from a PDF usually means the PDF is a scan or a picture of text. Export again from the original document instead of printing to an image.
Check 2: the parsed profile in an application form
Many application systems read your upload and fill in the form fields for you: name, contact details, job history and education. This is the closest view you get of the real parser. Treat the pre-filled form as a test result.
Upload your CV and check each field:
- Name and contact details. Is your name correct and in the right fields, with no extra text attached?
- Job titles. Does each title sit in the title field and not in the employer field?
- Employers. Is the company name complete and free of the location?
- Dates. Are start and end dates correct? Check that a current role shows as current.
- Education. Are the degree, institution and year in the right places?
- Skills. Are they split into separate items, or merged into one long line?
Fix errors in the form before submitting, since that is the version a recruiter searches. Then change the CV so the next form is right the first time.
The example CV from the earlier chapter on job entries gives a predictable pattern:
Data Analyst, Example Retail Ltd, London
March 2021 - PresentIf a parser reads this as title Data Analyst, employer Example Retail Ltd and location London, the layout works. If it puts Example Retail Ltd, London in the title field, try one of the alternatives, such as putting the employer on its own line.
Check 3: keyword coverage
After the structure is correct, test the content. The script below compares the CV text with a list of keywords from a job description. It normalises both texts so that case and punctuation do not matter, and it matches whole words so that SQL does not match inside another word.
import re
def normalize(text):
return " ".join(re.findall(r"[a-z0-9+#]+", text.lower()))
def keyword_coverage(cv_text, keywords):
padded_cv = " " + normalize(cv_text) + " "
found = []
missing = []
for keyword in keywords:
if " " + normalize(keyword) + " " in padded_cv:
found.append(keyword)
else:
missing.append(keyword)
return found, missing
cv = "Built dashboards in Tableau and wrote SQL queries."
found, missing = keyword_coverage(cv, ["SQL", "Tableau", "Python"])
print("Found:", found)
print("Missing:", missing)Running it prints:
Found: ['SQL', 'Tableau']
Missing: ['Python']The regular expression keeps + and # so that terms like C++ and C# survive. Without them, both would collapse to c.
Limits of this script
- It matches exact words. It does not know that
data visualisationanddata visualizationmean the same thing, or thatMLstands formachine learning. Add each variant you would honestly use to the keyword list. - It does not handle plurals or word endings.
reportwill not matchreporting. - It shows only whether a word appears. It says nothing about whether the word sits in a sensible place, such as a job entry.
Feed the script the text you extracted in Check 1, not the original file. That way you test what the parser actually sees.
Acting on the result
A missing keyword is a question, not an instruction. Ask whether your real experience covers it.
- If it does, add it where you used the skill, ideally in a job entry bullet with the result.
- If it does not, leave it out. Adding a skill you lack leads to problems at interview or after you start, as covered in the chapter on honest optimisation.
Common testing errors
- Testing only one format. If you will upload both DOCX and PDF, extract and check both. They can behave differently.
- Trusting the viewer. What you see in a PDF viewer is the rendered page. The extraction is what counts.
- Checking once. Re-test after every edit that changes layout, fonts or sections.
- Treating a score as truth. Online checkers that give a percentage use their own parsers and rules. They can flag real problems, such as missing text, but a score does not tell you how any employer's system will behave.
- Ignoring the form. A clean extraction does not guarantee a clean parsed profile. Always check the form fields too.
A repeatable routine
- Export the CV in the format you will submit.
- Extract the text and read it from top to bottom, fixing the issues in the table above.
- Upload to an application form that shows parsed fields and fix every wrong field in the CV.
- Run the keyword script against the extracted text and the job description's keywords. Add only what is true.
- Save the passing version with a clear name, such as
jane-doe-cv-data-analyst.docx, and keep the tested text file beside it.
Exercise
You run pdftotext cv.pdf and the output shows your job titles first, then all the dates together, then all the employers. What most likely caused this, and what would you change?
Show answer
The CV probably uses a table or a column layout in which titles, dates and employers sit in separate cells or columns, so the extractor reads each column in turn. Change to a single-column layout where each job entry has its title, employer and location on one line and the dates on the next line. Export again and repeat the extraction to confirm the order is now correct.
Exercise
The keyword script reports "Missing: ['data visualization']", yet your CV says "data visualisation". What is happening, and how should you handle it?
Show answer
The script matches exact words after normalising case and punctuation, so the American and British spellings are treated as different keywords. Add both spellings to the keyword list so that either counts as found. Do not change your CV just to satisfy the script, because most recruiters and search tools handle either spelling, and your CV should follow the spelling convention of the role's country.