Sha256: faca93e6b20fca0644e5225fad41a8d814c2d4fe3eea70e630661a1e24d00ca0

Contents?: true

Size: 585 Bytes

Versions: 10

Compression:

Stored size: 585 Bytes

Contents

# encoding: utf-8

module Inflections
  ActiveSupport::Inflector.inflections do |inflect|
    inflect.clear
    
    inflect.plural(/$/, 's')
    inflect.plural(/([^aeéiou])$/i, '\1es')
    inflect.plural(/([aeiou]s)$/i, '\1')
    inflect.plural(/z$/i, 'ces')
    inflect.plural(/á([sn])$/i, 'a\1es')
    inflect.plural(/é([sn])$/i, 'e\1es')
    inflect.plural(/í([sn])$/i, 'i\1es')
    inflect.plural(/ó([sn])$/i, 'o\1es')
    inflect.plural(/ú([sn])$/i, 'u\1es')

    inflect.singular(/s$/, '')
    inflect.singular(/es$/, '')
    
    inflect.irregular('el', 'los')
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
inflections-3.2.12.20130314 lib/inflections/es.rb
inflections-3.2.12.20130305 lib/inflections/es.rb
inflections-3.2.12 lib/inflections/es.rb
inflections-3.2.11 lib/inflections/es.rb
inflections-3.2.9.20121206 lib/inflections/es.rb
inflections-3.2.9.20121201 lib/inflections/es.rb
inflections-3.2.8 lib/inflections/es.rb
inflections-3.2.7.20120803 lib/inflections/es.rb
inflections-0.0.5 lib/inflections/es.rb
inflections-0.0.4 lib/inflections/es.rb