Skip to content

Financial reports

Figures, changes and guidance from report prose, each with its metric, period, amount and currency.

input.txtHover a value to see its type · click it to find it in the treeRun in Studio
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-reports
financial-reports.json
[
  {
    "type": "Entity::Company",
    "start": 0,
    "end": 21,
    "fields": {
      "name": {
        "type": "Name",
        "start": 0,
        "end": 9,
        "text": "Microsoft"
      }
    }
  },
  {
    "type": "Period::Ended",
    "start": 22,
    "end": 53,
    "fields": {
      "length": {
        "type": "Length",
        "start": 22,
        "end": 33,
        "text": "Fiscal year"
      },
      "end": {
        "type": "Date",
        "start": 40,
        "end": 53,
        "fields": {
          "year": {
            "type": "Year",
            "start": 49,
            "end": 53,
            "text": "2025"
          },
          "month": {
            "type": "Month::June",
            "start": 40,
            "end": 44,
            "text": "June",
            "value": "06"
          },
          "day": {
            "type": "Day::TwoDigits",
            "start": 45,
            "end": 47,
            "text": "30"
          }
        },
        "value": "2025-06-30"
      }
    }
  },
  {
    "type": "Fact::Value",
    "start": 55,
    "end": 217,
    "fields": {
      "period": [
        {
          "type": "Period::FiscalYear",
          "start": 59,
          "end": 70,
          "fields": {
            "fiscal": {
              "type": "Fiscal",
              "start": 59,
              "end": 65,
              "text": "fiscal"
            },
            "year": {
              "type": "Year",
              "start": 66,
              "end": 70,
              "text": "2025"
            }
          }
        }
      ],
      "entity": {
        "type": "Entity::Name",
        "start": 72,
        "end": 81,
        "text": "Microsoft"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 91,
        "end": 98,
        "text": "revenue"
      },
      "figure": {
        "type": "Figure::Amount",
        "start": 102,
        "end": 121,
        "fields": {
          "currency": {
            "type": "Currency::USD",
            "start": 102,
            "end": 105,
            "text": "USD",
            "value": "USD"
          },
          "number": {
            "type": "Number::Plain",
            "start": 106,
            "end": 113,
            "text": "281.724"
          },
          "scale": {
            "type": "Scale::Billion",
            "start": 114,
            "end": 121,
            "text": "billion",
            "value": 1000000000
          }
        }
      },
      "prior": {
        "type": "Prior",
        "start": 123,
        "end": 171,
        "fields": {
          "figure": {
            "type": "Figure::Amount",
            "start": 137,
            "end": 156,
            "fields": {
              "currency": {
                "type": "Currency::USD",
                "start": 137,
                "end": 140,
                "text": "USD",
                "value": "USD"
              },
              "number": {
                "type": "Number::Plain",
                "start": 141,
                "end": 148,
                "text": "245.122"
              },
              "scale": {
                "type": "Scale::Billion",
                "start": 149,
                "end": 156,
                "text": "billion",
                "value": 1000000000
              }
            }
          },
          "period": {
            "type": "Period::FiscalYear",
            "start": 160,
            "end": 171,
            "fields": {
              "fiscal": {
                "type": "Fiscal",
                "start": 160,
                "end": 166,
                "text": "fiscal"
              },
              "year": {
                "type": "Year",
                "start": 167,
                "end": 171,
                "text": "2024"
              }
            }
          }
        }
      },
      "change": {
        "type": "Delta",
        "start": 173,
        "end": 217,
        "fields": {
          "direction": {
            "type": "Direction::Increase",
            "start": 201,
            "end": 209,
            "text": "increase",
            "value": "increase"
          },
          "percent": {
            "type": "Figure::Percent",
            "start": 214,
            "end": 217,
            "fields": {
              "number": {
                "type": "Number::Plain",
                "start": 214,
                "end": 216,
                "text": "15"
              }
            }
          }
        }
      }
    }
  },
  {
    "type": "Fact::Value",
    "start": 220,
    "end": 378,
    "fields": {
      "period": [
        {
          "type": "Period::Year",
          "start": 284,
          "end": 288,
          "fields": {
            "year": {
              "type": "Year",
              "start": 284,
              "end": 288,
              "text": "2025"
            }
          }
        }
      ],
      "metric": {
        "type": "Metric::OperatingIncome",
        "start": 220,
        "end": 236,
        "text": "Operating income"
      },
      "figure": {
        "type": "Figure::Amount",
        "start": 261,
        "end": 280,
        "fields": {
          "currency": {
            "type": "Currency::USD",
            "start": 261,
            "end": 264,
            "text": "USD",
            "value": "USD"
          },
          "number": {
            "type": "Number::Plain",
            "start": 265,
            "end": 272,
            "text": "128.528"
          },
          "scale": {
            "type": "Scale::Billion",
            "start": 273,
            "end": 280,
            "text": "billion",
            "value": 1000000000
          }
        }
      },
      "prior": {
        "type": "Prior",
        "start": 290,
        "end": 343,
        "fields": {
          "figure": {
            "type": "Figure::Amount",
            "start": 324,
            "end": 343,
            "fields": {
              "currency": {
                "type": "Currency::USD",
                "start": 324,
                "end": 327,
                "text": "USD",
                "value": "USD"
              },
              "number": {
                "type": "Number::Plain",
                "start": 328,
                "end": 335,
                "text": "109.433"
              },
              "scale": {
                "type": "Scale::Billion",
                "start": 336,
                "end": 343,
                "text": "billion",
                "value": 1000000000
              }
            }
          },
          "period": {
            "type": "Period::Year",
            "start": 308,
            "end": 312,
            "fields": {
              "year": {
                "type": "Year",
                "start": 308,
                "end": 312,
                "text": "2024"
              }
            }
          }
        }
      },
      "change": {
        "type": "Delta",
        "start": 345,
        "end": 378,
        "fields": {
          "direction": {
            "type": "Direction::Change",
            "start": 364,
            "end": 370,
            "text": "change",
            "value": "change"
          },
          "percent": {
            "type": "Figure::Percent",
            "start": 375,
            "end": 378,
            "fields": {
              "number": {
                "type": "Number::Plain",
                "start": 375,
                "end": 377,
                "text": "17"
              }
            }
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 381,
    "end": 447,
    "fields": {
      "segment": {
        "type": "Entity::Name",
        "start": 388,
        "end": 405,
        "text": "Intelligent Cloud"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 407,
        "end": 414,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Increase",
        "start": 415,
        "end": 419,
        "text": "rose",
        "value": "increase"
      },
      "amount": {
        "type": "Figure::Amount",
        "start": 423,
        "end": 439,
        "fields": {
          "currency": {
            "type": "Currency::USD",
            "start": 423,
            "end": 426,
            "text": "USD",
            "value": "USD"
          },
          "number": {
            "type": "Number::Plain",
            "start": 427,
            "end": 431,
            "text": "18.8"
          },
          "scale": {
            "type": "Scale::Billion",
            "start": 432,
            "end": 439,
            "text": "billion",
            "value": 1000000000
          }
        }
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 444,
        "end": 447,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 444,
            "end": 446,
            "text": "21"
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 449,
    "end": 510,
    "fields": {
      "entity": {
        "type": "Entity::Name",
        "start": 449,
        "end": 479,
        "text": "Azure and other cloud services"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 489,
        "end": 496,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Increase",
        "start": 497,
        "end": 503,
        "text": "growth",
        "value": "increase"
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 507,
        "end": 510,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 507,
            "end": 509,
            "text": "34"
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 536,
    "end": 554,
    "fields": {
      "metric": {
        "type": "Metric::Revenue",
        "start": 536,
        "end": 543,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Decrease",
        "start": 544,
        "end": 548,
        "text": "fell",
        "value": "decrease"
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 552,
        "end": 554,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 552,
            "end": 553,
            "text": "3"
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 557,
    "end": 635,
    "fields": {
      "entity": {
        "type": "Entity::Name",
        "start": 557,
        "end": 580,
        "text": "More Personal Computing"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 593,
        "end": 600,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Increase",
        "start": 601,
        "end": 609,
        "text": "increase",
        "value": "increase"
      },
      "amount": {
        "type": "Figure::Amount",
        "start": 613,
        "end": 628,
        "fields": {
          "currency": {
            "type": "Currency::USD",
            "start": 613,
            "end": 616,
            "text": "USD",
            "value": "USD"
          },
          "number": {
            "type": "Number::Plain",
            "start": 617,
            "end": 620,
            "text": "3.8"
          },
          "scale": {
            "type": "Scale::Billion",
            "start": 621,
            "end": 628,
            "text": "billion",
            "value": 1000000000
          }
        }
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 633,
        "end": 635,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 633,
            "end": 634,
            "text": "7"
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 637,
    "end": 682,
    "fields": {
      "entity": {
        "type": "Entity::Name",
        "start": 637,
        "end": 643,
        "text": "Gaming"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 644,
        "end": 651,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Increase",
        "start": 652,
        "end": 656,
        "text": "grew",
        "value": "increase"
      },
      "amount": {
        "type": "Figure::Amount",
        "start": 660,
        "end": 675,
        "fields": {
          "currency": {
            "type": "Currency::USD",
            "start": 660,
            "end": 663,
            "text": "USD",
            "value": "USD"
          },
          "number": {
            "type": "Number::Plain",
            "start": 664,
            "end": 667,
            "text": "2.0"
          },
          "scale": {
            "type": "Scale::Billion",
            "start": 668,
            "end": 675,
            "text": "billion",
            "value": 1000000000
          }
        }
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 680,
        "end": 682,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 680,
            "end": 681,
            "text": "9"
          }
        }
      }
    }
  },
  {
    "type": "Fact::Change",
    "start": 690,
    "end": 723,
    "fields": {
      "entity": {
        "type": "Entity::Name",
        "start": 690,
        "end": 703,
        "text": "Xbox hardware"
      },
      "metric": {
        "type": "Metric::Revenue",
        "start": 704,
        "end": 711,
        "text": "revenue"
      },
      "direction": {
        "type": "Direction::Decrease",
        "start": 712,
        "end": 716,
        "text": "fell",
        "value": "decrease"
      },
      "percent": {
        "type": "Figure::Percent",
        "start": 720,
        "end": 723,
        "fields": {
          "number": {
            "type": "Number::Plain",
            "start": 720,
            "end": 722,
            "text": "25"
          }
        }
      }
    }
  }
]

About 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.yml
  • metrics.yml
  • periods.yml
  • texomy.json
  • values.yml
  • tests/financial-reports.test.yml
  • tests/periods.test.yml
  • tests/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-reports
texomy test

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