Just generates haikus. In english.
There are no specific rules for writing haiku; however, the structure of haiku is always the same, including the following features:
- Only three lines, totaling 17 syllables throughout
- The first line is only 5 syllables
- The second line is 7 syllables
- The third line is 5 syllables like the first
- Punctuation and capitalization rules are up to the poet, and need not follow rigid rules used in structuring sentences
- Haiku does not have to rhyme, in fact many times it does not rhyme at all
- Some haiku can include the repetition of words or sounds
$> git clone https://github.com/d-rivera-c/haiku-generator.git
$> cd haiku-generator
$> npm install
Call the haiku generator default behaviour. Uses random words for the whole haiku. These are real english words.
$> node haiku.js
There's a few cli options you can use to generate different type of haikus
Default behaviour, uses all random unrelated words.
You can suggest a word so the haiku is related to the "theme". Uses an API to get related words. The final haiku could be "related" but not necessarily using the words.
$> node haiku.js --theme wind // haiku hopefully related to wind
Use this command to make the computer read the generated haiku
$> node haiku.js <additional params> | tee /dev/tty | say