Make your user interface more human friendly!
This library provides functionality for both formatting values into human friendly forms as well as parsing human input to get back likely values.
Actually, the formatting isn't implemented yet. Contributions are welcome!
This library is inspired by many other things, including:
Contributions extending our functionality are welcome, as are contributions that add support for additional languages.
When dealing with humans, you often want them to be able to
input values in a flexible manner. For example, you might want
to be able to input a
bool using text like
"no" or perhaps even
let enabled = humanize::parse::<bool>("on").unwrap_or(false); assert_eq!(enabled, true);
- Actually implement formatting.
Construct a value by parsing humanized text.
Construct a value by parsing humanized text using the specified language.