Skip to content

Commit

Permalink
Merge pull request #12 from DavidTaller/master
Browse files Browse the repository at this point in the history
update inflection for Ivo(m) and Iva(f)
  • Loading branch information
Jan Navrátil committed Jan 6, 2016
2 parents c83cfc5 + 2a9de13 commit 16561fb
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 17 deletions.
5 changes: 3 additions & 2 deletions src/Inflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class Inflection
// Hugo
["m", "-go", "a", "govi", "ga", "ga", "govi", "gem", "gové", "", "gům", "gy", "gové", "zích", "gy"],
// Kvido
["m", "-o", "a", "ovi", "a", "a", "ovi", "em", "ové", "ů", "ům", "y", "ové", "ech", "y"],
["m", "-o", "a", "ovi", "a", "o", "ovi", "em", "ové", "ů", "ům", "y", "ové", "ech", "y"],
// šaty
[NULL, "-([tp])y", NULL, NULL, NULL, NULL, NULL, NULL, "0y", "0", "0ům", "0y", "0y", "0ech", "0ami"],
// dřeváky
Expand All @@ -337,7 +337,8 @@ class Inflection
["f", "-er", "er", "er", "er", "er", "er", "er", "ery", "er", "erám", "ery", "ery", "erách", "erami"],
// Joe
["m", "-oe", "oema", "oemovi", "oema", "oeme", "emovi", "emem", "oemové", "oemů", "oemům", "oemy", "oemové", "oemech", "oemy"],

//Iva
["f", "-a", "y", "ě", "u", "o", "ě", "ou", "y", "", "ám", "y", "y", "ách", "ami"],
];

/**
Expand Down
69 changes: 54 additions & 15 deletions tests/InflectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,20 +132,20 @@ public function providerNames()
"Marcel", //name to inflection
null, //environment ? - životné - null because it is inferred from the array with exceptional words
array( //expected result
1 => "Marcel",
2 => "Marcela",
3 => "Marcelovi",
4 => "Marcela",
5 => "Marceli",
6 => "Marcelovi",
7 => "Marcelem",
8 => 'Marcelové',
9 => 'Marcelů',
10 => 'Marcelům',
11 => 'Marcely',
12 => 'Marcelové',
13 => 'Marcelích',
14 => 'Marcely'
1 => "Marcel",
2 => "Marcela",
3 => "Marcelovi",
4 => "Marcela",
5 => "Marceli",
6 => "Marcelovi",
7 => "Marcelem",
8 => 'Marcelové',
9 => 'Marcelů',
10 => 'Marcelům',
11 => 'Marcely',
12 => 'Marcelové',
13 => 'Marcelích',
14 => 'Marcely'
)
),
array(
Expand All @@ -167,8 +167,47 @@ public function providerNames()
13 => 'Dagmarách',
14 => 'Dagmarami'
)
),
array(
"Ivo", //name to inflection
true, //environment ? - životné
array( //expected result
1 => "Ivo",
2 => "Iva",
3 => "Ivovi",
4 => "Iva",
5 => "Ivo",
6 => "Ivovi",
7 => "Ivem",
8 => 'Ivové',
9 => 'Ivů',
10 => 'Ivům',
11 => 'Ivy',
12 => 'Ivové',
13 => 'Ivech',
14 => 'Ivy'
)
),
array(
"Iva", //name to inflection
true, //environment ? - životné
array( //expected result
1 => "Iva",
2 => "Ivy",
3 => "Ivě",
4 => "Ivu",
5 => "Ivo",
6 => "Ivě",
7 => "Ivou",
8 => 'Ivy',
9 => 'Iv',
10 => 'Ivám',
11 => 'Ivy',
12 => 'Ivy',
13 => 'Ivách',
14 => 'Ivami'
)
)

);
}

Expand Down

0 comments on commit 16561fb

Please sign in to comment.