Skip to content

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

License

Notifications You must be signed in to change notification settings

Mikulas/inflection

 
 

Repository files navigation

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.

Usage

Install with composer:

composer require mikulas/inflection
<?php

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.

Links

License

GPL 2.1

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%