words-to-numbers icon indicating copy to clipboard operation
words-to-numbers copied to clipboard

JS library to convert textual words to numbers with optional fuzzy text matching

Results 19 words-to-numbers issues
Sort by recently updated
recently updated
newest added

For those with issues, I created a fork where numbers are parsed more correctly: https://github.com/IndyVC/multilingual-number-parser Also supports dutch atm, feel free to suggest new languages.

With impliedHundreds set to false, i am getting the below translated wrong: thirty five thousand is coming back as 5030 forty three thousand as 3040 This is pretty standard expression...

`babel-runtime` is used in the development of this package, but this package doesn't depend on babel-runtime at runtime.

[This package](https://www.jsdelivr.com/package/npm/words-to-numbers) doesn't have a [default file](https://www.jsdelivr.com/features#publishing-packages) set. You can set it via `jsdelivr`, `browser`, or `main` field in `package.json`

I recently needed something like this library. My use-case is converting numeric sentences from speech-recognition libraries (like [PocketSphinx.js](https://github.com/syl22-00/pocketsphinx.js)). Unfortunately, after surveying this library, I had several concerns and unaddressed wants:...

sadly words-to-numbers uses "clj-fuzzy" a module that attaches a new function, called "s" to the Date prototype this explains some of the other issues here, and it makes this module...

as the title says, i tried using it with `ionic framework` and it compiles with uglify where it doesnt work!

``` > wordsToNumbers('twenty million') 20000000 > wordsToNumbers('twenty-five million') 5000020 > wordsToNumbers('two hundred million') 200000000 > wordsToNumbers('two hundred fifty million') 50000200 ```