Jump to content
Wikimedia Meta-Wiki

Module:Sandbox/AbstractWikipedia/Functions/fi

From Meta, a Wikimedia project coordination wiki
Module documentation
You might want to create a documentation page for this Scribunto module.
Editors can experiment in this module’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this module.
 local p = {}

 local f = require("Module:Sandbox/AbstractWikipedia/Functions")
 local wd = require("Module:Sandbox/AbstractWikipedia/Wikidata")


 -- Generates a pronoun lexeme; currently only third person singular.
 -- If a q_id is given, the generated pronoun will correspond to that item,
 function p.Pronoun ( q_id )
	local lexeme = f.Lexeme("L6500") -- hän
	if q_id and wd.isDead(q_id) then 
		-- We add a past tense feature for lexeme of dead people, as they are
		-- normally spoken about in the past tense. This can exposed to the
		-- verb by using the "tsubj relation".
		lexeme.addFeature("nominal_tense", "past")
	end
	return lexeme
 end

 return p

AltStyle によって変換されたページ (->オリジナル) /