Skip to content

kamildemocko/goendic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go English Dictionary

simple English cli dictionary, that uses en-word.net database of english words

Features

  • Fast English word lookup
  • Supports both exact matching and prefix matching
  • Displays definitions and example usage
  • Checks if new DB is available
  • Offline access after initial download

Installation

go install github.com/kamildemocko/goendic/v2/cmd/endic@latest

Usage

endic [OPTIONS] WORD

Options

  • -e: Use exact matching (default: prefix matching)
  • -l: Return all results (default: limited to 10)
  • -u: Force to update database
  • -d: Debug mode (hidden in usage)

Examples

# Search for words starting with "happy"
goendic happy

# Search for exact word "happy"
goendic -e happy

# Show all results for words starting with "happy" instead of showing just first 10
goendic -l happy

Screenshot

image

How it works

  1. Downloads English dictionary data from en-word.net
  2. Stores data in a local SQLite database with FTS5 for fast text search
  3. Provides command-line interface for word lookups

License

MIT

About

simple English cli dictionary, that uses en-word.net database of english words

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages