maxakawizard/phpmorphy

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

1.3.0 2016-04-14 23:11 UTC

This package is auto-updated.

Last update: 2024-10-29 04:20:04 UTC


README

Build Status GitHub tag Coverage Status

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

This library allows to retrieve following morph information for any word:

  • base (normal) form;
  • all forms;
  • grammatical (part of speech, grammems) information.

Installation

To install the library in your project using Composer, first add the following to your composer.json config file:

{
    "require": {
        "maxakawizard/phpmorphy": "~1.0"
    }
}

Then run Composer's install or update commands to complete installation.

Usage

See examples in examples directory.

Speed

Single word mode

Bulk mode:

Note:

All values are words per second speed. Test platform: PHP 5.2.3, AMD Duron 800 with 512Mb memory, WinXP.