123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <?php
- return array(
- /*
- |--------------------------------------------------------------------------
- | String Inflection
- |--------------------------------------------------------------------------
- |
- | This array contains the singular and plural forms of words. It's used by
- | the "singular" and "plural" methods in the Str class to convert a given
- | word from singular to plural and vice versa.
- |
- | Note that the regular expressions are only for inflecting English words.
- | To inflect a non-English string, simply add its singular and plural
- | form to the array of "irregular" word forms.
- |
- */
- 'plural' => array(
- '/(quiz)$/i' => "$1zes",
- '/^(ox)$/i' => "$1en",
- '/([m|l])ouse$/i' => "$1ice",
- '/(matr|vert|ind)ix|ex$/i' => "$1ices",
- '/(x|ch|ss|sh)$/i' => "$1es",
- '/([^aeiouy]|qu)y$/i' => "$1ies",
- '/(hive)$/i' => "$1s",
- '/(?:([^f])fe|([lr])f)$/i' => "$1$2ves",
- '/(shea|lea|loa|thie)f$/i' => "$1ves",
- '/sis$/i' => "ses",
- '/([ti])um$/i' => "$1a",
- '/(tomat|potat|ech|her|vet)o$/i' => "$1oes",
- '/(bu)s$/i' => "$1ses",
- '/(alias)$/i' => "$1es",
- '/(octop)us$/i' => "$1i",
- '/(ax|test)is$/i' => "$1es",
- '/(us)$/i' => "$1es",
- '/s$/i' => "s",
- '/$/' => "s"
- ),
- 'singular' => array(
- '/(quiz)zes$/i' => "$1",
- '/(matr)ices$/i' => "$1ix",
- '/(vert|ind)ices$/i' => "$1ex",
- '/^(ox)en$/i' => "$1",
- '/(alias)es$/i' => "$1",
- '/(octop|vir)i$/i' => "$1us",
- '/(cris|ax|test)es$/i' => "$1is",
- '/(shoe)s$/i' => "$1",
- '/(o)es$/i' => "$1",
- '/(bus)es$/i' => "$1",
- '/([m|l])ice$/i' => "$1ouse",
- '/(x|ch|ss|sh)es$/i' => "$1",
- '/(m)ovies$/i' => "$1ovie",
- '/(s)eries$/i' => "$1eries",
- '/([^aeiouy]|qu)ies$/i' => "$1y",
- '/([lr])ves$/i' => "$1f",
- '/(tive)s$/i' => "$1",
- '/(hive)s$/i' => "$1",
- '/(li|wi|kni)ves$/i' => "$1fe",
- '/(shea|loa|lea|thie)ves$/i' => "$1f",
- '/(^analy)ses$/i' => "$1sis",
- '/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i' => "$1$2sis",
- '/([ti])a$/i' => "$1um",
- '/(n)ews$/i' => "$1ews",
- '/(h|bl)ouses$/i' => "$1ouse",
- '/(corpse)s$/i' => "$1",
- '/(us)es$/i' => "$1",
- '/(us|ss)$/i' => "$1",
- '/s$/i' => "",
- ),
- 'irregular' => array(
- 'child' => 'children',
- 'foot' => 'feet',
- 'goose' => 'geese',
- 'man' => 'men',
- 'move' => 'moves',
- 'person' => 'people',
- 'sex' => 'sexes',
- 'tooth' => 'teeth',
- ),
- 'uncountable' => array(
- 'audio',
- 'equipment',
- 'deer',
- 'fish',
- 'gold',
- 'information',
- 'money',
- 'rice',
- 'police',
- 'series',
- 'sheep',
- 'species',
- 'moose',
- 'chassis',
- 'traffic',
- ),
- /*
- |--------------------------------------------------------------------------
- | ASCII Characters
- |--------------------------------------------------------------------------
- |
- | This array contains foreign characters and their 7-bit ASCII equivalents.
- | The array is used by the "ascii" method on the Str class to get strings
- | ready for inclusion in a URL slug.
- |
- | Of course, the "ascii" method may also be used by you for whatever your
- | application requires. Feel free to add any characters we missed, and be
- | sure to let us know about them!
- |
- */
- 'ascii' => array(
- '/æ|ǽ/' => 'ae',
- '/œ/' => 'oe',
- '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|А/' => 'A',
- '/à|á|â|ã|ä|å|ǻ|ā|ă|ą|ǎ|ª|а/' => 'a',
- '/Б/' => 'B',
- '/б/' => 'b',
- '/Ç|Ć|Ĉ|Ċ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