2 * Ossetian (Ирон) language functions
4 * @author Santhosh Thottingal
10 $.i18n.languages.os = $.extend( {}, $.i18n.languages['default'], {
11 convertGrammar: function ( word, form ) {
12 var endAllative, jot, hyphen, ending;
14 // Ending for allative case
16 // Variable for 'j' beetwen vowels
18 // Variable for "-" for not Ossetic words
20 // Variable for ending
23 if ( word.match( /тæ$/i ) ) {
24 // Checking if the $word is in plural form
25 word = word.substring( 0, word.length - 1 );
27 } else if ( word.match( /[аæеёиоыэюя]$/i ) ) {
28 // Works if word is in singular form.
29 // Checking if word ends on one of the vowels: е, ё, и, о, ы, э, ю,
32 } else if ( word.match( /у$/i ) ) {
33 // Checking if word ends on 'у'. 'У' can be either consonant 'W' or
34 // vowel 'U' in cyrillic Ossetic.
35 // Examples: {{grammar:genitive|аунеу}} = аунеуы,
36 // {{grammar:genitive|лæппу}} = лæппуйы.
37 if ( !word.substring( word.length - 2, word.length - 1 )
38 .match( /[аæеёиоыэюя]$/i ) ) {
41 } else if ( !word.match( /[бвгджзйклмнопрстфхцчшщьъ]$/i ) ) {
47 ending = hyphen + jot + 'ы';
50 ending = hyphen + jot + 'æн';
53 ending = hyphen + endAllative;
57 ending = hyphen + jot + 'æ';
59 ending = hyphen + jot + 'æй';
63 ending = hyphen + jot + 'ыл';
66 ending = hyphen + jot + 'ау';
69 ending = hyphen + 'имæ';