afonsof / multilingual-number-parser

Parse written text as numbers e.g. five thousand three hundred fifty two = 5352

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multilingual-number-parser

This project started as a need for Metamaze where we parse words to actual numbers.

First relied on words-to-numbers but it couldn't handle multiple languages. So based on the existing code base I've rewritten the parser so it can support multiple languages.

This parser is also able to succeed in tests which words-to-numbers couldn't.

Feel free to open issues/PR's to support other languages!

This wasn't possible without the authors of words-to-numbers.

See the tests folders on how to use this package.

Supported languages

  • English
  • Dutch
  • Portuguese

Feel free to open issues to support more languages.

About

Parse written text as numbers e.g. five thousand three hundred fifty two = 5352

License:MIT License


Languages

Language:TypeScript 100.0%