Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Project Enhancement] Contextual Definitions #114

Open
tayjaybabee opened this issue Aug 24, 2019 · 1 comment
Open

[Project Enhancement] Contextual Definitions #114

tayjaybabee opened this issue Aug 24, 2019 · 1 comment
Assignees
Labels
enhancement Feature Request: Review Later This is what the Core Programming Team will tag a Feature Request with if they're considering them. new feature Testing Viability This is an enhancement that is being examined for viability/plausibility. (Usually on Dev Branch)
Milestone

Comments

@tayjaybabee
Copy link
Contributor

Is your feature request related to a problem? Please describe.
#113

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]

@tayjaybabee tayjaybabee added enhancement Testing Viability This is an enhancement that is being examined for viability/plausibility. (Usually on Dev Branch) Feature Request: Review Later This is what the Core Programming Team will tag a Feature Request with if they're considering them. new feature labels Aug 24, 2019
@tayjaybabee tayjaybabee changed the title [Project Enhancement] [Project Enhancement] Contextual Definitions Aug 24, 2019
@tayjaybabee
Copy link
Contributor Author

Removing @doubledave as an assignee, taking ownership.

Reason: I already have an idea of how to code this in my head. He does not. Therefore it would be less of a total expense of effort for me to do it.

@tayjaybabee tayjaybabee added this to the 6.9 milestone Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Request: Review Later This is what the Core Programming Team will tag a Feature Request with if they're considering them. new feature Testing Viability This is an enhancement that is being examined for viability/plausibility. (Usually on Dev Branch)
Projects
None yet
Development

No branches or pull requests

2 participants