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

What is our API surface? #3

Open
nciric opened this issue Feb 27, 2024 · 0 comments
Open

What is our API surface? #3

nciric opened this issue Feb 27, 2024 · 0 comments
Labels
discuss Discussion item

Comments

@nciric
Copy link
Contributor

nciric commented Feb 27, 2024

We started discussing use cases and potential lexicon format in #1 . Let's move details of API design to a separate issue (this one).

From my end I see the following use cases:

  1. Inflecting a single word in a message format, from base form with provided grammatical information, e.g. icu.inflect("sr-Latn", "Beograd", options { "vocative", "singular" }) -> "Beograde" . Necessary grammatical information for "Beograd", like gender, inanimate etc, would be pulled from a lexicon.
  2. For a given word, find its lemma and grammatical info.
  3. For a word not in a lexicon, try to "guess" its inflected form, based on rules and/or similarity to other words in the dictionary.
  4. Optional - try to align multiple related words, e.g. inflect adjectives and corresponding noun to form grammatically sound whole - big red apple. In case of English reorder the adjectives?
@nciric nciric added the question Further information is requested label Feb 27, 2024
@nciric nciric added discuss Discussion item and removed question Further information is requested labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Discussion item
Projects
None yet
Development

No branches or pull requests

1 participant