Title: | Convert Words to Numbers in Multiple Languages |
---|---|
Description: | Converts written out numbers into their equivalent numbers. Supports numbers written out in English, French, or Spanish. |
Authors: | Chris Hartgerink [rev] , Joshua W. Lambert [ctb] , Karim Mané [ctb] , Hugo Gruson [aut] , Bankole Ahadzie [aut, cre, cph] |
Maintainer: | Bankole Ahadzie <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.1 |
Built: | 2024-10-28 21:16:45 UTC |
Source: | https://github.com/epiverse-trace/numberize |
The range of words supported is between zero and nine hundred and ninety nine trillion, nine hundred and ninety nine billion, nine hundred and ninety nine million, nine hundred and ninety nine thousand, nine hundred and ninety nine
numberize(text, lang = c("en", "fr", "es"))
numberize(text, lang = c("en", "fr", "es"))
text |
String vector of spelled numbers in a supported language. |
lang |
The text's language. Currently one of |
A numeric vector.
# convert to numbers a scalar numberize("five hundred and thirty eight") # convert a vector of values numberize(c("dix", "soixante-cinq", "deux mille vingt-quatre"), lang = "fr")
# convert to numbers a scalar numberize("five hundred and thirty eight") # convert a vector of values numberize(c("dix", "soixante-cinq", "deux mille vingt-quatre"), lang = "fr")