[go: up one dir, main page]

Page MenuHomePhabricator

Improve consistency of Wikidata items, lexemes, and forms search results
Open, MediumPublic

Assigned To
None
Authored By
AAlhazwani-WMF
Tue, Nov 5, 11:50 AM
Referenced Files
F57682818: image.png
Tue, Nov 5, 11:50 AM
F57682815: image.png
Tue, Nov 5, 11:50 AM
F57682809: Arc 2024-11-05 12.21.17.png
Tue, Nov 5, 11:50 AM
F57682799: Arc 2024-11-05 12.21.12.png
Tue, Nov 5, 11:50 AM
F57682798: Arc 2024-11-05 12.21.06.png
Tue, Nov 5, 11:50 AM

Description

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

Arc 2024-11-05 12.21.06.png (1×644 px, 129 KB)

for wikidata lexemes the API returns

  • lexeme name
  • lexeme language, lexeme lexical category

Arc 2024-11-05 12.21.12.png (900×646 px, 71 KB)

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.

Arc 2024-11-05 12.21.17.png (1×650 px, 134 KB)

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

image.png (130×328 px, 11 KB)

for lexemes forms:

  • form name (form language)
  • form lexical category, form grammatical features for: lexeme

image.png (120×486 px, 17 KB)