Sha256: fffddc9960d61ee95d2e924aa15d907a17987cb74880c1eb7bc8bfce1408ac09
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
module Inflections ActiveSupport::Inflector.inflections(:en) do |inflect| inflect.clear inflect.plural(/$/, 's') inflect.plural(/([sxz]|[cs]h)$/i, '\1es') inflect.plural(/([^aeiouy]o)$/i, '\1es') inflect.plural(/([^aeiouy])y$/i, '\1ies') inflect.singular(/s$/i, '') inflect.singular(/(ss)$/i, '\1') inflect.singular(/([sxz]|[cs]h)es$/, '\1') inflect.singular(/([^aeiouy]o)es$/, '\1') inflect.singular(/([^aeiouy])ies$/i, '\1y') inflect.irregular('child', 'children') inflect.irregular('person', 'people') inflect.irregular('self', 'selves') inflect.uncountable(%w(series)) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
inflections-4.0.1 | lib/inflections/en.rb |
inflections-4.0.0 | lib/inflections/en.rb |
inflections-4.0.0.beta1 | lib/inflections/en.rb |