Predictive text dictionary
🧠 Project Overview
This project was a uni subject task. There was a bit of souce code for a basic GUI and basic outline of souce code for the functions, but the predictive text dictionary did not work. To make this work I had to implement two methods called getMostFrequentWordWithPrefix() and readInDictionary() to make this predictive text dictionary functioning. Click the button 'Report' at the bottom of the page to see a written writeup of how these functions work and how they were implemented.
💡 Implementations I changed to make this functioning and improve user interaction
- • Improved different methods of code to make this predictive text dictionary functioning
- • Improved the GUI to have a clear text button
- • Improved the GUI to have a light and dark mode
🔧 How It Works
- • As the user types, each character triggers a prefix search in the trie.
- • The trie is searched using Depth-First Search to find the most frequent matching word.
- • If a suggestion is found, the remaining characters auto-complete the user's word.
- • The user can press Enter to accept the suggestion or continue typing to refine it.
Report