Releases: wapmorgan/Morphos
Releases · wapmorgan/Morphos
2.4.2: Iterative changes
Updated gender-detection rules.
2.4.1: Fixed setting default encoding
Small fix.
2.4.0: No global functions and new shortcuts
- Deleted all global functions! Now global namespace is not used at all.
- Added new shortcuts:
morphos\Russian\pluralize($word, $count = 2, $animateness = false)
morphos\English\pluralize($word, $count = 2)
- Changed one shortcut:
morphos\Russian\nameCase()
is renamed tomorphos\Russian\name()
- Refactored and restructured few classes.
- Added string helper
morphos\S
for internal use.
2.3.5: Fixed bug in Ordinal numeral generator
- Fixed bug in Ordinal numeral generator when numbers like
13
or1013
formatted as two summands.
2.3.4: Fixed cases collisions in nameCase()
- Fixed handling of PREPOSITIONAL case in nameCase() function.
2.3.3: Fix method names collision in CasesHelper's
- Fixed collision leading to error when using morphos\Russian\CasesHelper.
2.3.2: Russian ordinal numerals and English cardinal numerals
- Added support for generation Russian ordinal numerals (
525
=>пятьсот двадцать пятый
) - Added support for generation English cardinal numerals (
119
=>one hundred nineteen
)
2.3.1: Standard declensions definitions and gender auto-detection
- Change declensions definitions
- Add gender auto-detection in declension classes
2.3.0: Changes in method names and cases
- Refactored method names:
getForm()
->getCase()
getForms()
->getCases()
hasForms()
->isMutable()
- Now you can use following values as
$case
ingetForm()
methods and innameCase()
function:nominative
,nominativus
,n
,именительный
,именит
instead ofCases::NOMINATIVE
genetive
,g
,родительный
,родит
instead ofCases::GENITIVE
dative
,dativus
,d
,дательный
,дат
instead ofCases::DATIVE
accusative
,винительный
,винит
instead ofCases::ACCUSATIVE
ablative
,ablativus
,творительный
,творит
instead ofCases::ABLATIVE
prepositional
,praepositionalis
,p
,предложный
,предлож
instead ofCases::PREPOSITIONAL
2.2.9: GENETIVE case replaced with GENITIVE
- Changed constant
Cases::GENETIVE
toCases::GENITIVE
. The old constant will be present inmorphos
for a while. - Some code refactored