mirror of
https://github.com/retailcrm/NameCaseLib.git
synced 2024-12-04 19:06:06 +03:00
[0.4.1] /RU11072716/ распознавание имени, фамилии
This commit is contained in:
parent
dd3b304fa6
commit
d9d7a57a5f
@ -220,7 +220,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
$this->Rule(403);
|
||||
return true;
|
||||
}
|
||||
elseif(!$this->in($this->Last(2, 1), $this->vowels))
|
||||
elseif (!$this->in($this->Last(2, 1), $this->vowels) or $this->Last(2, 1) == 'и')
|
||||
{
|
||||
$this->wordForms($this->workingWord, array('ого', 'ому', 'ого', 'им', 'ом'), 2);
|
||||
$this->Rule(404);
|
||||
@ -845,15 +845,15 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
$second += 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Имена типа Николай
|
||||
*/
|
||||
if($this->Last(4) == 'олай')
|
||||
if ($this->Last(4) == 'олай')
|
||||
{
|
||||
$first += 0.6;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Фамильные окончания
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user