<section class="subsection" id="tempora_and_modi">
	<header>Tempora and Modi</header>
	<?php proposal(); ?>
	<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
(new class_table
(
	[
		new class_column
		(
			"Name",
			"name_",
			function ($value)
			{
				$output = $value["name"];
				if ($value["remark"] != null)
				{
					$output .= (" " . "(" . $value["remark"] . ")");
				}
				return $output;
			}
		),
		new class_column
		(
			"Description",
			"description"
		),
		new class_column
		(
			"Scheme",
			"scheme",
			function ($value)
			{
				return format($value, ["type_word", "lang_fs"]);
			}
		),
		new class_column
		(
			"Example",
			"example_",
			_bar("type_sentence")
		),
	],
	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"]]];},
		]
	)
))->generate();
?>
	<p>Since these forms are built with auxiliary verbs, they can be combined straightforward to form complex expressions, e.g. <?php echo(format_correlation("type_sentence")(["fs" => ["Ek skal have skrivt."], "en" => ["I will have written."]])); ?><!-- or <?php echo(format_correlation("type_sentence")(["fs" => ["Ek hav skalt skrive."], "en" => ["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 <?php echo(mark("du", ["type_word", "lang_fs"])); ?> or <?php echo(mark("je", ["type_word", "lang_fs"])); ?>) in order to specify or emphasize the numerus. Examples: <?php echo(mark("skriv!", ["type_sentence", "lang_fs"])); ?>, <?php echo(mark("skriv, je!", ["type_sentence", "lang_fs"])); ?>.</p>
	<p>There are two ways to the <span class="grammarterm">subjunctive</span>. One is to use the special modal verb <?php echo(mark("vöre", ["type_word", "lang_fs"])); ?> which can be understood as a wrapper for regular verbs. The other possibility is to use the adverbial particle <?php echo(mark("maglik", ["type_word", "lang_fs"])); ?>.</p>
</section>