ai-dictionary
v0.0.5
Published
Ask AI to explain the word in sentence and save definition to Anki.
Maintainers
Readme
AI Dictionary
Ask AI to explain the word in sentence and save definition to Anki.
Ask AI to explain the word in sentence
Requirements
- Node.js >=20.12.0
- LLM API Key
Usage
- Open terminal, set environment variables
- OpenAI, Deepseek, etc.
export OPENAI_BASE_URL=https://api.deepseek.com/v1; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=deepseek-r1 - Ollama
export OPENAI_BASE_URL=http://localhost:11434/v1; export OPENAI_API_KEY=ollama; export OPENAI_MODEL=gemma3:27b
- OpenAI, Deepseek, etc.
- Run command
npx ai-dictionary - Paste sentence and word into command line
- press
Enterto ask AI - press
Ctrl+Lto clear console - press
Ctrl+Cto exit program
- press
Example
Save definition to Anki
Requirements
- Anki Desktop
- AnkiConnect
Usage
- Open Anki, create deck
AI Dictionary.
- Click
Tools->Manage Note Typesfrom Anki menu, add note typeAI Dictionary.
- Add card template.
