singularization_rules (Extlib::Inflection)

    # File lib/extlib/inflection.rb, line 234
          def singularization_rules
            if defined?(@singularization_regex) && @singularization_regex
              return [@singularization_regex, @singularization_hash]
            end
            # No sorting needed: Regexen match on longest string
            @singularization_regex = Regexp.new("(" + @singular_rules.map {|s,p| p}.join("|") + ")$", "i")
            @singularization_hash  = Hash[*@singular_rules.flatten].invert
            [@singularization_regex, @singularization_hash]
          end