def count_word_syllables(word):
    '\n    Count syllables in a word\n    :param word: a one word string\n    :return: the number of syllables according to pyphen\n    '
    dic = pyphen.Pyphen(lang='en_US')
    hyphenated = dic.inserted(word)
    return len(hyphenated.split('-'))
Count syllables in a word
:param word: a one word string
:return: the number of syllables according to pyphen
def count_word_syllables(word):
    '\n    Count syllables in a word\n    :param word: a one word string\n    :return: the number of syllables according to pyphen\n    '
    dic = pyphen.Pyphen(lang='en_US')
    hyphenated = dic.inserted(word)
    return len(hyphenated.split('-'))