Skip to content

tleen/haikfu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haikfu

Haiku generating node module

Build Status

Usage

var haikfu = require('haikfu');

// the module accepts text input and tries to create a haiku from the contents on each invocation
// errors will be thrown if input is insufficient for the task 
var haikuGenerator = haikfu('this line has five sounds; this line should have seven sounds. this line is five too.');
console.log(haikuGenerator());

// this line is five too
// this line should have seven sounds
// this line has five sounds

// - or -

// this line has five sounds
// this line should have seven sounds
// this line is five too