| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 | 
							- <?php
 
- return array(
 
- 	/*
 
- 	|--------------------------------------------------------------------------
 
- 	| String Inflection
 
- 	|--------------------------------------------------------------------------
 
- 	|
 
- 	| This array contains the singular and plural forms of words. It's used by
 
- 	| the "singular" and "plural" methods on the Str class to convert a given
 
- 	| word from singular to plural and vice versa.
 
- 	|
 
- 	| This simple array is in constrast to the complicated regular expression
 
- 	| patterns used by other frameworks. We think you'll enjoy the speed and
 
- 	| simplicity of this solution.
 
- 	|
 
- 	| When adding a word to the array, the key should be the singular form,
 
- 	| while the array value should be the plural form. We've included an
 
- 	| example to get you started!
 
- 	|
 
- 	*/
 
- 	'inflection' => array(
 
- 		'user'    => 'users',
 
- 		'person'  => 'people',
 
- 		'comment' => 'comments',
 
- 	),
 
- 	/*
 
- 	|--------------------------------------------------------------------------
 
- 	| 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',
 
- 		'/Ç|Ć|Ĉ|Ċ|Č|Ц/' => 'C',
 
- 		'/ç|ć|ĉ|ċ|č|ц/' => 'c',
 
- 		'/Ð|Ď|Đ|Д/' => 'Dj',
 
- 		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