get_variant
Convert Icelandic words to specific grammatical forms like cases, tenses, or numbers using standard grammatical tags from the Database of Icelandic Morphology.
Instructions
Get a specific grammatical variant of an Icelandic word.
This converts a word to a different case, number, person, tense, etc.
For example, convert "hestur" to dative plural, or "fallegur" to superlative.
Args:
word: The base word to convert (e.g., "hestur", "fallegur", "fara")
word_class: The word class to disambiguate the word. Common values:
- "kk" (masculine noun), "kvk" (feminine noun), "hk" (neutral noun)
- "no" (any noun)
- "so" (verb)
- "lo" (adjective)
target_form: List of grammatical feature tags to request. Examples:
- ["ÞGF"] - dative case
- ["ÞGF", "FT"] - dative plural
- ["NF", "FT", "gr"] - nominative plural with definite article
- ["nogr"] - indefinite form (no article)
- ["EVB", "KVK"] - superlative weak form, feminine
- ["FH", "NT", "3P"] - indicative, present tense, 3rd person
Returns:
A dict with:
- variants: List of matching variants, each with inflection_form,
grammatical_tag, and lemma
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | Yes | ||
| word_class | Yes | ||
| target_form | Yes |