getMainConfig()->get( MainConfigNames::GrammarForms ); if ( isset( $grammarForms['dsb'][$case][$word] ) ) { return $grammarForms['dsb'][$case][$word]; } switch ( $case ) { case 'instrumental': # instrumental $word = 'z ' . $word; // fall-through case 'lokatiw': # lokatiw $word = 'wo ' . $word; break; } # this will return the original value for 'nominatiw' (nominativ) and # all undefined case values. return $word; } }