python-haiku

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

3 years after

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.

Related Repositories

awesome-ruby

awesome-ruby

A curated list of awesome Ruby frameworks, libraries and resources. Inspired by ...

CppCon2016

CppCon2016

Slides and other materials from CppCon 2016 ...

pyhipku

pyhipku

Encode any IP address as a haiku, funny and lovely. TRY IT NOW: http://pyhipku.l ...

haikufinder

haikufinder

Python module to locate haikus in unstructured English text ...

haiku-wifi

haiku-wifi

turn your wireless router's extra radios into a public billboard! ...


Top Contributors

tomwardill