Czech inflection library

Installs: 55 359

Dependents: 0

Suggesters: 0

Security: 0

Stars: 29

Watchers: 7

Forks: 20

v1.0 2014-12-26 08:39 UTC

This package is auto-updated.

Last update: 2024-06-21 03:16:58 UTC


Czech inclension (declension), české skloňování

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

require_once __DIR__ . '/vendor/autoload.php';

$inflection = new Inflection();
$inflected = $inflection->inflect('kožená bunda');

echo "Natrhnul jsem si $inflected[4]";
// Natrhnul jsem si koženou bundu

echo "$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.



GPL 2.1