-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ordinal Generator #99
Comments
Gonna have to cc @SkyezerFox for this one. ICU4J looks incredibly powerful and could be used to our benefit elsewhere in the future, imo, but I'm not sure if pulling in an additional dependency is optimal if we're only using it for this one small thing. |
We should consider where ICU4J can be used, and, if there is enough, use it directly, and implement it. |
👍 |
This is maybe 6 lines of code. No deps needed. |
Added an ordinal generator in commit f495c46 - comments appreciated. |
Is your feature request related to a problem? Please describe.
As a plugin developer, I want to call a function to find the correct ordinal for an individual number in an ordered list - e.g.
ordinal(3) -> 3rd
orordinal(3) -> 'rd'
- so that I can easily ensure my ordered lists are grammatically correct without manually duplicating the logic calls for finding the correct value each time.Describe the solution you'd like
A method, either on the existing
NumberUtil
, or as part of the newmath
module to perform this function.The text was updated successfully, but these errors were encountered: