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
lemmawith a form that fits, each form with itsgrammar. - 404 unknown_lemma
lemmaheads 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"const params = new URLSearchParams({ "lemma": "andare", "mood": "congiuntivo", "tense": "presente", "person": "noi" });
const response = await fetch(`https://api.lexema.fyi/v1/inflect?${params}`, {
headers: { "X-API-Key": "lx_…" },
});
const data = await response.json();import requests
response = requests.get(
"https://api.lexema.fyi/v1/inflect",
params={ "lemma": "andare", "mood": "congiuntivo", "tense": "presente", "person": "noi" },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()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"
}
}
]
}