Closed wassname closed 8 years ago
This turned out to be a tricky issue. The code was cutting off everything after the second '#'--the end of the first word. These multi-word entries are relevant because they may showcase stress shift phenomena or perhaps alternative pronunciations that don't surface when the word appears alone.
Anyhow, lookup() now returns a list of words. So from the above example: isleDict.lookup('australian_seal'))
(([[u's', u'i', u'l']], [], []),)]
If there is still only one word match, it will return a list with one element in it like so: isleDict.lookup('australian_seal'))
So, the code is a little more complex but it has the correct behavior now link to bugfix
I added one function to take advantage of this new functionality. It should probably be expanded but I'm not exactly sure the best way to go about doing it at the moment link to code
I'm not sure if this is intended but multi word entries only return the first words pronunciation. E.g. for "australian_seal" we only get the pronunciation for australian.
Thanks for making this package!