I tried using the "Highlighting: Words" free format question and the method described in this post
https://legacy.sawtoothsoftware.com/forum/25611/possible-question-library-highlighting-custom-ranges-devices?show=25611#q25611
but the data isn't stored in a way that works for my needs. I need count data for each phrase so I would like the data to tell me which phrases (instead of which words) were selected. Here's an example:
<span class="highlightingSpan">Here is</span> <span class="highlightingSpan"> an example</span> of a sentence </span> <span class="highlightingSpan"> that uses phrases </span> <span class="highlightingSpan">instead of words</span>
So in this example, if I selected "an example" and "instead of words" I would like my data to show me a "[2, 5]" since I selected the second and fifth phrase.
Is this possible?