You appear to be a bot. Output may be restricted
Description
Singularize a plural string
Usage
$string = bw_singularize( $plural );
Parameters
- $plural
- ( string ) required – a plural string – or anything with a 'stem'
Returns
string $singular – the singularized version of the stringSource
File name: oik/includes/bw_register.phpLines:
1 to 10 of 10
function bw_singularize( $plural ) { //bw_backtrace(); if ( function_exists( "bw_porter_stemmer" ) ) { $singular = bw_porter_stemmer( $plural ) ; } else { $singular = rtrim( $plural, 's' ); } //bw_trace2( $singular, "Singular" ); return( $singular ); }View on GitHub View on Trac