Coder Social home page Coder Social logo

inflection's Introduction

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.

Links

License

LGPL v2.1

Huge thanks mikulas for his great job with improvements.

inflection's People

Contributors

mikulas avatar dazix avatar hranicka avatar filipmelikheureka avatar heureka-user avatar spmartin avatar mstrouhal avatar davidtaller avatar jkbnerad avatar forgie1 avatar jarda-jakoube avatar sanny97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.