getMainConfig()->get( 'GrammarForms' ); if ( isset( $grammarForms['kaa'][$case][$word] ) ) { return $grammarForms['kaa'][$case][$word]; } /* Full code of function convertGrammar() is in development. Updates coming soon. */ return $word; } /** * It fixes issue with ucfirst for transforming 'i' to 'İ' * * @param string $string * * @return string */ public function ucfirst( $string ) { if ( substr( $string, 0, 1 ) === 'i' ) { return 'İ' . substr( $string, 1 ); } return parent::ucfirst( $string ); } /** * It fixes issue with lcfirst for transforming 'I' to 'ı' * * @param string $string * * @return mixed|string */ public function lcfirst( $string ) { if ( substr( $string, 0, 1 ) === 'I' ) { return 'ı' . substr( $string, 1 ); } return parent::lcfirst( $string ); } }