sarathch / WordParser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WordParser

Implementation

  • Used MVP design pattern to make this app scalable considering future enhancements to this idea. Packages are explained below.

    • parse :
      • operations to lookup words from dictionary
      • reads broken input from user and fetches valid words in english
    • dict :
      • Reads english dictionary file and loads into a TRIE data structure for constant time lookup for prefixes. One time load.
      • Implements custom dictionary based on trie data structure.
    • di :
      • Implements dependency injection dagger2 logic required for application.
  • Used Dagger2 dependency injection to make this app testable.

  • Used Mockito, JUnit, RoboElectric and Hamcrest frameworks for unit testing.

  • Used Espresso for instrumentation testing.

Libraries

TODO

  • Detailed unit tests need to be added.
  • Code clean up

Author

Sarath

About


Languages

Language:Java 100.0%