inflector
inflector copied to clipboard
Doctrine Inflector is a small library that can perform string manipulations with regard to uppercase/lowercase and singular/plural forms of words.
Hello. I'm trying to use `Inflector::unaccent` to compare strings the same way as mysql with utf8_unicode_ci(_ai that can be omitted) collation compare. I found out that some (or all) cyrillic...
`Inflector::singularize('radius')` returns `radiu` instead of keeping `radius`. (using v2).
@greg0ire i have retargeted to 2.0.x as you suggest here : https://github.com/doctrine/inflector/pull/198 --- Some words should not be singularized in french. The list is coming from here : https://github.com/symfony/symfony/blob/6.2/src/Symfony/Component/String/Inflector/FrenchInflector.php#L111
I wrote the basics. I'm italian. I'm already using these rules for migrations. If u want to include them by reviewing . Thank u :)
Adds a new method for the in `LanguageInflectorFactory` along with a test for it. It allows to specify an array of custom Irregular substitutions: ``` $irregulars = [ ['singular1', 'plural1'],...
Hi! I'm reviewing the Portuguese rules and found some errors: - Words ending with 'x' don't change; I'll change the draft status once I'm done
`Inflector::singularize('freebies')` returns `freeby` instead of `freebie`. (using v2).
hi, can we have this? it is the basic of Dutch language inflector. thanks, Noud
It's strange that you deprecate the following methods (tableize, classify, ...), because it's still used in Doctrine ORM: For example ``Inflector::classify`` is used in: https://github.com/doctrine/orm/blob/master/lib/Doctrine/ORM/EntityRepository.php
Singularization of `foo_data` returns `foo_datum` Even if _datum_ can be considered to be the singular form of _data_, I think in the case of the lib use it can be...