Releases: wapmorgan/Morphos
Releases · wapmorgan/Morphos
3.0.9: MoneySpeller and TimeUnitSpeller
- Renamed
MoneyFormatter
toMoneySpeller
Russian:
- Added
TimeUnitSpeller
: Spells date&time intervals like5 часов и 6 минут назад
- Increased priority of last name during gender detection in
name()
function
3.0.8: Money formatter
- Fixed script bootstrapping
Russian:
- Added
MoneyFormatter
- Added case for
0
inCardinalNumeral
- Fixed declension of Geo names ending with
ов
3.0.7: Fixed bug on x86 systems in numerals generation
- Fixed bug in cardinal numerals generating classes (
morphos\Russian\CardinalNumeral
,morphos\English\CardinalNumeral
) leading to infinite loop on x86.
English:
- Added generating of ordinal numerals.
3.0.6: Updates of Geographical and Last Names declension
- Added script to test morphos functionality (
bin/morphos
).
Russian:
- Fixed declension of female last names ending with
ая
:Закипная
- Disabled declension of female last names ending with
ь
or with a consonant. - Added rules to decline russian geographical names:
- ending with
ль
:Ставрополь, Ярославль
- ending with
рь
:Тверь
- ending with
ки
:Березники, Ессентуки
- ending with
мь
:Пермь, Кемь
- ending with
нь
:Рязань, Назрань
- ending with
3.0.5: Iterative updates
Updates in general declension:
- Added declension and pluralization of Russian Augmentatives:
волчище
,полотнище
- Added declension and pluralization of Russian Adjectives:
существительное
,выходной
,запятая
,рабочий
- Fixed genitive plural case for words with run-away vowels:
письмо
->писем
,ядро
->ядер
- Fixed declension of nouns with run-away vowels:
пень
->пня
,котенок
->котенка
- Fixed prepositional case for words ending with
-ие
:сообщение
,воскрешение
3.0.4: Fixed pluralizaion for count of objects > 100
- Fixed
morphos\Russian\Plurality::pluralize($word, $count)
for$count > 100
. (thanks to @alexlcdee)
3.0.3: Iterative updates
- Rule for "письмо" plurality
- Rules for words with run-away vowels
3.0.2: GeographicalNamesDeclension update
- Updated rules of geographical names declension: added support for two-words names like
Нижний Новгород
. - Updated web script.
3.0.1: Minor changes and bug fixes
- Fixed warnings on PHP 5.x.
- Updates rules for general nouns declension.
- Updated web script
web/index.php
for testing (now with Material Design)
3.0.0: New API
- All methods of all classes are static now. Not need to create instanes of declension classes anymore.
echo morphos\Russian\GeneralDeclension::getCases('стол');
- Removed few methods:
- OrdinalNumeral::generate()
- CardinalNumeral::generate()
morphos\NamesDeclension
gender constants (MAN
andWOMAN
) replaced bymorphos\Gender
constantsMALE
,FEMALE
andNEUTER
- Added new Russian declension class - GeographicalNamesDeclension for cities, countries, streets, continents names declension.