NUMATIM - Number Verbatim

Returns a given number in words. To choose a language use the -l option. Supported languages can be found in dicts. Default language is English.

This project is work in progress so if it's impossible to implement a dict for a particular language please open an issue.

Installation

cargo install numatim

TODO:

Terminology

References used for creating dicts

Structure of dicts

Dicts should have two main sections:

  1. numbers
  2. powers

If a certain number's or power's declination needs to be hardcoded it must be put inside an array. How exactly that must be done can be found in particular sections. Take a look at the dicts folder for a real life examples.

Numbers

Numbers must contain 3 arrays of strings:

Powers

Put all your powers of thousand here. Amount of them is truly arbitrary.