From fac6734e87e99d4521b39581dc56b7064c70adfd Mon Sep 17 00:00:00 2001 From: romston Date: Wed, 4 Aug 2021 14:36:37 +0300 Subject: [PATCH] Update NCLNameCaseRu.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Last names ending with "чек". --- Library/NCLNameCaseRu.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Library/NCLNameCaseRu.php b/Library/NCLNameCaseRu.php index 8d6611a..f0d583b 100644 --- a/Library/NCLNameCaseRu.php +++ b/Library/NCLNameCaseRu.php @@ -271,6 +271,13 @@ protected function manRule5() { if ($this->Last(1) == 'к') { + // https://www.analizfamilii.ru/Gudachek/skloneniye.html + if ($this->in($this->Last(3), 'чек')) { + $this->wordForms($this->workingWord, array('а', 'у', 'а', 'ом', 'е')); + $this->Rule(503); + return true; + } + //Если перед слово на ок, то нужно убрать о if ($this->Last(4)=='енок' || $this->Last(4)=='ёнок')//Поллок { @@ -976,4 +983,4 @@ protected function detectNamePart(NCLNameCaseWord $word) } -?> \ No newline at end of file +?>