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

have option to send both [TERM] and [SENTENCE] to dictionary #551

Open
jzohrab opened this issue Dec 27, 2024 · 0 comments
Open

have option to send both [TERM] and [SENTENCE] to dictionary #551

jzohrab opened this issue Dec 27, 2024 · 0 comments

Comments

@jzohrab
Copy link
Collaborator

jzohrab commented Dec 27, 2024

Per discord link:

You can currently specify a dictionary as a 'Terms' or 'Sentences' dictionary. They share the same placeholder of [LUTE] for doing the lookup. I would like the ability to pass both the term AND the sentence through to my dictionary. My suggestion would be to maintain [LUTE] which would be based on the specified dictionary type and to have optional/alternative placeholders like [TERM] and [SENTENCE] that can specifically send those elements.

My use case is that I have created my own dictionary that is doing lookups with Claude. Although the definition returned for a word is correct far more often than not, there are times when a certain word might be used in a rare or colloquial way, and this can make it difficult for any dictionary to provide the proper guidance. If you could send both the clicked word and that word's sentence to the dictionary, you could get a context-aware definition that eliminates this issue.

My notes:

Right, that makes sense, context is a good clue. There will be some trickiness involved due to the way the the dictionary info is sent (i.e. it's sent both from the reading pane, as well as from the regular term form), so the information gatherer that opens the dict would need to handle the sentence not being shown, and the way that the info is sent might also need some tweaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant