Financial reports
Figures, changes and guidance from report prose, each with its metric, period, amount and currency.
Microsoft Corporation Fiscal year ended June 30, 2025 For fiscal 2025, Microsoft reported revenue of USD 281.724 billion, compared with USD 245.122 billion in fiscal 2024. The reported year-over-year increase was 15%. Operating income for the company reached USD 128.528 billion in 2025; the corresponding 2024 figure was USD 109.433 billion. The year-over-year change was 17%. Within Intelligent Cloud, revenue rose by USD 18.8 billion, or 21%. Azure and other cloud services recorded revenue growth of 34%, whereas server products revenue fell by 3%. More Personal Computing generated a revenue increase of USD 3.8 billion, or 7%. Gaming revenue grew by USD 2.0 billion, or 9%, while Xbox hardware revenue fell by 25%.
financial-reports.ymlspec
$imports: [ 'values', 'periods', 'metrics' ] $flags: [ CASE_INSENSITIVE ] Entity: Company: $local: Name: $flags: [ -CASE_INSENSITIVE ] $patterns: '[A-Z][\w&''.-]*( [A-Z][\w&''.-]*){0,3}' LegalForm: 'Corporation|Corp\.|Incorporated|Inc\.|Ltd\.?|Limited|plc|AG|SE|N\.V\.|S\.A\.|Holdings|Group' $fields: { name: Name } $patterns: '#{name} ${LegalForm}' Fact: $local: Entity: Name: $flags: [ -CASE_INSENSITIVE ] $patterns: '[A-Z][\w&''-]*( [\w&''-]+){0,4}' Year: '(19|20)\d{2}' Period: Year: $fields: { year: Year } $patterns: '#{year}' When: 'for|in|during' Report: 'reported|posted|recorded|delivered|generated|achieved|booked|saw' Total: 'was|were|reached|totaled|totalled|amounted to|came in at|stood at|of' Direction: Increase: $value: 'increase' $patterns: 'rose|increased|grew|climbed|advanced|jumped|gained|was up|were up|up|higher|increase|growth|rise|gain' Decrease: $value: 'decrease' $patterns: 'fell|declined|decreased|dropped|slipped|contracted|was down|were down|down|lower|decrease|decline|drop|fall|contraction' Change: $value: 'change' $patterns: 'changed|change' Basis: 'year[- ]over[- ]year|year[- ]on[- ]year|YoY|y/y|annual|from a year (earlier|ago)' # The punctuation before a prior figure or a change belongs to the fact, not to them. Link: '[,;.]? ' Prior: $fields: { figure: Figure, period: Period } $patterns: - '(compared (with|to)|versus|vs\.?|up from|down from|from) #{figure}( (in|for) #{period}| a year (earlier|ago)| in the (prior|previous) year)?' - 'the corresponding #{period} figure was #{figure}' Delta: $fields: { direction: Direction, percent: Figure } $patterns: - 'the( reported)?( ${Basis})? #{direction} was #{percent}' - '(an? )?#{direction}( of)? #{percent}( ${Basis})?' Value: $fields: period: 'Period[]' entity: Entity metric: Metric figure: Figure prior: Prior change: Delta $patterns: - '((${When}) #{period}, )?(#{entity} )?${Report} #{metric} of #{figure}( (${When}) #{period})?(${Link}#{change}(${Link}#{prior})?|${Link}#{prior}(${Link}#{change})?)?' - '((${When}) #{period}, )?#{metric}( for the (company|group))?( (${When}) #{period})? ${Total} #{figure}( (${When}) #{period})?(${Link}#{change}(${Link}#{prior})?|${Link}#{prior}(${Link}#{change})?)?' Change: $fields: segment: Entity period: 'Period[]' entity: Entity metric: Metric direction: Direction amount: Figure::Amount percent: Figure level: Figure::Amount $patterns: - '((within|in|at) #{segment}, )?((${When}) #{period}, )?(#{entity} )?#{metric}( (${When}) #{period})? #{direction} (by )?(#{amount}(,? or #{percent})?|#{percent})( ${Basis})?( (${When}) #{period})?( to #{level})?' - '((within|in|at) #{segment}, )?((${When}) #{period}, )?(#{entity} )?${Report} (a |an )?#{metric} #{direction} of (#{amount}(,? or #{percent})?|#{percent})( ${Basis})?( (${When}) #{period})?' - '(#{entity} )?${Report} (a |an )#{percent} #{direction} in #{metric}( (${When}) #{period})?' Guidance: $local: Expect: '(now |continues to |continue to )?(expects?|anticipates?|forecasts?|projects?|guides? to|sees|targets?|is targeting|are targeting)' Revise: Raise: $value: 'raise' $patterns: 'raised|increased|lifted|upgraded|raises' Lower: $value: 'lower' $patterns: 'lowered|cut|reduced|downgraded|lowers' Confirm: $value: 'confirm' $patterns: 'reaffirmed|confirmed|maintained|reiterated|reaffirms|confirms' Outlook: 'guidance|outlook|forecast|target' About: 'about|approximately|around|roughly|at least|up to|in the range of|in a range of' $fields: period: 'Period[]' entity: Entity metric: Metric direction: Direction revision: Revise figure: Figure $patterns: - '((${When}) #{period}, )?(#{entity} )?${Expect} (full[- ]year |annual )?#{metric}( #{direction})?( (${When}) #{period})? (of |to be |at |to reach )?(${About} )?#{figure}( (${When}) #{period})?' - '((${When}) #{period}, )?(#{entity} )?#{revision} its( full[- ]year| annual| #{period})? #{metric}( #{direction})? ${Outlook}( (${When}) #{period})?( (to|of) (${About} )?#{figure})?' - '((${When}) #{period}, )?#{metric}( #{direction})?( (${When}) #{period})? (is|are) (expected|forecast|projected|anticipated) to (be|reach|come in at) (${About} )?#{figure}( (${When}) #{period})?' - '((${When}) #{period}, )?(the )?#{metric}( #{direction})? ${Outlook}( (${When}) #{period})? (is|was|of|remains|calls for) (${About} )?#{figure}'
$ texomy parse input.txt -m financial-reportsAbout this spec
Figures stated in annual reports, interim reports and earnings releases: reported values, changes and guidance ranges with their metric, entity, period, amount and currency.
Package files
financial-reports.ymlmetrics.ymlperiods.ymltexomy.jsonvalues.ymltests/financial-reports.test.ymltests/periods.test.ymltests/values.test.yml
96 nodes from 10 top-level matches.
Run it yourself
Save the example from Studio to a folder, then in that folder:
texomy parse input.txt -m financial-reportstexomy 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.
Resumes
Candidate name, headline and contacts, each job and degree with its own dates, courses, and skills grouped under their area.
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.
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