vladkolodka / phpmorphy
phpMorphy - morphological analyzer library for Russisan, English languages.
Installs: 1 196
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-01-30 02:14:05 UTC
README
phpMorphy --- morphological analyzer library for Russisan, English and German languages.
vladkolodka/phpMorphy
is wrapper for phpMorphy library.
Source website (in russian): http://phpmorphy.sourceforge.net/
SF project: http://sourceforge.net/projects/phpmorphy
Wrapper on Github: https://github.com/vladkolodka/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 vladkolodka/phpmorphy
Usage
$morphy = new vladkolodka\phpMorphy\Morphy('en'); echo $morphy->getPseudoRoot('FIGHTY');
Laravel support
Facade
Morphy::getPseudoRoot('БОЙЦОВЫЙ')
Add russian facade support
Add to config/app.php:
Section providers
vladkolodka\phpMorphy\MorphyServiceProvider::class,
Section aliases
'Morphy' => vladkolodka\phpMorphy\Facade\Morphy::class,
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email vladkolodka@gmail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.