Module:Sandbox/AbstractWikipedia/Relations/doc
This is the documentation page for Module:Sandbox/AbstractWikipedia/Relations
This is a documentation subpage for Module:Sandbox/AbstractWikipedia/Relations. It contains usage information, categories, and other content that is not part of the original module page. |
This is the relatons module of the Abstract Wikipedia template-renderer prototype.
You can define here new relations to be used in the template language.
A relation always takes two arguments, source
and target
, of type lexeme
, as defined in the Module:Sandbox/AbstractWikipedia/Lexemes module. Then it can verify the lexemes' part of speech using the verifyPOS
function and unify features of the two lexemes using the unifyFeatures
function defined in the Module:Sandbox/AbstractWikipedia/UnifiableFeatures module.
The relations used should normally be defined as corresponding to Universal Dependencies or Surface-Syntactic Universal Dependencies but there is no formal limitation.
Language-specific implementations
editYou may override and define language-specific relations language sub-modules. Currently the following are implemented:
- Module:Sandbox/AbstractWikipedia/Relations/he for Hebrew.
- Module:Sandbox/AbstractWikipedia/Relations/zu for Zulu.