This extension should provide same functionality and API as this PHP extension. Do note however that c extension performs way better.
Install with composer:
composer require mikulas/inflection<?phprequire_once__DIR__ . '/vendor/autoload.php';
$inflection = newInflection();
$inflected = $inflection->inflect('kožená bunda');
echo"Natrhnul jsem si $inflected[4]";
// Natrhnul jsem si koženou bunduecho"$inflected[8] jsou nejlepší";
// kožené bundy jsou nejlepšíBased on original work by Pavel Sedlák, Tomáš Režnar and Heureka.
This library is about 6 times faster then Heureka implementation and 9 times faster then the original implementation.
- http://prirucka.ujc.cas.cz/
- http://www.pteryx.net/sklonovani.html
- https://en.wikipedia.org/wiki/Czech_declension
- https://en.wikipedia.org/wiki/Grammatical_gender
GPL 2.1