number-names 0.1.2

Number names is a Rust library to provide formatted string names for cardinal and ordinal numbers.
Documentation

Number Names

build License codecov

Number names is a Rust library to provide formatted string names for cardinal and ordinal numbers.

At this time, only American English is supported, but there are future plans for i18n.

Example usage:

use number_names::NumberName;

assert_eq!(NumberName(10).cardinal(), "ten");
assert_eq!(NumberName(10).ordinal(), "tenth");

Contributing

As this is my first project in Rust, I'm sure there are significant improvements to be made in both the algorithms and implementation. I will gladly accept any constructive criticisms, suggestions or pull requests that make this small project more efficient or accurate.

Roadmap

  • Cover all integer sizes (currently works up to u64)
  • Include negative numbers
  • Refactor to allow third-party language contributions