|
MediaWiki master
|
GrammarKsh. More...
Inherits Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer.

Public Member Functions | |
| process (string $word, string $case) | |
| Applies Colognian-specific grammatical transformations. | |
GrammarKsh.
Implements grammar transformations for Colognian (ksh).
These rules don't cover the whole grammar of the language. This logic was originally taken from MediaWiki Core. Thanks to all contributors.
Definition at line 24 of file GrammarKsh.php.
| Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKsh::process | ( | string | $word, |
| string | $case ) |
Applies Colognian-specific grammatical transformations.
$case is a sequence of words, each of which is case insensitive. There must be at least one space character between words. Only the 1st character of each word is considered. Word order is irrelevant.
Possible values specifying the grammatical case are: 1, Nominative 2, Genitive 3, Dative 4, Accusative, -omitted-
Possible values specifying the article type are: Betoont focussed or stressed article -omitted- unstressed or unfocused article
Possible values for the type of genitive are: Sing, Iehr prepositioned genitive = possessive dative Vun, Fon, -omitted- postpositioned genitive = preposition "vun" with dative
Values of case overrides & prepositions, in the order of precedence: Sing, Iehr possessive dative = prepositioned genitive Vun, Fon preposition "vun" with dative = post positioned genitive En, em preposition "en" with dative
Values for object gender specifiers of the possessive dative, or prepositioned genitive, evaluated with "Sing, Iehr" of above only: Male a singular male object follows -omitted- a non-male or plural object follows
We currently handle definite articles of the singular only. There is a full set of test cases at: http://translatewiki.net/wiki/Portal:Ksh#GRAMMAR_Pr%C3%B6%C3%B6fe Contents of the leftmost table column can be copied and pasted as "case" values.
| string | $word | The word to process. |
| string | $case | The grammatical case. |
Implements Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer.
Definition at line 86 of file GrammarKsh.php.