Skip to content

A simple method to check if a string matches the syllable syntax for haiku

License

Notifications You must be signed in to change notification settings

tomwardill/python-haiku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mostly based on this work:
http://www.oblomovka.com/code/haiku.php3#download
But modified for just taking a single line, rather than a file, and with less generator/exception code.

Requires the c06d file from the Carnegie Mellon Pronunciation Dictionary:
http://www.speech.cs.cmu.edu/cgi-bin/cmudict

Run the conversion script first to build a json based dict
The python script should then run, and the count_syllables method can be imported for use in other programs.

Enjoy.

About

A simple method to check if a string matches the syllable syntax for haiku

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages