Skip to content

Features

Sebastian edited this page Jun 25, 2020 · 4 revisions

TXT to JSON Conversion

  • Input is a .txt file, containing words separated by a newline
  • For each word, 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 JSON object
    • The result is stored into a list
    • The progress of conversion should be displayed in the same line
  • The list of JSON objects are dumped into .json file

Progress Display

The progress should be displayed according to the following format

(items_done/total_items (percent_done%)) Last processed is word

Word Editing

  • The txt file should be editable
    • Permitted operations: add, delete, and lookup
      • Add operations should add a new word if the word is not in the file
      • Delete operations should remove a word if the word is in the file
      • Lookup operations should tell if the word is in the file

Clone this wiki locally