From: Ilmari Karonen Date: Sat, 10 Feb 2007 22:03:31 +0000 (+0000) Subject: kluge to fix wovel harmony for "MediaWiki" (and other names with a "wiki" suffix... X-Git-Tag: 1.31.0-rc.0~54062 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=c730349ca28039f48bfa5354d664a7e76b26c820;p=lhc%2Fweb%2Fwiklou.git kluge to fix wovel harmony for "MediaWiki" (and other names with a "wiki" suffix) in LanguageFi::convertGrammar() --- diff --git a/languages/classes/LanguageFi.php b/languages/classes/LanguageFi.php index a7a3835143..d7363969a5 100644 --- a/languages/classes/LanguageFi.php +++ b/languages/classes/LanguageFi.php @@ -31,6 +31,13 @@ class LanguageFi extends Language { # wovel harmony flag $aou = preg_match( '/[aou][^äöy]*$/i', $word ); + # The flag should be false for compounds where the last word has only neutral vowels (e/i). + # The general case cannot be handled without a dictionary, but there's at least one notable + # special case we should check for: + + if ( preg_match( '/wiki$/i', $word ) ) + $aou = false; + # append i after final consonant if ( preg_match( '/[bcdfghjklmnpqrstvwxz]$/i', $word ) ) $word .= 'i';