You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
For a given word, find its lemma and grammatical info.
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.
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?
The text was updated successfully, but these errors were encountered:
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:
icu.inflect("sr-Latn", "Beograd", options { "vocative", "singular" }) -> "Beograde"
. Necessary grammatical information for "Beograd", like gender, inanimate etc, would be pulled from a lexicon.The text was updated successfully, but these errors were encountered: