source/content/tempora_and_modi.html.php
579dbe00
 <section class="subsection" id="tempora_and_modi">
 	<header>Tempora and Modi</header>
000b5f04
 	<?php proposal(); ?>
579dbe00
 	<p>The following table lists the timeforms found in Folksprak and how they are built in the <span class="grammarterm">indicative</span> mode.</p>
 <?php
b3c1b9b9
 (new class_table
579dbe00
 (
 	[
 		new class_column
 		(
 			"Name",
459c0868
 			"name_",
579dbe00
 			function ($value)
 			{
 				$output = $value["name"];
 				if ($value["remark"] != null)
 				{
 					$output .= (" " . "(" . $value["remark"] . ")");
 				}
 				return $output;
 			}
 		),
 		new class_column
 		(
 			"Description",
459c0868
 			"description"
579dbe00
 		),
 		new class_column
 		(
 			"Scheme",
459c0868
 			"scheme",
579dbe00
 			function ($value)
 			{
 				return format($value, ["word", "lang_fs"]);
 			}
 		),
 		new class_column
 		(
 			"Example",
459c0868
 			"example_",
579dbe00
 			_bar("sentence")
 		),
 	],
459c0868
 	sql_condense
 	(
 		array_slice(read_json("source/data/timeforms.json"), 0, 3),
 		["name","remark","example"],
 		["name_","example_"],
 		[
 			"name_" => function ($row) {return ["name" => $row["name"], "remark" => $row["remark"]];},
 			"example_" => function ($row) {global $configuration; return ["original" => [$row["example"]["original"]], "translated" => $row["example"]["translations"][$configuration["target"]]];},
 		]
 	)
b3c1b9b9
 ))->generate();
579dbe00
 ?>
000b5f04
 	<p>Since these forms are built with auxiliary verbs, they can be combined straightforward to form complex expressions, e.g. <?php echo(call_user_func(_bar("sentence"), ["original" => ["Ek skal have skrivt."], "translated" => ["I will have written."]])); ?><!-- or <?php echo(call_user_func(_bar("sentence"), ["original" => ["Ek hav skalt skrive."], "translated" => ["I was going to write."]])); ?> -->.</p>
 	<p>The <span class="grammarterm">imperative</span> only exists in the present (with future meaning) for the 2nd person singular and plural. It is formed by using the bare stem of the verb, optionally followed by the personal pronoun (i.e. either <span class="word lang_fs">du</span> or <span class="word lang_fs">jer</span>) in order to specify or emphasize the numerus. Examples: <span class="sentence lang_fs">skriv!</span>, <span class="sentence lang_fs">skriv, jer!</span>.</p>
579dbe00
 	<span class="todo">conjunctive</span>
 </section>