Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4062759
IGrammarTransformer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
940 B
Referenced Files
None
Subscribers
None
IGrammarTransformer.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
namespace
Wikimedia\Leximorph\Handler\Overrides
;
/**
* 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 (abaris@null.net)
* @license https://www.gnu.org/copyleft/gpl.html GPL-2.0-or-later
*/
interface
IGrammarTransformer
{
/**
* Applies a procedural transformation to a word for a specific grammatical case.
*
* @param string $word The input word or phrase to transform.
* @param string $case The grammatical case to apply (e.g., "genitive", "dative").
*
* @since 1.45
* @return string The transformed word after applying grammar logic.
*/
public
function
process
(
string
$word
,
string
$case
):
string
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 16 2026, 11:22 (13 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
75/1a/76eeff12b2311b38031bc638f7db
Default Alt Text
IGrammarTransformer.php (940 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment