We should try to make each of the different types of numbers defined in their own file, so it is easy to add future kinds of numbers.
This "number standardizing" step can happen after the preprocessing step, but before the conversion step to simplify our conversion number regexes.
We can ignore conversions like "5 foot 2 inches" for now, and put that back in a separate issue (changing when the "preproccess" for each individual conversion is done)
Create a module with a function that takes in a string (with numbers), and return an object that contains an array of
For example, input: "10,001 miles -4.56 foobar" Should return output:
Number types supported, to start:
We should try to make each of the different types of numbers defined in their own file, so it is easy to add future kinds of numbers.
This "number standardizing" step can happen after the preprocessing step, but before the conversion step to simplify our conversion number regexes.
We can ignore conversions like "5 foot 2 inches" for now, and put that back in a separate issue (changing when the "preproccess" for each individual conversion is done)