Skip to content

A program to search text files for sentences that match 5-7-5 a syllable count.

Notifications You must be signed in to change notification settings

dgryski/haiku-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

haiku-finder

This program searches through stdin for sentences that match a 5-7-5 syllable count and prints them out, formatted as a haiku.

You will need the cmudict syllable dictionary. Download it with:

curl -O 'https://svn.code.sf.net/p/cmusphinx/code/trunk/cmudict/cmudict.0.7a'

Example:

bash$ go run main.go </usr/share/common-licenses/GPL-3 |head -3
When we speak of free
software, we are referring
to freedom, not price.

Inspired by the algorithm behind Times Haiku

If you're not running a newspaper, Project Gutenberg has lots of ebooks that make for interesting source material.

About

A program to search text files for sentences that match 5-7-5 a syllable count.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages