Skip to content

Commit

Permalink
Copy fork from seagullua#16
Browse files Browse the repository at this point in the history
  • Loading branch information
nazbav authored Feb 16, 2024
1 parent 0070dd7 commit be42c74
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Library/NCLNameCaseRu.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ protected function manRule4()
protected function manRule5()
{
if ($this->Last(1) == 'к') {
//copy fork https://github.com/seagullua/NameCaseLib/pull/16
// 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) == 'ёнок')//Поллок
{
Expand Down Expand Up @@ -838,4 +847,4 @@ protected function detectNamePart(NCLNameCaseWord $word)

}

?>
?>

0 comments on commit be42c74

Please sign in to comment.