Spanish Pluralizer

Spanish Pluralizer is a gem for converting singular spanish nouns into plural. It works by adding the following methods to String: [:pluralize_spanish, :spanish_pluralizer_acute, :spanish_pluralizer_unacute, :spanish_pluralizer_is_acute?]. It can handle diphthong, hiatus and adding or removing acutes, but fails with monosyllables and rule exceptions like "régimen" => "regímenes" and "espécimen => especímenes".

Usage

require 'spanish_pluralizer' #not needed if using Gemfile

'camión'.pluralize_spanish
=> 'camiones'

'caries'.pluralize_spanish
=> 'caries'

'imagen'.pluralize_spanish
=> 'imágenes'

'arroz'.pluralize_spanish
=> 'arroces'

Installation

Spanish Pluralizer is distributed as a gem.

You can install it by running

gem install spanish_pluralizer

or including the gem in your Gemfile:

gem spanish_pluralizer

Credits

Pablo Bianciotto.

License

Copyright © 2013 Pablo Bianciotto.

Spanish Pluralizer is a free software, and may be redistributed under the terms specified in the MIT-LICENSE file.