mirror of
https://github.com/retailcrm/NameCaseLib.git
synced 2024-12-05 03:16: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);
|
||||
@ -849,7 +849,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
/**
|
||||
* Имена типа Николай
|
||||
*/
|
||||
if($this->Last(4) == 'олай')
|
||||
if ($this->Last(4) == 'олай')
|
||||
{
|
||||
$first += 0.6;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user