Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for strict vs common speech modes for Number to Words #1167

Open
clairernovotny opened this issue Jan 25, 2022 · 0 comments
Open

Support for strict vs common speech modes for Number to Words #1167

clairernovotny opened this issue Jan 25, 2022 · 0 comments

Comments

@clairernovotny
Copy link
Member

clairernovotny commented Jan 25, 2022

Some languages have different ways of representing large numbers, such as en-IN. See #1164 (comment) for details:

I agree that this phenomenon (of expressing everything in terms of lakh, and crore, and not leveraging arab, kharab) is not new - this is in line with my experience, and also a couple of folks I spoke about this (to confirm my assumptions, before I posted my earlier comment) thought so as well.

It's not very different than saying that many (but not all) are familiar with quadrillion (which comes after trillion), but few rarely use it. quintillion etc. are far less known, and very rarely used. That said, the question becomes something like this - in a programming library, should one emit ten thousand trillion, or should the library emit 10 quadrillion. This is ultimately a value judgment and depends on your design principles and use-goals.

If you and @clairernovotny decide to represent everything in terms of crore, I don't think it would be wrong per-se - just a different design choice.

Perhaps what you need here is the ability to switch between strict and common speech modes, each with different outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant