Lemmatize a form
GEThttps://api.lexema.fyi/v1/lemmatize
The lemma of each /lookup candidate, and where q sits in its forms.
Query parameters
qstringrequired
The word, 1 to 128 characters.
Responses
- 200
resultsholds one lemma per candidate. - 404
The word is not in the release;
resultsis empty.
Request
curl -G -H "X-API-Key: lx_…" \
--data-urlencode "q=andavano" \
"https://api.lexema.fyi/v1/lemmatize"const params = new URLSearchParams({ "q": "andavano" });
const response = await fetch(`https://api.lexema.fyi/v1/lemmatize?${params}`, {
headers: { "X-API-Key": "lx_…" },
});
const data = await response.json();import requests
response = requests.get(
"https://api.lexema.fyi/v1/lemmatize",
params={ "q": "andavano" },
headers={ "X-API-Key": "lx_…" },
)
data = response.json()Response
200{
"query": "andavano",
"release_id": "it-0c432803",
"results": [
{
"id": "it-0c432803:2345",
"lemma": "andare",
"pos": "verb",
"pos_title": "Verbo",
"match": {
"surface": "andavano",
"via": "form_of",
"grammar": [
{
"mood": "indicativo",
"tense": "imperfetto",
"person": "loro"
}
]
},
"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"
}
}
]
}