Numeric Spell plugin

Plugin details

An ActiveSupport plugin for number spelling NumericSpell helps you spell out numbers in English. It's simple, and prone to errors, but works well enough for most reasonable cases.

Repositoryhttp://tanjero.com/svn/plugins/numeric_spell/ Author Benjamin Stiglitz Tags number, spell LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://tanjero.com/svn/plugins/numeric_spell/

Examples:

  >> 23.spell
  => "twenty-three"
  
  >> 4.spell :noun => 'person'
  => "four people"
  
  >> (43.22).spell_currency(:major => 'euro', :minor => 'cent')
  => "Forty-three euros and twenty-two cents"

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 7 months ago