oont-contents/plugins/wpify-woo/deps/heureka/inflection
2025-02-10 13:57:45 +01:00
..
src deleted unused plugins 2025-02-10 13:57:45 +01:00
benchmark.php deleted unused plugins 2025-02-10 13:57:45 +01:00
composer.json Themes & Plugins 2025-02-08 15:10:23 +01:00
composer.lock Themes & Plugins 2025-02-08 15:10:23 +01:00
Dockerfile Themes & Plugins 2025-02-08 15:10:23 +01:00
known-broken-words Themes & Plugins 2025-02-08 15:10:23 +01:00
LICENSE.md Themes & Plugins 2025-02-08 15:10:23 +01:00
README.md Themes & Plugins 2025-02-08 15:10:23 +01:00
simple.php deleted unused plugins 2025-02-10 13:57:45 +01:00

Build Status

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

This extension should provide same functionality and API as this PHP extension.

Usage

Install with composer:

$ composer require heureka/inflection
<?php

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

$inflection = new Inflection();
$inflected = $inflection->inflect('vlastní píseček');

echo "Nebudu si hrát jen na $inflected[6], ale kopat za komunitu";
// Nebudu si hrát jen na vlastním písečku, ale kopat za komunitu

echo "$inflected[8] nejsou vždy to nejlepší";
// vlastní písečky nejsou vždy to nejlepší

Tests

$ docker build . -t inflection:latest
$ docker run --rm -ti inflection:latest composer exec phpunit tests

Based on original work by Pavel Sedlák, Tomáš Režnar.

This library is about 6 times faster than first Heureka implementation and 9 times faster than the original implementation.

License

LGPL v2.1

Huge thanks mikulas for his great job with improvements.