LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading.
https://luteorg.github.io/lute-manual/
MIT License
491 stars 46 forks source link

Add AI context-aware explanation #519

Open cyugao opened 3 days ago

cyugao commented 3 days ago

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

This will be a very useful feature since a word can have different meanings depending on the surround context.

Describe the solution you'd like

Similar to https://readlang.com/, a tab that shows AI explanations. Users can choose to enable the feature and provide their own API keys (or even custom prompts). Support common AI APIs like openai, gemini, Claude. The author can also provide a preconfigured service that charges a small fee monthly.

Additional context

See https://github.com/tisfeng/Easydict for reference on how they integrate AI.

I might be able to help implement some features.