bushong1 / haiku-detect

A node.js haiku detector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

haiku-detect

For detecting and formatting haikus

usage

> var haiku = require("./index.js")
undefined
> haiku.detect("are you suggesting that instead of single lines haikus are preferred?")
true
> haiku.format("are you suggesting that instead of single lines haikus are preferred?")
[ 'are you suggesting ',
  'that instead of single lines ',
  'haikus are preferred?' ]
> haiku.detect("What about sentences that cannot be formed into haikus?");
false
> haiku.format("What about sentences that cannot be formed into haikus?");
[]

About

A node.js haiku detector


Languages

Language:JavaScript 100.0%