6 class LanguageRmy
extends Language
{
8 * Convert from the nominative form of a noun to some other case
9 * Invoked with {{GRAMMAR:case|word}}
11 * Cases: nominative, genitive-m-sg, genitive-f-sg, dative, locative, ablative, instrumental
13 public function convertGrammar( $word, $case ) {
14 global $wgGrammarForms;
15 if ( isset($wgGrammarForms['rmy'][$case][$word]) ) {
16 return $wgGrammarForms['rmy'][$case][$word];
20 case 'genitive-m-sg': # genitive (m.sg.)
21 if ( $word == 'Vikipidiya' ) {
22 $word = 'Vikipidiyako';
23 } elseif ( $word == 'Vikcyonaro' ) {
24 $word = 'Vikcyonaresko';
27 case 'genitive-f-sg': # genitive (f.sg.)
28 if ( $word == 'Vikipidiya' ) {
29 $word = 'Vikipidiyaki';
30 } elseif ( $word == 'Vikcyonaro' ) {
31 $word = 'Vikcyonareski';
34 case 'genitive-pl': # genitive (pl.)
35 if ( $word == 'Vikipidiya' ) {
36 $word = 'Vikipidiyake';
37 } elseif ( $word == 'Vikcyonaro' ) {
38 $word = 'Vikcyonareske';
42 if ( $word == 'Vikipidiyake' ) {
44 } elseif ( $word == 'Vikcyonaro' ) {
45 $word = 'Vikcyonareske';
49 if ( $word == 'Vikipidiyate' ) {
51 } elseif ( $word == 'Vikcyonaro' ) {
52 $word = 'Vikcyonareste';
56 if ( $word == 'Vikipidiyatar' ) {
57 $word = 'o Wikipediji';
58 } elseif ( $word == 'Vikcyonaro' ) {
59 $word = 'Vikcyonarestar';
63 if ( $word == 'Vikipidiyasa' ) {
64 $word = 'z Wikipedijo';
65 } elseif ( $word == 'Vikcyonaro' ) {
66 $word = 'Vikcyonaresa';
71 return $word; # this will return the original value for 'nominative' and all undefined case values