Skip to content
GitHub

Getting started

Changelog

What changed in each version of the spec, the behaviour every package implements.

Each entry is a spec version: the rules, data and test vectors every package implements. Package releases (npm, Packagist) follow it and list their own changes in their CHANGELOG.md. See Versioning for what each kind of number means.

Breaking marks an output that changes for an input that worked before.

  • phone: New prefix 035 for Airtel Madagascar, on sale since 22 June 2026: 035 12 345 67 → operator airtel instead of UNKNOWN_OPERATOR.
  • phone: Breaking: Telma is now Yas Madagascar (since 26 November 2024). The operator id telma is now yas, named Yas Madagascar; PHP Operator::Telma is now Operator::Yas.
  • phone: 036, announced by Yas without a published source yet, stays UNKNOWN_OPERATOR and is listed under Waiting for a source.
  • words: Breaking: spells numbers of any size. lavitrisa takes a count of any size, so 10¹² is arivo lavitrisa instead of OUT_OF_RANGE. Each language stops at its largest exact number.
  • words: Decimals, read with faingo: 3.14 → telo faingo efatra ambin'ny folo, 0.008 → aotra faingo aotra aotra valo. PHP adds NumberWords::fromFloat().
  • words: New section listing what waits for a source or an expert: negative numbers, and the old names for 10⁷ and above.
  • ariary: Breaking: no more 999 999 999 999 cap, and decimal amounts after a comma: Ar 1 500,5. PHP adds Ariary::fromFloat(); $amount is int|float.
  • ariary: Breaking: parseAriary('1,500') reads 1.5 instead of throwing INVALID_FORMAT. For English-style text, pass { grouping: 'comma', decimal: 'dot' }.
  • ariary: New grouping: comma and decimal options for formatting and the three parsers; the defaults stay Malagasy.
  • ariary: Breaking: FMG conversion is exact in decimal and accepts any francs: fmgToAriary(7501) → 1500.2 instead of OUT_OF_RANGE; ariaryToFmg(0.07) → 0.35.
  • ariary: Points under review: the default reading of 1,500, rounding of very long decimals, and formatted text longer than the 32-character reading limit.
  • words: Breaking: a count of one is bare only for arivo: 10 000 → iray alina, 1 000 000 → iray tapitrisa; 1 000 stays arivo.
  • words: Breaking: hundreds from 200 join with sy at every size (205 → dimy sy roanjato), and 11–19 use ambin'ny (11 → iraika ambin'ny folo).
  • spec: Breaking: modules moved to modules/ and schemas to schemas/. Adds the ariary and date modules.
  • spec: First spec: shared error codes and schemas, the words and phone modules.