From c730349ca28039f48bfa5354d664a7e76b26c820 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Sat, 10 Feb 2007 22:03:31 +0000 Subject: [PATCH] kluge to fix wovel harmony for "MediaWiki" (and other names with a "wiki" suffix) in LanguageFi::convertGrammar() --- languages/classes/LanguageFi.php | 7 +++++++ 1 file changed, 7 insertions(+) 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'; -- 2.20.1