Project

haikuable

0.0
No commit activity in last 3 years
No release in over 3 years
Haiku
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
~> 0.5.0
 Project Readme

Haikuable

Garth: "Does anyone else find this weird? I mean, we're looking down on Wayne's basement. Only that's not Wayne's basement. Isn't that weird?"

Everyone: "That's weird…"

Wayne: "Garth, that was a haiku!"

Wayne's World, 1992

True to the simplicity and elegance of the Japanese poetic form, haikuable is a very simple gem. It has a single method. It takes a string, and returns a boolean based on whether or not that string is a haiku.

Currently, haikuable only supports the traditional 5, 7, 5 haiku format. If you need configurability, feel free to file an issue.

Usage

Require the gem, and call is_haiku? on a string.

>> require 'haikuable'
=> true
>> poem = 'at the age old pond a frog leaps into water a deep resonance'
=> "at the age old pond a frog leaps into water a deep resonance"
>> poem.is_haiku?
=> true

Installation

Add this line to your application's Gemfile:

gem 'haikuable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install haikuable

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request