Project

syllabize

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

Development

 Project Readme

Syllabize

Code Climate

Syllabize is a simple syllable counter written in Ruby.

Installation

Add this line to your application's Gemfile:

gem 'syllabize'

And then execute:

$ bundle

Or install it yourself as:

$ gem install syllabize

Usage

First, require syllabize. Then, you can call the count_syllables method on a string.

require 'syllabize'
# => true
'Ruby'.count_syllables
# => 2
'500'.count_syllables
# => 3
'this gem is cool'.count_syllables
# => 4

Changes

See changelog.

Contributing

File an issue

The English language is full of exceptions to rules. One of the best ways to contribute is to file an issue with any exceptions you find.

Hack on the gem

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write tests and run them (rake or rspec)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request