<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Stefan,<div class=""><br class=""></div><div class="">Thanks for the tip - there is only one small limitation on that: it only works for single-token queries, whereas the Set context words for any query. Although a bit hacking, I managed to extend your trick to work with any query in the following way, maybe it will be helpful for others as well:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 16px; font-family: Courier;" class="">Matches = [word="des.*”] [] [];</div><div style="margin: 0px; font-size: 16px; font-family: Courier;" class="">set Matches target match;</div><div style="margin: 0px; font-size: 16px; font-family: Courier;" class="">set Matches keyword matchend;</div><div style="margin: 0px; font-size: 16px; font-family: Courier;" class="">Sent = Matches expand to sent;</div><div style="margin: 0px; font-size: 16px; font-family: Courier;" class="">tabulate Sent match .. target[-1] word, keyword[1] .. matchend word, target .. keyword word;</div></div><div class=""><br class=""></div><div class="">Maarten</div></body></html>