MediaWiki master
Wikimedia\Leximorph\Handler\Overrides\IGrammarTransformer Interface Reference

IGrammarTransformer. More...

Inherited by Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarCu, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarFi, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarGa, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarHy, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKaa, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKk, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKk_cyrl, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarKsh, Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarOs, and Wikimedia\Leximorph\Handler\Overrides\Grammar\GrammarTyv.

Public Member Functions

 process (string $word, string $case)
 Applies a procedural transformation to a word for a specific grammatical case.
 

Detailed Description

IGrammarTransformer.

Interface for implementing language-specific grammar fallback logic. This contract is used by GrammarFallbackRegistry to apply procedural grammar transformations in cases where declarative grammar rules may not be sufficient.

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 20 of file IGrammarTransformer.php.

Member Function Documentation

◆ process()

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

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