We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
property_fee
property_ves
taxes
taxis
#!/usr/bin/env ruby require 'bundler/inline' gemfile do source 'https://rubygems.org' ruby '3.3.4' gem 'dry-inflector' end require 'dry-inflector' inflector = Dry::Inflector.new puts "**** Incorrect inflection" puts "pluralize: 'payment_provider_fee' => #{inflector.pluralize("payment_provider_fee")}" puts "pluralize: 'payment_fee' => #{inflector.pluralize("payment_fee")}" puts "pluralize: 'property_fee' => #{inflector.pluralize("property_fee")}" puts "singularize: 'taxes' => #{inflector.singularize("taxes")}" puts "**** Corrected inflection" fixed = Dry::Inflector.new do |i| i.plural("payment_provider_fee", "payment_provider_fees") i.plural("payment_fee", "payment_fees") i.plural("property_fee", "property_fees") i.singular("taxes", "tax") end puts "pluralize: 'payment_provider_fee' => #{fixed.pluralize("payment_provider_fee")}" puts "pluralize: 'payment_fee' => #{fixed.pluralize("payment_fee")}" puts "pluralize: 'property_fee' => #{fixed.pluralize("property_fee")}" puts "singularize: 'taxes' => #{fixed.singularize("taxes")}"
something_fee
something_fees
tax
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
property_fee
you getproperty_ves
.taxes
you gettaxis
To Reproduce
Expected behavior
something_fee
is pluralised assomething_fees
taxes
is singularised astax
, nottaxis
My environment
The text was updated successfully, but these errors were encountered: