3 class LanguageRmy
extends Language
{
5 * Convert from the nominative form of a noun to some other case
6 * Invoked with {{GRAMMAR:case|word}}
8 * Cases: nominative, genitive-m-sg, genitive-f-sg, dative, locative, ablative, instrumental
10 public function convertGrammar( $word, $case ) {
11 global $wgGrammarForms;
12 if ( isset($wgGrammarForms['rmy'][$case][$word]) ) {
13 return $wgGrammarForms['rmy'][$case][$word];
17 case 'genitive-m-sg': # genitive (m.sg.)
18 if ( $word == 'Vikipidiya' ) {
19 $word = 'Vikipidiyako';
20 } elseif ( $word == 'Vikcyonaro' ) {
21 $word = 'Vikcyonaresko';
24 case 'genitive-f-sg': # genitive (f.sg.)
25 if ( $word == 'Vikipidiya' ) {
26 $word = 'Vikipidiyaki';
27 } elseif ( $word == 'Vikcyonaro' ) {
28 $word = 'Vikcyonareski';
31 case 'genitive-pl': # genitive (pl.)
32 if ( $word == 'Vikipidiya' ) {
33 $word = 'Vikipidiyake';
34 } elseif ( $word == 'Vikcyonaro' ) {
35 $word = 'Vikcyonareske';
39 if ( $word == 'Vikipidiyake' ) {
41 } elseif ( $word == 'Vikcyonaro' ) {
42 $word = 'Vikcyonareske';
46 if ( $word == 'Vikipidiyate' ) {
48 } elseif ( $word == 'Vikcyonaro' ) {
49 $word = 'Vikcyonareste';
53 if ( $word == 'Vikipidiyatar' ) {
54 $word = 'o Wikipediji';
55 } elseif ( $word == 'Vikcyonaro' ) {
56 $word = 'Vikcyonarestar';
60 if ( $word == 'Vikipidiyasa' ) {
61 $word = 'z Wikipedijo';
62 } elseif ( $word == 'Vikcyonaro' ) {
63 $word = 'Vikcyonaresa';
68 return $word; # this will return the original value for 'nominative' and all undefined case values