Skip to content
GitHub

Malagasy data, right in one call

Spell numbers, read +261 phone numbers, format Ariary amounts and dates, and find any region, district, commune or fokontany. For JavaScript, TypeScript and PHP, with zero dependencies and the same result everywhere.

IntlNumbers, phones, money, datesNumber wordsPhone numbersAriary amountsDatesExplore the intl modules →AddressFrom regions to fokontanyPlacesExplore places →

What it writes, the Malagasy way

Amounts, phone numbers, time, numbers and dates, each said as people say them in Madagascar.

Money

An amount in digits and in words

150 000 Ar

dimy alina sy iray hetsy ariary

Phone numbers

The operator, found from the prefix

  1. +261Country code
  2. 34Operator
  3. 12 345 67Line

Yas Madagascar

Time of day

Said with the part of the day

14:30

amin'ny roa ora sy telopolo minitra tolakandro

Numbers

Built from smaller words

  • enina
  • amby
  • roapolo
  • sy
  • roa
  • arivo

Dates

Weekday and month names

Novambra23

Alatsinainy 23 Novambra 2026

Places, from region to fokontany

Pick a region, then a district, a commune and a fokontany, or let the user search by name. Every place has a code, and every code knows its parents.

MG11117110005

  1. RegionAnalamangaMG11
  2. DistrictAntananarivo AtsimondranoMG11117
  3. CommuneItaosyMG11117110
  4. FokontanyAmbodifasikaMG11117110005
A code is read from left to right: each level adds its part to the code of the level above.

Know a code, want the place and where it is

You haveMG11117
You callfindPlace('MG11117')
You getAntananarivo Atsimondrano, Analamanga

Want to go down one level, for a picker

You haveMG11
You calllistPlaces('MG11')
You get13: Antananarivo Avaradrano, Ambohidratrimo, Ankazobe, …

The user types a name, you show the best matches first

You haveitaosy
You callsearchPlaces('itaosy')
You getItaosy, Itaosy

Want one line to print, with the parents

You haveMG11117
You callformatPlace('MG11117')
You getAntananarivo Atsimondrano, Analamanga
Explore places →

Made for the things people build

Shops, forms, deliveries and paperwork: wherever Malagasy text, numbers and places show up.

Tsena KelyLaharana 2026-0042

Fitambarany150 000 Ar

dimy alina sy iray hetsy ariary

✓ Voaloa

Online shop

Invoices that read the amount aloud

034 12 345 67Yas

032 12 345 67Orange

033 12 345 67Airtel

039 12 345 67Blueline

Sign-up form

Phone numbers checked as people type

  1. RegionAnalamanga
  2. DistrictAntananarivo Atsimondrano
  3. CommuneItaosy
  4. FokontanyAmbodifasika

Delivery

From a code to a full address

Zoma 26 Jona 2026

09:30

26 Jona 2026 amin'ny sivy ora sy telopolo minitra maraina

Official paper

Dates written in full

7h15

amin'ny fito ora sy dimy ambin'ny folo minitra maraina

Reminders

Times said aloud, with the part of the day

7hamin'ny fito ora maraina

17hamin'ny dimy ora tolakandro

Opening hours

Schedules written the Malagasy way

See the guides →
  • Zero dependencies
  • 100% test coverage
  • The same test vectors in JavaScript and PHP

Built in the open

Every list, rule and word comes from a public source and is open to your corrections. Here is what is happening across the project.

  • 11Repositories
  • 230Commits
  • 330Merged pull requests
  • 1Contributors
  • 30Stars
  • 0Open issues

Latest activity

  1. chore: release 0.1.0 #2Merged
  2. v0.11.0Release
  3. chore: release packages #1Open
  4. chore: point the spec at the merged spec commit #3Merged
  5. chore: point the spec at the merged spec commit (#3)
  6. chore: point the spec at the merged spec commit #5Merged
  7. chore: point the spec at the merged spec commit (#5)