You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few words in the English language can both be countable and uncountable at the same time. Amongst these, we have:
homework
research
weather
travel
and potentially more. In Inflector 1.3, many of these words were pluralised, even though the common plural for the words is the word itself. In Inflector 1.4, this was rectified, as we want to make the library more grammatically correct. As such, we will not be fixing these inflections.
If you need to pluralise such words differently, you can use custom rules. Please follow the instructions below depending on the Inflector API you are using. Note that due to a bug these custom rules will only work reliably in 1.4.3 and 2.0.3 and newer.
Legacy API (Inflector <= 1.4)
In the legacy API, use Inflector::rules to add a custom rule:
A few words in the English language can both be countable and uncountable at the same time. Amongst these, we have:
and potentially more. In Inflector 1.3, many of these words were pluralised, even though the common plural for the words is the word itself. In Inflector 1.4, this was rectified, as we want to make the library more grammatically correct. As such, we will not be fixing these inflections.
If you need to pluralise such words differently, you can use custom rules. Please follow the instructions below depending on the Inflector API you are using. Note that due to a bug these custom rules will only work reliably in 1.4.3 and 2.0.3 and newer.
Legacy API (Inflector <= 1.4)
In the legacy API, use
Inflector::rules
to add a custom rule:New API (Inflector >= 1.4)
In the new API, custom rules must be added to the factory before creating the inflector:
The text was updated successfully, but these errors were encountered: