finnfiddle / words-to-numbers

JS library to convert textual words to numbers with optional fuzzy text matching
MIT License
248 stars 57 forks source link

numbers like 'twenty-two million', 'two hundred fifty million' not converted correctly #25

Open unek opened 6 years ago

unek commented 6 years ago
> wordsToNumbers('twenty million')
20000000
> wordsToNumbers('twenty-five million')
5000020
> wordsToNumbers('two hundred million')
200000000
> wordsToNumbers('two hundred fifty million')
50000200
dsteinman commented 4 years ago

Use the numerizer module instead.