Resumes
Candidate name, headline and contacts, each job and degree with its own dates, courses, and skills grouped under their area.
Richard Hendriks Programmer Email: [email protected] Telephone: (912) 555-4321 Website: http://richardhendricks.example.com Employment CEO/President — Pied Piper, Palo Alto, CA 2013-12-01 to 2014-12-01 Education Bachelor — Information Technology University of Oklahoma 2011-06-01 to 2014-01-01 GPA: 4.0 Courses: DB1101 - Basic SQL CS2011 - Java Introduction Skills Web Development: HTML, CSS, Javascript Compression: Mpeg, MP4, GIF
hr-resumes.ymlspec
# Facts of a plain-text resume. # Contact details EmailAddress: '[\w.+-]+@[\w-]+(\.[\w-]+)+' PhoneNumber: $before: Date $patterns: - '\+\d{1,3}[ .-]?(\(\d{1,4}\)|\d{1,4})([ .-]?\d{2,4}){2,4}' - '(\(\d{3}\)|\d{3}) ?[.-]?\d{3}[ .-]?\d{4}' WebAddress: - 'https?://[^\s|,;]+' - 'www\.[^\s|,;]+' # Dates Date: $local: Yyyy: '(19|20)\d{2}' Mm: '0[1-9]|1[0-2]' M: '[1-9]' Dd: '0[1-9]|[12]\d|3[01]' MonthName: $flags: [ CASE_INSENSITIVE ] January: { $patterns: [ 'January', 'Jan\.?' ], $value: '01' } February: { $patterns: [ 'February', 'Feb\.?' ], $value: '02' } March: { $patterns: [ 'March', 'Mar\.?' ], $value: '03' } April: { $patterns: [ 'April', 'Apr\.?' ], $value: '04' } May: { $patterns: 'May', $value: '05' } June: { $patterns: [ 'June', 'Jun\.?' ], $value: '06' } July: { $patterns: [ 'July', 'Jul\.?' ], $value: '07' } August: { $patterns: [ 'August', 'Aug\.?' ], $value: '08' } September: { $patterns: [ 'September', 'Sept?\.?' ], $value: '09' } October: { $patterns: [ 'October', 'Oct\.?' ], $value: '10' } November: { $patterns: [ 'November', 'Nov\.?' ], $value: '11' } December: { $patterns: [ 'December', 'Dec\.?' ], $value: '12' } Day: $fields: { year: Yyyy, month: Mm, day: Dd } $patterns: '#{year}-#{month}-#{day}' $value: '#{year}-#{month}-#{day}' Month: $fields: { year: Yyyy, month: Mm } $patterns: - '#{year}-#{month}' - '#{month}/#{year}' $value: '#{year}-#{month}' ShortMonth: $fields: { year: Yyyy, month: M } $patterns: '#{month}/#{year}' $value: '#{year}-0#{month}' NamedMonth: $fields: { year: Yyyy, month: MonthName } $patterns: '#{month},? #{year}' $value: '#{year}-#{month}' Year: '(19|20)\d{2}' Period: $local: Date: Present: $flags: [ CASE_INSENSITIVE ] $patterns: [ 'Present', 'Current', 'Now', 'Today', 'Ongoing' ] $value: 'present' $fields: { start: Date, end: Date } $patterns: '#{start}( ?[–—] ?| ?- ?| to | until | through )#{end}' # Candidate: the name on the first line, a headline under it and the contact details in any order Contact: $flags: [ CASE_INSENSITIVE ] Email: $fields: { address: EmailAddress } $patterns: '(E-?mail:? )?#{address}' $value: '#{address}' Phone: $fields: { number: PhoneNumber } $patterns: '((Tele)?phone|Tel\.?|Mobile|Cell):? #{number}|#{number}' $value: '#{number}' Website: $fields: { address: WebAddress } $patterns: '((Web(site)?|Homepage|Portfolio|URL):? )?#{address}' $value: '#{address}' Candidate: $local: PersonName: '\p{Lu}[\p{L}.''-]*( \p{Lu}[\p{L}.''-]*){1,3}' Headline: '\p{L}[\p{L} &/,-]*\p{L}' $fields: name: PersonName headline: Headline contacts: { $type: 'Contact[]', $separator: ' \| |\n' } $patterns: '^#{name}\n(#{headline}\n)?#{contacts}' # Employment: position, employer and location on one line, the dates on it or on the next line Employment: $local: Position: '[^\n—–|@,]*?[^\s—–|@,]' Employer: '[^\n—–|@,()]*[^\s—–|@,()]' Location: '[^\n—–|()]*[^\s—–|(),]' Separator: ' ?[—–|@] ?| - | at |, ' $fields: { position: Position, employer: Employer, location: Location, dates: Period } $patterns: '#{position}(${Separator})#{employer}((${Separator})#{location})?( ?[|,] ?| \(|\n)#{dates}\)?' # Education: degree and field of study, the institution, the dates, then GPA and courses Degree: $flags: [ CASE_INSENSITIVE ] $patterns: - 'Bachelor(''s)?( of (Science|Arts|Engineering|Business Administration|Fine Arts|Laws))?' - 'Master(''s)?( of (Science|Arts|Engineering|Business Administration|Fine Arts|Laws))?' - 'Associate(''s)?( of (Science|Arts))?' - 'Doctor of Philosophy' - 'Doctorate' - 'Ph\.? ?D\.?' - 'B\.? ?(S|A|Sc|Eng)\.?' - 'M\.? ?(S|A|Sc|Eng)\.?' - 'MBA' - 'High School Diploma' - 'Diploma' Course: $local: Code: '[A-Z]{2,5} ?-?\d{2,5}[A-Z]?' Title: '[^\n,;]+' $fields: { code: Code, title: Title } $patterns: '#{code}( ?[-–—:] ?| )#{title}' Education: $before: Employment $local: Field: '[^\n,|]*[^\s,|]' Institution: '[^\n|]*[^\s,|]' Gpa: '\d(\.\d{1,2})?( ?/ ?\d(\.\d{1,2})?)?' Separator: ' ?[—–|] ?| - |, | in | of ' $fields: degree: Degree field: Field institution: Institution dates: Period completed: Date gpa: Gpa courses: { $type: 'Course[]', $separator: '\n|, ?|; ?' } $patterns: '#{degree}((${Separator})#{field})?(\n|(${Separator}))#{institution}( ?[|,] ?|\n)(#{dates}|#{completed})(\n(GPA:? #{gpa}|Courses?:?\s#{courses}))*' # Skills: a heading, then lines of skills, each line under its area when it names one Skills: $local: SkillsHeading: $flags: [ CASE_INSENSITIVE ] $patterns: '((Technical|Core|Key|Professional) )?(Skills|Competencies|Expertise)( (&|and) (Expertise|Competencies|Tools))?' SkillGroup: $local: Area: '[^\n:,;]*[^\s:,;]' Skill: '[^\n:,;]*[^\s:,;]' $fields: area: Area skills: { $type: 'Skill[]', $separator: ', ?|; ?' } $patterns: '([-•*] )?(#{area}: ?)?#{skills}' $flags: [ MULTILINE ] $fields: groups: { $type: 'SkillGroup[]', $separator: '\n' } $patterns: '^${SkillsHeading}:?\n#{groups}'
$ texomy parse input.txt -m hr-resumesAbout this spec
Plain-text resumes: the candidate's name, headline and contacts, each employment entry with its dates, each education entry with its dates, GPA and courses, and skills grouped under their area.
Package files
hr-resumes.ymlsamples/architect.txtsamples/cover-letter.txtsamples/engineer.txtsamples/minimal.txttests/expected/architect.yamltests/expected/cover-letter.yamltests/expected/engineer.yamltests/expected/input.yamltests/expected/minimal.yamltests/hr-resumes.test.ymltexomy.json
53 nodes from 4 top-level matches.
Run it yourself
Save the example from Studio to a folder, then in that folder:
texomy parse input.txt -m hr-resumestexomy testMore examples
Invoices
Supplier, invoice number, dates, amounts, payment terms and order references, plus charge rows that take their section from the table caption.
Bank statements
Account, period and balance summary, and transactions read from a table whose Debit and Credit columns give each amount its sign.
Education
Student, identifier, institution and print date in any order, and each term with its courses, grades, credit hours and totals.
Logistics
Bills of lading: references, vehicles, sender and receiver with addresses, cargo lines with count, kind and mass, and the totals, in whatever order the document states them.
Addresses
Address blocks and one-line addresses: recipient, street or post office box with building, suite or mail stop, city, state, postal code and country.
Insurance claims
Explanation of Benefits tables: each claim line with service dates, description, status and every amount in its own field, the totals line as a type of its own, and the remark codes explained below.
Write the spec once. Run it on everything.
Install the CLI, connect your agent, and turn your first sample into typed data in minutes.
brew install texomy/tap/texomy