2 * Finnish (Suomi) language functions
4 * @author Santhosh Thottingal
10 $.i18n.languages.fi = $.extend( {}, $.i18n.languages[ 'default' ], {
11 convertGrammar: function ( word, form ) {
13 var aou = word.match( /[aou][^äöy]*$/i ),
15 if ( word.match( /wiki$/i ) ) {
19 // append i after final consonant
20 if ( word.match( /[bcdfghjklmnpqrstvwxz]$/i ) ) {
29 word += ( aou ? 'sta' : 'stä' );
32 word += ( aou ? 'a' : 'ä' );
35 // Double the last letter and add 'n'
36 word += word.slice( -1 ) + 'n';
39 word += ( aou ? 'ssa' : 'ssä' );