Skip to content

English Dictionary App + Game Puzzle . Search a word, idiom or phrase.

Notifications You must be signed in to change notification settings

joykangangi/En-Dictionary

Repository files navigation

En-Dictionary

English Dictionary App. Search phrases or a word

Screenshots

Light Theme Dark Theme
mainlight maindark
wordlight worddark
phraselight gamedark
fontlight historydark

Why English Dictionary

  • I recently was asked to read an excerpt in public, but I was not sure of how to pronounce some words. Unfortunately, the dictionary app that I was using then did not have phonetics.
  • Hence, the idea for creating my own version of a dictionary was born.
  • The application consumes this Dictionary API

Libraries Used:

  • Jetpack Compose - for UI creation
  • Appyx - for navigation (It is is very straightforward, no ambiguous annotations)
  • Ktor Client - for establishing a network connection between the API and the mobile client. (This too is very straightforward to write)
  • Room - for storing searched words / caching
  • Jsoup - for parsing HTML content from the API to readable text in the screen
  • Datastore-Preferences - storing / managing user preferences in the application, such as Theme Options or Font Options.

App Functionalities /how it works

  • One can search for an phrase/idiom e.g kick the bucket or a word aseity via a network.
  • One can read definitions and examples of their search queries.
  • One can read and listen to phonetics of words or phrases.
  • The app works offline with the help of caching
  • One can see and delete their search history
  • One can play a personalized word game from their search history. 😀

Useful Resources / Libraries Learnt

Challenges faced

  • Finding a free API with content I wanted.
  • Managing UI states.
  • Learning new libraries which at the time did not not have many referrals.
  • Most of the challenges were solved after trial-and-error methods OR reading through the Useful Resources.

Appyx

Model driven navigation library library that provides a declarative approach to handle navigation in your Android app. It follows the principles of the Model-View-Intent (MVI) architecture, separating the navigation logic from the UI components. The "model" refers to the destination models that represent the screens or components of your app and are used to define the navigation structure and handle navigation actions within the library.

Here's an overview of how Appyx works:

Model: Appyx uses a model to represent the navigation state of your app. This model typically consists of a back stack that holds the history of navigated screens or destinations. The model is responsible for managing the current active screen and handling navigation actions.

Node: Nodes are components in your app that represent screens, fragments, or other UI elements. Each Node is associated with a specific route or destination in the navigation structure.

Navigation Structure: The navigation structure defines all the possible screens or destinations in your app. It is often represented using a sealed class or an enum class that includes subclasses or enum values for each route.

View: The view layer observes the changes in the navigation model and updates the UI accordingly.