|
MediaWiki master
|
GrammarFallbackRegistry. More...
Public Member Functions | |
| apply (string $langCode, string $word, string $case) | |
| Applies a grammar transformation using the transformer for the given language. | |
| getProcessor (string $langCode) | |
| Retrieves the grammar transformer for the given language, if defined. | |
Protected Member Functions | |
| getSpecArgs (array $spec, LoggerInterface $logger) | |
| getSpecMap () | |
GrammarFallbackRegistry.
Manages the registration and retrieval of language-specific grammar transformers, which can be used to apply procedural grammar fallbacks for specific languages.
Definition at line 33 of file GrammarFallbackRegistry.php.
| Wikimedia\Leximorph\Handler\Overrides\GrammarFallbackRegistry::apply | ( | string | $langCode, |
| string | $word, | ||
| string | $case ) |
Applies a grammar transformation using the transformer for the given language.
| string | $langCode | Language code. |
| string | $word | Word or phrase to transform. |
| string | $case | Grammatical case (e.g., 'genitive', 'instrumental'). |
Definition at line 132 of file GrammarFallbackRegistry.php.
| Wikimedia\Leximorph\Handler\Overrides\GrammarFallbackRegistry::getProcessor | ( | string | $langCode | ) |
Retrieves the grammar transformer for the given language, if defined.
| string | $langCode | Language code. |
Definition at line 113 of file GrammarFallbackRegistry.php.
|
protected |
Definition at line 101 of file GrammarFallbackRegistry.php.
|
protected |
Definition at line 87 of file GrammarFallbackRegistry.php.