From 295c025b1bfc850b2a88a7e3b5b853a2d35aeae5 Mon Sep 17 00:00:00 2001 From: RA Date: Mon, 21 Sep 2015 13:10:10 +0300 Subject: [PATCH] =?UTF-8?q?fix=20namecase=20=D0=98=D1=81=D0=BA=D0=BB=D1=8E?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D0=91?= =?UTF-8?q?=D0=B5=D1=80=D0=B8=D0=BB=20=D0=9A=D1=83=D0=BA,=20=D0=BA=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=D1=8F=20=D0=B6=D0=B5=D0=BD=D1=89=D0=B8?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/NCLNameCaseRu.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/NCLNameCaseRu.php b/Library/NCLNameCaseRu.php index 55acb45..c06288b 100644 --- a/Library/NCLNameCaseRu.php +++ b/Library/NCLNameCaseRu.php @@ -544,7 +544,7 @@ class NCLNameCaseRu extends NCLNameCaseCore * @return boolean true - если слово было успешно изменено, false - если не получилось этого сделать */ protected function manFatherName() - { + { //Проверяем действительно ли отчество if ($this->inNames($this->workingWord, 'Ильич')) { @@ -648,6 +648,12 @@ class NCLNameCaseRu extends NCLNameCaseCore $woman += 10; } + //Исключение для Берил Кук, которая женщина + if ($this->inNames($this->workingWord, array('Берил'))) + { + $woman += 0.05; + } + $word->setGender($man, $woman); }