while reviewing https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1083137 we identify a few opportunities to improve the consistency of the search results being display by the wikidata item, lexeme, and lexeme form lookups.
specifically, there is an opportunity to use the built-in codex MenuItem properties (label, supporting text, description, ...) to display those results more consistently.
for wikidata items the wikidata API returns the
- item name
- item description
for wikidata lexemes the API returns
- lexeme name
- lexeme language, lexeme lexical category
for wikidata forms the API returns
- form name
- form grammatical features for: lexeme (lexeme id): form language, form lexical category*
*unsure if the lexical category refers to the lexeme or lexeme form.
if we would rely on the MenuItem properties, and the supporting text prop, we could display results like the following:
for lexemes:
- lexeme name (lexeme language)
- lexeme lexical category
for lexemes forms:
- form name (form language)
- form lexical category, form grammatical features for: lexeme