mikulas/inflection
Composer 安装命令:
composer require mikulas/inflection
包简介
Czech inflection library
README 文档
README
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
- 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
License
GPL 2.1
统计信息
- 总下载量: 60k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.1
- 更新时间: 2014-12-26