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
5a9da04c24
commit
6a09e7a39c
@ -27,7 +27,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
* Версия языкового файла
|
||||
* @var string
|
||||
*/
|
||||
protected $languageBuild = '11072715';
|
||||
protected $languageBuild = '11072716';
|
||||
/**
|
||||
* Количество падежей в языке
|
||||
* @var int
|
||||
@ -280,7 +280,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
$this->Rule(604);
|
||||
return true;
|
||||
}
|
||||
elseif ($this->in($this->Last(1), 'цсршм'))
|
||||
elseif ($this->in($this->Last(1), 'цсршмх'))
|
||||
{
|
||||
$this->wordForms($this->workingWord, array('а', 'у', 'а', 'ом', 'е'));
|
||||
$this->Rule(602);
|
||||
@ -746,7 +746,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
/**
|
||||
* Слова, которые заканчиваются на тин
|
||||
*/
|
||||
if($this->Last(3) == 'тин' and $this->Last(4, 1) == 'нст')
|
||||
if($this->Last(3) == 'тин' and $this->in($this->Last(4, 1), 'нст'))
|
||||
{
|
||||
$first += 0.5;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user