From f11a2d60e41f1f59e9173c3c9cf6828704895bb9 Mon Sep 17 00:00:00 2001 From: RA Date: Wed, 23 Sep 2015 11:19:34 +0300 Subject: [PATCH] =?UTF-8?q?fix=20namecase.=20=D0=96=D0=B5=D0=BD=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=D0=B5=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B0=20*=D0=BD?= =?UTF-8?q?=D0=B0.=20=D0=A4=D0=B0=D0=BC=D0=B8=D0=BB=D0=B8=D1=8F=20=D0=B2?= =?UTF-8?q?=D0=B0=D0=BB=D0=B0=D0=B4=D0=BE=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/NCLNameCaseRu.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/NCLNameCaseRu.php b/Library/NCLNameCaseRu.php index c06288b..f114ac2 100644 --- a/Library/NCLNameCaseRu.php +++ b/Library/NCLNameCaseRu.php @@ -603,7 +603,7 @@ class NCLNameCaseRu extends NCLNameCaseCore $man+=0.02; } - if ($this->in($this->Last(2), array('вь', 'фь', 'ль'))) + if ($this->in($this->Last(2), array('вь', 'фь', 'ль', 'на'))) { $woman+=0.1; } @@ -941,7 +941,8 @@ class NCLNameCaseRu extends NCLNameCaseCore $second+=0.4; } - if ($this->inNames($namepart, array('да'))){ + //исключения и частички + if ($this->inNames($namepart, array('да', 'валадон'))){ $second += 10; }