Sha256: 2732dc517884e6e1a297d8281e8c2bba2320b02bbe6ccd055c1b1251ab0432bc

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

# encoding: utf-8

module Inflections
  ActiveSupport::Inflector.inflections do |inflect|
    inflect.clear

    vowels = 'оұаыөүәіе'

    inflect.plural(/[кқпстфхчцшщбвгд]$/i, '\0тар')
    inflect.plural(/[өүәіе][^#{vowels}]*[кқпстфхчцшщбвгд]$/i, '\0тер')

    inflect.plural(/[лмнңжз]$/i, '\0дар')
    inflect.plural(/[өүәіе][^#{vowels}]*[лмнңжз]$/i, '\0дер')

    inflect.plural(/[#{vowels}руй]$/i, '\0лар')
    inflect.plural(/[өүәіе][^#{vowels}]*[#{vowels}руй]$/i, '\0лер')

    inflect.singular(/[тдл][ае]р$/i, '')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inflections-3.3.0 lib/inflections/kk.rb
inflections-3.2.12.20130314 lib/inflections/kk.rb
inflections-3.2.12.20130305 lib/inflections/kk.rb
inflections-3.2.12 lib/inflections/kk.rb
inflections-3.2.11 lib/inflections/kk.rb
inflections-3.2.9.20121206 lib/inflections/kk.rb