Skip to content

SuvamHere/reso-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 1, 2026
def5e33 · · Apr 1, 2026

History

2 Commits
Mar 31, 2026
Mar 31, 2026
Apr 1, 2026
Mar 31, 2026
Mar 31, 2026
Mar 31, 2026

Repository files navigation

wordsmith

A dictionary CLI built with Python and argparse, made as part of Hack Club Resolution Week 2.

Look up word definitions, quiz yourself, and track your word history — all from the terminal.

Installation

pip install -i https://test.pypi.org/simple/ resolution-week2-suvamhere==0.1.1

Usage

Define a word

# Short — first definition only
wordsmith define serendipity --short



# Full — all definitions and examples
wordsmith define serendipity --fulll

Quiz yourself

Give a word and a hint (first letter), and wordsmith will show you its definition. You get 3 attempts to guess it.

wordsmith quiz ephemeral e
🧠 Guess the word!

  Definition : lasting for a very short time
  Hint       : starts with 'e'

Attempt 1/3: 
/3: 

View history

# See all words you've looked up or quizzed
wordsmith  history


# Clear history
wordsmith  history --clear

Example session

$ wordsmith define resilient --short
📖 RESILIENT

[adjective] able to withstand or recover quickly from difficult conditions.

$ wordsmith quiz candid c

🧠 Guess the word!

  Definition : truthful and straightforward; frank
  Hint       : starts with 'c'

Attempt 1/3: honest
Wrong, try again.
Attempt 2/3: candid

✅ Correct! The word was 'candid'.

$ wordsmith history

📚 Your word history:

  1. resilient (defined)
  2. candid (quizzed)

  2. candid (quizzed)

Commands

Command Description
define --short-short Show first definition only
define --full--full Show all definitions and examples
quiz <hint> Guess the word from its definition
history View your word history
history --clear Clear all history

Built With

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages