Skip to content

Features

Sebastian edited this page Jul 6, 2020 · 4 revisions

Processing String to Word Object

  • Input comes from a .txt file, containing words that are separated by a newline
  • For each word string, the app makes an API call to the Urban Dictionary API
    • The definition and the example sentence are extracted from the response
    • Together with the word, they are compiled into a Word object
    • The result is stored into a list
    • The progress should be displayed in the same line
  • The list of Word objects are dumped into .txt file

Progress Display

The progress is displayed with the following format

██████░░░░░░ (items_done / total_items) | Last finished the word word.

Word String Set Editing

  • The txt file should be editable
    • Permitted operations: add, delete, and check
  • Changes to the set should also be propagated to the input txt file

ADD operations

  • This operations should add a new word if the word is not in the set
    • The new word should be a single word
    • The new word should not contain special characters

DELETE operations

  • This operations should remove a word if the word is in the set

CHECK operations

  • This operation should tell if the word is in the set

Clone this wiki locally