mholtzscher / syllapy

Calculate syllable count for English words.
MIT License
34 stars 9 forks source link

Load the dictionary of exceptions as a CSV instead #85

Closed harrisj closed 4 years ago

harrisj commented 4 years ago

I think a large JSON file is hard to maintain and edit and the structure of this file is simple enough that a CSV will do. This is some code to load the dictionary of exceptions as a CSV. Next I would like to modify it so user can amend with their own list of additional exceptions.

mholtzscher commented 4 years ago

My only concern with changing this is performance. I think the csv should be fine but I'd like to run a few perf tests to double check it

harrisj commented 4 years ago

If performance is a concern, I would like to ask if the JSON can be split over multiple lines to make it easier to review additions to the syllabification exceptions?