Language inflection such as pluralisation.
This is the code documentation for the SproutCMS project
Search documentation |
class InflectorLanguage inflection such as pluralisation.
Variables
Functions
public camelizestring Inflector::camelize ( string $str ); Makes a phrase camel case. public humanizestring Inflector::humanize ( string $str ); Makes an underscored or dashed phrase human-reable. public numPluralunknown Inflector::numPlural ( int $num , string $word ); Pluralises a number and word combination, e.g. [1, 'pig'] => '1 pig'; [0, 'pig'] => '0 pigs' public pluralstring Inflector::plural ( string $str [, mixed $count ] ); Makes a singular word plural. public singularstring Inflector::singular ( string $str [, integer $count ] ); Makes a plural word singular. public uncountableboolean Inflector::uncountable ( string $str ); Checks if a word is defined as uncountable. public underscorestring Inflector::underscore ( string $str ); Makes a phrase underscored instead of spaced. |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|