mholtzscher / syllapy

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

Capitalized words in load_dict() are not found #57

Closed manestay closed 6 years ago

manestay commented 6 years ago

Description

Words such as 'Ohio' and 'Norway' exist in dict returned from load_dict(). However, when you call syllapy.count('Ohio'), the count() function converts it to lowercase, so it is not found in the dictionary, and 2 is returned instead of the value of 3 in the dict.

mholtzscher commented 6 years ago

Thanks for bringing this to my attention. I thought I had lowercased all the words in the dataset but apparently I missed that. I will lowercase the dataset and get a new release out this week

mholtzscher commented 6 years ago

I released 0.5.0 which should solve this @manestay

manestay commented 6 years ago

Great! Thanks a lot.