定制 cijic/phpmorphy 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cijic/phpmorphy

最新稳定版本:0.3.6

Composer 安装命令:

composer require cijic/phpmorphy

包简介

phpMorphy - morphological analyzer library for Russian, English, German and Ukrainian languages.

关键字:

README 文档

README

Packagist Downloads

phpMorphy --- morphological analyzer library for Russian, English, German and Ukrainian languages.
cijic/phpMorphy is Laravel wrapper for phpMorphy library with PHP7 support.

Source website (in russian): http://phpmorphy.sourceforge.net/
SF project: http://sourceforge.net/projects/phpmorphy
Wrapper on Github: https://github.com/cijic/phpmorphy

This library allow retireve follow morph information for any word:

  • Base (normal) form
  • All forms
  • Grammatical (part of speech, grammems) information

Install

Via Composer

$ composer require cijic/phpmorphy

Usage

$morphy = new cijic\phpMorphy\Morphy('en');
print_r($morphy->getPseudoRoot('FIGHTY'));

result

Array
(
    [0] => FIGHTY
    [1] => FIGHT
)

Laravel support

Facade

Morphy::getPseudoRoot('БОЙЦОВЫЙ')

Add russian facade support

Add to config/app.php:

Section providers

cijic\phpMorphy\MorphyServiceProvider::class,

Section aliases

'Morphy'    => cijic\phpMorphy\Facade\Morphy::class,

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email altcode@ya.ru instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 321.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 116
  • 点击次数: 1
  • 依赖项目数: 7
  • 推荐数: 0

GitHub 信息

  • Stars: 115
  • Watchers: 8
  • Forks: 40
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-13