Page MenuHomePhabricator

Link adaptation - add link by auto-completion
Closed, DeclinedPublic

Description

Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/language_engineering/cards/4184

Context

Given that Wikidata provides an equivalence for Wikipedia links (e.g., Cheese - Formaggio). It is possible to guess when the user is writing the translation for a link, and suggest the creation of such link in those cases.

This will not be perfect since the translated word may be different than the Wikidata translated label (requiring the user to modify the inserted word or ignore it at all depending on the case), but it will speed up the process in many cases. There may be also problems due to the detection of word boundaries (e.g., if the user types "a " will we be able to suggest "a day in the life" if that is one of the suggestions from the source links?

Narrative

As a user<i>, I can get suggestions or creating links based on the source text</i>//<i>, so that I can add links just by typing without extra selection</i>.//

Acceptance Criteria

  • Given a link in the source English text ("Cheese"), when the user types "for" in the Italian translation, a suggested text (in grey) is shown for "formaggio".
  • If the user accepts the suggestion, a link pointing to the corresponding article (based on Wikidata) is created.
  • Suggestions for insertion are shown below the current cursor position.
  • To avoid frequent false positives, suggestions may be based on 2-3 character occurrences.
  • A link fromthe source is not suggested if it is already present in the target at any time (i.e., only the first "formaggio" will be linked, being annoying to show the next times the user writes "formaggio").

A number of linguistic features are approximated with "quick fixes":

  • Word boundary detection (simple non-internationalized regex-based approach, e.g. /[A-Za-z_]/)
  • Word stem matching in link target set (match "word" prefixes)
  • Multi-word phrase matching (match on first "word" only)
  • Likely match detection (match the first n characters in the editor after the last "word boundary")

Design details

Related Objects

StatusAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
Opensanthosh
Resolvedsanthosh
DeclinedNone
OpenNone
Resolvedsanthosh
ResolvedPginer-WMF
ResolvedNone
ResolvedAmire80
InvalidNone
OpenAmire80
DeclinedNone
ResolvedPetar.petkovic
ResolvedPetar.petkovic
ResolvedPetar.petkovic
ResolvedPginer-WMF
OpenNone
ResolvedPetar.petkovic
ResolvedPetar.petkovic
ResolvedPetar.petkovic
ResolvedPginer-WMF
Resolvedsanthosh
Resolveddchan
Resolvedsanthosh
Resolvedsanthosh
ResolvedNikerabbit
Opensanthosh
Resolvedsanthosh
ResolvedPginer-WMF
OpenNone
ResolvedPginer-WMF
InvalidNone
ResolvedPetar.petkovic
Resolvedsanthosh
Resolvedsanthosh
Resolvedsanthosh

Event Timeline

Amire80 raised the priority of this task from to Low.Feb 20 2015, 4:18 PM
Amire80 added a subscriber: Amire80.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 20 2015, 4:18 PM
Arrbee updated the task description. (Show Details)Feb 24 2015, 5:57 AM
Arrbee set Security to None.
Amire80 moved this task from Backlog to Links on the ContentTranslation-Release6 board.
Amire80 moved this task from Needs Triage to CX6 on the ContentTranslation board.Jul 3 2015, 2:45 PM
Pginer-WMF moved this task from CX6 to CX7 on the ContentTranslation board.Jul 21 2015, 4:15 PM
Amire80 moved this task from CX7 to Bugs on the ContentTranslation board.Oct 19 2015, 8:05 AM
Arrbee moved this task from Bugs to Enhancements on the ContentTranslation board.Jun 22 2018, 1:37 PM
Pginer-WMF closed this task as Declined.Jul 11 2019, 7:47 AM
Pginer-WMF added a subscriber: Pginer-WMF.

Other tickets cover simpler approaches to facilitate the addition of tickets present in the source paragraphs. In particular: