MediaWiki master
Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKsh Class Reference

GrammarKsh. More...

Inherits Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer.

Collaboration diagram for Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKsh:

Public Member Functions

 process (string $word, string $case)
 Applies Colognian-specific grammatical transformations.
 

Detailed Description

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.

Since
1.45
Author
Doğu Abaris (abari.nosp@m.s@nu.nosp@m.ll.ne.nosp@m.t)
Note
https://www.gnu.org/copyleft/gpl.html GPL-2.0-or-later

Definition at line 24 of file GrammarKsh.php.

Member Function Documentation

◆ process()

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.

Parameters
string$wordThe word to process.
string$caseThe grammatical case.
Since
1.45
Returns
string The processed word.

Implements Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer.

Definition at line 86 of file GrammarKsh.php.


The documentation for this class was generated from the following file: