LexemaDevelopersSign in

Inflect a lemma

GEThttps://api.lexema.fyi/v1/inflect

The forms of lemma at the places the grammar parameters name; every form when none is sent.

Query parameters

  • lemmastringrequired

    A headword, 1 to 128 characters.

  • moodstring

    Only a verb's forms of this mood.

  • tensestring

    Only a verb's forms of this tense.

  • personstring

    Only a verb's forms of this person.

  • genderstring

    Only the grid's row of this gender.

  • numberstring

    Only the grid's column of this number.

Responses

  • 200

    One result per record headed by lemma with a form that fits, each form with its grammar.

  • 404 unknown_lemma

    lemma heads no record of the release.

Request

curl -G -H "X-API-Key: lx_…" \
  --data-urlencode "lemma=andare" \
  --data-urlencode "mood=congiuntivo" \
  --data-urlencode "tense=presente" \
  --data-urlencode "person=noi" \
  "https://api.lexema.fyi/v1/inflect"

Response

200
{
  "lemma": "andare",
  "release_id": "it-0c432803",
  "results": [
    {
      "id": "it-0c432803:2345",
      "word": "andare",
      "pos": "verb",
      "pos_title": "Verbo",
      "inflections": [
        {
          "grammar": {
            "mood": "congiuntivo",
            "tense": "presente",
            "person": "noi"
          },
          "forms": ["andiamo"]
        }
      ],
      "attribution": {
        "licence": "CC BY-SA 4.0",
        "licence_url": "https://creativecommons.org/licenses/by-sa/4.0/",
        "source": "Wikizionario",
        "source_url": "https://it.wiktionary.org/wiki/andare"
      }
    }
  ]
}