Why 'Jonathan' can not be split into syllables?

31 views
Skip to first unread message

Peng Yu

unread,
Sep 19, 2016, 11:29:20 PM9/19/16
to pyhy...@googlegroups.com
Hi, The following example shows that 'Jonathan' can not be split into
syllables. I think that it should be split as Jon-a-than. Does anybody
know why it can not be split? Thanks.

$ cat main.py
#!/usr/bin/env python
# vim: set noexpandtab tabstop=2 shiftwidth=2 softtabstop=-1 fileencoding=utf-8:

import hyphen
h_en = hyphen.Hyphenator('en_US')
print h_en.syllables(u'Jonathan')

$ ./main.py
[u'Jonathan']

--
Regards,
Peng

Dr. Leo

unread,
Sep 20, 2016, 6:32:12 AM9/20/16
to pyhy...@googlegroups.com
I guess the dictionary has it that names do not hyphenate in english.
> --
> You received this message because you are subscribed to the Google Groups "pyhyphen" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pyhyphen+u...@googlegroups.com.
> To post to this group, send email to pyhy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/pyhyphen.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages