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
6a09e7a39c
commit
b79fcac2c8
@ -64,8 +64,8 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
'в' => 'аь',
|
||||
'г' => 'а',
|
||||
'д' => 'ар',
|
||||
'е' => 'бвгдйлмнря',
|
||||
'ё' => 'бвгдйлмнря',
|
||||
'е' => 'бвгдйлмня',
|
||||
'ё' => 'бвгдйлмня',
|
||||
'ж' => '',
|
||||
'з' => 'а',
|
||||
'и' => 'гдйклмнопрсфя',
|
||||
@ -686,9 +686,9 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
/**
|
||||
* Используем массив характерных окончаний
|
||||
*/
|
||||
if(isset($this->splitSecondExclude[$this->Last(2, 1)]))
|
||||
if (isset($this->splitSecondExclude[$this->Last(2, 1)]))
|
||||
{
|
||||
if(!$this->in($this->Last(1), $this->splitSecondExclude[$this->Last(2, 1)]))
|
||||
if (!$this->in($this->Last(1), $this->splitSecondExclude[$this->Last(2, 1)]))
|
||||
{
|
||||
$second += 0.4;
|
||||
}
|
||||
@ -746,7 +746,7 @@ class NCLNameCaseRu extends NCLNameCaseCore
|
||||
/**
|
||||
* Слова, которые заканчиваются на тин
|
||||
*/
|
||||
if($this->Last(3) == 'тин' and $this->in($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