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

GrammarKk_cyrl. More...

Inherits Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer.

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

Public Member Functions

 lc (string $str, bool $first=false)
 
 lcfirst (string $str)
 
 process (string $word, string $case)
 Applies Cyrillic Kazakh-specific grammatical transformations.
 

Detailed Description

GrammarKk_cyrl.

Implements grammar transformations for Kazakh using the Cyrillic script.

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 25 of file GrammarKk_cyrl.php.

Member Function Documentation

◆ lc()

Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKk_cyrl::lc ( string $str,
bool $first = false )
Parameters
string$str
bool$firstWhether to lowercase only the first character
Returns
string The string with lowercase conversion applied

Definition at line 331 of file GrammarKk_cyrl.php.

◆ lcfirst()

Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKk_cyrl::lcfirst ( string $str)
Parameters
string$str
Returns
string The string with lowercase conversion applied to the first character

Definition at line 344 of file GrammarKk_cyrl.php.

◆ process()

Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKk_cyrl::process ( string $word,
string $case )

Applies Cyrillic Kazakh-specific grammatical transformations.

Convert from the nominative form of a noun to some other case Invoked with {{GRAMMAR:case|word}}

Cases: genitive, dative, accusative, locative, ablative, comitative + possessive forms

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 40 of file GrammarKk_cyrl.php.


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