by albertzeyer · 6y ago · 0 comments
For Python, for English, there is the inflect library: https://pypi.org/project/inflect/
Aside, this is why French style punctuation with a space before ? or ! is superior.
I am implementing the XPath standard. The standard says there need to be a function to convert integers to English, but it does not specify an upper limit on the integers
Out of curiosity, what part of the spec does that implement? Is it to do with fn:format-integer.
CL-USER> (format t "~r" 4096)
four thousand ninety-sixLots of fun edge cases to handle.