GithubHelp home page GithubHelp logo

morhpy-wrapper's Introduction

acrossoffwest/morphy-wrapper

phpMorphy --- morphological analyzer library for Russian, English, German and Ukrainian languages.
acrossoffwest/morphy-wrapper is Laravel wrapper for phpMorphy library with PHP7.4 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 acrossoffwest/morphy-wrapper

Easy way for usage Russian language

Get a word in necessary form

echo morphy_get_word_by_case('Москва', ['ПР']);
// Output: москве

Get all forms of a word

echo morphy_get_word_by_case('Фитнес', ['ПР'], [
   'фитнес' => [
       'ПР' => 'фитнесе'
   ]
]);
// Output: фитнесе

Usage another languages

If you wanna use another languages you have to use Acrossoffwest\MorphyWrapper\Morphy class

use Acrossoffwest\MorphyWrapper\Morphy;

$morphy = new Morphy('en');
echo $morphy->getPseudoRoot('FIGHTY');
// Output: 

morhpy-wrapper's People

Contributors

acrossoffwest avatar

Watchers

 avatar  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.