A fast, text-UI slang dictionary featuring add/search/list and prefix-based lookup β all backed by a compact Trie for efficient string storage and retrieval.
Boogle is a console application written in C that acts as a slang dictionary.
Users can add words with descriptions, search exact matches, list all entries, and discover words by typing a prefix and seeing live matches.
The UI is fully keyboard-driven and optimized for speed.
- β Insert new slang terms with short descriptions (validated: lowercase, no spaces)
- π Search for words directly
- π List all slang terms in alphabetical order
- β¨ Prefix Search β instantly show suggestions as you type
- π§© Built using a Trie Data Structure for fast lookups
- πΎ Lightweight & memory-efficient (pure C implementation)
Each Trie node contains:
children[26]β pointers for each lowercase alphabetbool isEndOfWordβ marks the end of a valid wordchar description[100]β stores the slang definition
| Operation | Description |
|---|---|
insert(word, description) |
Inserts a slang term and saves its meaning |
search(word) |
Finds a slang term in the dictionary |
traverse(root) |
Displays all words & their meanings |
displayWordsByPrefix(prefix) |
Displays all slang terms starting with a given prefix |