Skip to content

Commit

Permalink
uprava algoritmu
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi committed Nov 22, 2022
1 parent a5f42b5 commit bc0cf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FullNameAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ private function isFirstName(string $name, bool $strict): bool

private function getGender(?string $firstName, string $lastName, $strict): ?string
{
// končí-li příjmení na "ová" nebo "ova", s největší pravděpodobností to bude žena
// končí-li příjmení na "á" nebo "ova", s největší pravděpodobností to bude žena
if (
$this->endsWith($lastName, 'ová')
$this->endsWith($lastName, 'á')
||
$this->endsWith($lastName, 'ova')
) {
Expand Down

0 comments on commit bc0cf76

Please sign in to comment.