four-d-tesseract / EtymologyMarker

This program looks up the etymologies of words in a text file and color-codes the words according to their origin. It allows a writer to view the register of her writing at a glance.
MIT License
15 stars 2 forks source link

Housecleaning #1

Closed ghost closed 8 years ago

ghost commented 8 years ago

Updated the conditional loops to be more pythonic and readable, also changed the open/write calls to work with Python 2.7 (version I'm using, these bits aren't that important and can be reverted back).

Want to make it more scalable for more etymologies, i.e. have "for x in languageList: print ..." kind of statements, and have languageList populate based on the unique languages it finds in the dictionary, so that you don't need to continually update the code to accommodate new languages as you add them, just the dictionary file it references.

Taking baby steps towards this by creating a dictionary with languages and word counts, and with colours.