Page MenuHomePhabricator

Link cards are not showing equivalent articles
Closed, ResolvedPublic1 Estimated Story Points

Description

When a word in the translation area is selected, link cards may appear.
#The target link card should show an article that has the same title as the selected text.
#The source link card should show the equivalent article to (a) based on Wikidata equivalences. This is currently not happening.

It seems that the source link card is shown based on a text search for the title which leads to unexpected results. For example:

  1. Translate any article from Spanish to Catalan
  2. Clear the initial automatic translation and write "cama" ("cama" means "leg" in Catalan and "bed" in spanish).
  3. Select the text and observe that two articles are shown in link cards.
  4. Open both articles and for each article go to the English version.
  5. Observe that you get two different articles ("Bed" and "leg") which should not be the case.

Screenshot below:

Screen_Shot_2015-01-07_at_10.01.11.png (212×779 px, 36 KB)

The expected behaviour would be to see "pierna" (leg in Spanish) as source link and "cama" (leg in Catalan) as target link.

Related issues

  • This may be also the cause of another issue: when selecting text in the target area the source link card is not shown despite an article existing. I imagine that looking for title match instead of equivalence is the root of the problem.
  • Note that the behaviour of selecting an existing link on the translation area seems to also work inconsistently since the source link card is only shown if the link exist on the equivalent source paragraph.

Event Timeline

Pginer-WMF raised the priority of this task from to Needs Triage.
Pginer-WMF updated the task description. (Show Details)
Pginer-WMF edited projects, added LE-Sprint-81; removed LE-Sprint-80.
Pginer-WMF set Security to None.
santhosh moved this task from Done to Backlog on the LE-Sprint-81 board.
Amire80 triaged this task as High priority.Jan 15 2015, 8:54 AM
gerritbot subscribed.

Change 188703 had a related patch set uploaded (by Jsahleen):
Link Adaptation: Adapt links if no corresponding link found

https://gerrit.wikimedia.org/r/188703

Patch-For-Review

Change 188703 merged by jenkins-bot:
Link Adaptation: Adapt links if no corresponding link found

https://gerrit.wikimedia.org/r/188703