getMainConfig()->get( MainConfigNames::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; } /** * Fixes an issue with ucfirst for transforming 'i' to 'İ' * * @inheritDoc */ public function ucfirst( $str ) { if ( substr( $str, 0, 1 ) === 'i' ) { return 'İ' . substr( $str, 1 ); } return parent::ucfirst( $str ); } /** * Fixes an issue with lcfirst for transforming 'I' to 'ı' * * @inheritDoc */ public function lcfirst( $str ) { if ( substr( $str, 0, 1 ) === 'I' ) { return 'ı' . substr( $str, 1 ); } return parent::lcfirst( $str ); } }