A command-line thesaurus and dictionary that combines Merriam-Webster and Wiktionary APIs for comprehensive word data.
- Definitions: High-quality definitions from Merriam-Webster
- Pronunciation: IPA pronunciation from Wiktionary
- Synonyms: Related words from Merriam-Webster thesaurus
- Origin/Etymology: Word origins from Merriam-Webster (when available)
- Examples: Sample sentences from Wiktionary
- Install Deno: https://deno.land/#installation
- Get API Key: Register for a free Merriam-Webster API key at https://dictionaryapi.com/register/index
- Clone/Download: Get the
main.tsfile - Add API Key: Edit
main.tsand replace"YOUR_API_KEY_HERE"with your key
deno run --allow-net main.tsEnter words one per line. Press Enter on an empty line or Ctrl+D to exit.
Example:
Welcome to the Hybrid Thesaurus (Merriam-Webster + Wiktionary)!
Enter words (one per line). Press Enter on empty line or Ctrl+D to exit.
hello
Word: hello
Pronunciation: /həˈləʊ/
Synonyms: greeting, salutation, salute, welcome
Origin: Not available
Examples:
- Hello, everyone.
Definitions:
1. an expression of goodwill upon meeting
apple
[results for apple...]
- Primary Data: Definitions, synonyms, and etymology from Merriam-Webster's APIs
- Fallback Data: Pronunciation and examples from Wiktionary when Merriam-Webster doesn't provide them
- Async Processing: Handles input asynchronously for smooth CLI experience
- Deno runtime
- Internet connection
- Free Merriam-Webster API key
This project uses free APIs from Merriam-Webster and Wiktionary. Please respect their terms of service.