Morphos
A morphological solution for Russian and English language written completely in PHP.
Features
- [✓] Inflection of Personal names (Фамилия, �?мя, Отче�?тво) (Russian)
- [✓] Inflection of Geographical names (Страны/Города) (Russian)
- [✓] Declension/Pluralization of nouns and adjectives (Russian, English)
- [✓] Generation numerals of numbers (количе�?твенные и порядковые) (Russian, English)
- [✓] Spelling out amounts of money (Russian)
- [✓] Spelling out time units and intervals (Russian, English)
Table of contents
- Installation
- Quick start
- Documentation
- Contributing
Installation
- Download library through composer:
composer require wapmorgan/morphos
Adapters
- Adapter for Blade: wapmorgan/morphos-blade
- Adapter for Twig: wapmorgan/morphos-twig
- Adapter for Yii2: wapmorgan/yii2-inflection
Quick Start
Russian
// Inflect russian names:
morphos\Russian\inflectName('�?ванов Петр', 'родительный') => '�?ванова Петра'
// Inflect geographical names:
morphos\Russian\GeographicalNamesInflection::getCase('Мо�?ква', 'родительный') => 'Мо�?квы'
// Pluralize russian nouns:
morphos\Russian\pluralize(10, 'дом') => '10 домов'
// Generate russian cardinal numerals:
morphos\Russian\CardinalNumeralGenerator::getCase(567, 'именительный') => 'пять�?от �?е�?тьде�?ят �?емь'
// Generate russian ordinal numerals:
morphos\Russian\OrdinalNumeralGenerator::getCase(961, 'именительный') => 'девять�?от �?е�?тьде�?ят первый'
// other functions described in README-ru.mdEnglish
// Pluralize english nouns:
morphos\English\pluralize(10, 'house') => '10 houses'
// Generate english cardinal numerals:
morphos\English\CardinalNumeralGenerator::generate(567) => 'five hundred sixty-seven'
// Generate english ordinal numerals:
morphos\English\OrdinalNumeralGenerator::generate(961) => 'nine hundred sixty-first'Documentation
- Р�?�?�?кая морфология в файле README-ru.md
- English morphology in file README-en.md
Contributing
See CONTRIBUTING.md for this.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


