Coder Social home page Coder Social logo

phpmorphy's Introduction

cijic/phpmorphy

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,

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 [email protected] instead of using the issue tracker.

License

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

phpmorphy's People

Contributors

cijic avatar danog avatar dreamer0x01 avatar githubjeka avatar mcvogel avatar progserg avatar spirin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpmorphy's Issues

Ошибка с типами в примерах example-0.3.x.php (win10, php7.2.9)

lemma:

Fatal error: Uncaught TypeError: Return value of phpMorphy_WordDescriptor::offsetGet() must be an instance of mixed, instance of phpMorphy_WordForm returned in _src\vendor\phpmorphy-2023-02-02\libs\phpmorphy\src\morphiers.php:1145
Stack trace:
#0 _src\vendor\phpmorphy-2023-02-02\libs\phpmorphy\examples\example-0.3.x.php(104): phpMorphy_WordDescriptor->offsetGet(0)
#1 {main}
thrown in _src\vendor\phpmorphy-2023-02-02\libs\phpmorphy\src\morphiers.php on line 1145

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.