Page MenuHomePhabricator

SERP widget for Wiktionary - getting it ready for A/B (or beta) test on enwiki
Open, MediumPublic

Description

We'd like to use a widget that @Jdrewniak has been working on - as a beta (test) for English Wikipedia. This widget is using an experimental API that displays a definition from English Wiktionary, based on the query imputed and is only displayed on the search engine results page (SERP) if a definition is found.

To view this widget - add in the following to your common.js file on en.wiki:

importScript( 'User:JDrewniak_(WMF)/wiktionaryDefinitionInSearchResults.js' ); Backlink: [[User:JDrewniak_(WMF)/wiktionaryDefinitionInSearchResults.js]]

Before this widget can get to a full beta status, there are a few things we'd like to update:

  • add link to the actual definition shown by using the 'Definition' word as the link
  • add link to a search results page on wiktionary.org for all results for the definition, using the 'wiktionary.org' word as the link
  • wiktionary.org experimental API might need to be updated to:
    • expose the obsolete flag so that we can disregard that entry (and not display obsolete entries)
    • display the most common definition
  • when displayed with the sister project search results, don't have the sister project results pushed down the page on the right hand side:

  • also, there is a known issue where the wiktionary widget displays (oftentimes) a different definition than what we show in the sister project search results. This is because the experimental API for the wiktionary widget displays the first result it finds and the sister project search results displays the top ranked/used definition. Let's see if we can get these definitions synced up. Here's a screenshot of an example:

Event Timeline

debt created this task.Mar 14 2017, 4:56 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 14 2017, 4:56 PM
debt renamed this task from SERP widget for Wiktionary - getting it ready for a beta test on enwiki to SERP widget for Wiktionary - getting it ready for A/B (or beta) test on enwiki.Mar 21 2017, 4:21 PM

I've created a test account on enwiki for usertesting.com and testing will begin in the next week or so; we'll commence an A/B test soon as well.

debt added a comment.Aug 24 2017, 4:43 PM

We're taking a look at this—to see if we can possibly add it as a gadget for users to turn on in their preferences.

Moving this to the backlog for now, as other priorities have surfaced.