Tooltips in choice interface

Hello!

I've been using Prodigy with a small team of annotators, and it's been a greatly positive experience. However, some annotators have requested the ability to hover over choice interface options to see an expanded definition of that choice.

For example, the task configuration might go from

{
  "text": "Pick the odd one out.",
  "options": [
    {"id": "BANANA", "text": "🍌 banana"},
    {"id": "BROCCOLI", "text": "🥦 broccoli"},
    {"id": "TOMATO", "text": "🍅 tomato"}
  ]
}

to

{
  "text": "Pick the odd one out.",
  "options": [
    {"id": "BANANA", "text": "🍌 banana", "on_hover": "A banana is a yellow fruit."},
    {"id": "BROCCOLI", "text": "🥦 broccoli", "on_hover": "Broccoli is a green vegetable."},
    {"id": "TOMATO", "text": "🍅 tomato", "on_hover": "Weirdly, a tomato is a fruit, too."}
  ]
}

Where hovering over an option provides the additional description.

I do not see an easy way to implement this myself, which is why I'm throwing out a feature request. However, if there's something I'm missing, I'd be grateful to know of it.

Thank you!

Hi! There's no built-in feature for hover text or a title tooltip at the moment, but as of v1.11, Prodigy supports an optional value "meta" that's displayed next to the options in a smaller font size. So using your example, the result would look like this:

That's excellent! Thank you for your fast and helpful reply.