Page MenuHomePhabricator

Lexeme lookup when adding statements gives preferential treatment to the first lemma entered
Open, Needs TriagePublic

Description

When adding a statement which links to a lexeme, if your search matches the first lemma entered on the lexeme, none of the other lemmas are shown. If your search matches any lemma other than the first, it shows the first lemma with the lemma your search matched in brackets.

Some examples, to reproduce, start adding a statement anywhere, select a property which uses the lexeme datatype (e.g. "Sandbox-Lexeme") and then enter the search text.

L1:
Search text: "ama"
Expected: "ama/𒂼"
Actual: "ama"

Search text: "𒂼"
Expected: "ama/𒂼" or "𒂼/ama"
Actual: "ama (𒂼)"

L481:
Search text: "माता"
Expected: "माता/ماتا"
Actual: "माता"

Search text: "ماتا"
Expected: "माता/ماتا" or "ماتا/माता"
Actual: "माता (ماتا)"

L349254:
Search text: "مەن"
Expected: "مەن/men/мән"
Actual: "مەن"

Search text: "men"
Expected: "مەن/men/мән" or "men/مەن/мән"
Actual: "مەن (men)"

Search text: "мән"
Expected: "مەن/men/мән" or "мән/مەن/men"
Actual: "مەن (мән)"

I would expect:

  • to always be shown all of the lemmas
  • all lemmas to be shown in the same style, or if one is shown as primary, that it is at least one of the ones which matched the search
  • the lemmas to be in the same order they are on the lexeme, or that the lemmas which matched are shown first