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

Standardize support for inflection across ICU APIs #23

Open
richgillam opened this issue Mar 18, 2024 · 0 comments
Open

Standardize support for inflection across ICU APIs #23

richgillam opened this issue Mar 18, 2024 · 0 comments
Labels
discuss Discussion item

Comments

@richgillam
Copy link

ICU has APIs to vend a lot of different strings that might end up being put into the middle of a sentence and needing to be inflected for the context. Examples include:

  • Language, region, and script names (etc.)
  • Month and and day names (and possibly other parts of a date or time)
  • Formatted dates containing words (e.g., "24 de Diciembre")
  • Formatted dates containing (or potentially containing) ordinal numbers ("1er de Avril")
  • Dimensioned numbers ("6 feet 3 inches" or "12 pts")
  • Currency names and currency values
  • Person names
  • Spelled-out quantities ("One hundred twenty-four")

In addition to grammatical inflection, we might also need to care about capitalization and punctuation (e.g., "Your pizza will be ready in 3 min.." if the abbreviation is handled naively).

Support for inflection in the different APIs involved varies widely and isn't expressed in the same way everywhere it is supported. We need to support the same feature set across all relevant parts of API and standardize on one way of expressing these concepts in the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Discussion item
Projects
Status: Todo
Development

No branches or pull requests

2 participants