[Project Enhancement] Contextual Definitions
Created by: tayjaybabee
Is your feature request related to a problem? Please describe. #113 (closed)
Describe the solution you'd like Instead of just stripping the <xref> tags from the returned definition, why not make use of them? What if the Dictionary plugin reads for those <xref> tags, and when it finds one it remembers it, assigns it an integer, and puts a [<NUM>] tag after the word. Then one could use an additional command to follow up, and ask the bot to define tagged words.
Additional context I imagine each tagged word, and their assigned index integer could be saved in an array of words and then the bot could just use the array's included index as the reference number (offset +1).
<taylor> !define junk <Eve> junk: (noun) - A Chinese[1] sailing[2] vessel[3] <Eve> junk: (noun) - Discarded[4] or waste[5] material; rubbish[6], trash[7]. <taylor> !define-3 <Eve> vessel: (noun) - A general term for all kinds of craft designed for transportation on water, such as ships[1] or boats[2]