4 ms·
I tend to agree with you, do you know of any software projects to programmatically determine syllables?
by anonfunction 12y ago
I tend to agree with you, do you know of any software projects to programmatically determine syllables?
- spyspy 12y agohttp://www.nltk.org/ http://www.nltk.org/
- anonfunction 12y agoCouldn't find anything that says it officially supports counting of syllables but stackoverflow provided this possible solution: from nltk.corpus import cmudict d = cmudict.dict() def nsyl(word): return [len(list(y for y in x if y[-1].isdigit())) for x in d[word.lower()]]