Description
When we map from a lexeme from Wikidata to an instance of Z6005 / Wikidata lexeme, we need to determine the relevant language, as a ZObject of type Z60. The language field of a lexeme from Wikidata contains a QID. Because there's no perfect mapping from that field to our Z60 instances, and it would be some effort to maintain such a mapping, we currently use a heuristic that we believe will work for the vast majority of lexemes.
However, it might be good to investigate more thoroughly whether this is the best available approach.
This code is in the orchestrator, db.js, getLexemeLanguage.
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- A strategy that selects the most correct Z60/Natural language for the greatest number of lexemes.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist