source/content/tempora_and_modi.html.php
579dbe00
 <section class="subsection" id="tempora_and_modi">
dee63d95
 	<header>Timeforms and modes</header>
000b5f04
 	<?php proposal(); ?>
dee63d95
 	<p>The following table lists the basic timeforms found in Folksprak and how they are built in the <span class="grammarterm">indicative</span> mode.</p>
579dbe00
 <?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)
 			{
f662d51c
 				return format($value, ["type_word", "lang_flk"]);
579dbe00
 			}
 		),
 		new class_column
 		(
 			"Example",
459c0868
 			"example_",
8794e319
 			_bar("type_sentence")
579dbe00
 		),
 	],
459c0868
 	sql_condense
 	(
dee63d95
 		array_slice(read_json("source/data/timeforms.json"), 0, 4),
459c0868
 		["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
 ?>
dee63d95
 	<p>These forms can be combined straightforward to form complex timeforms:</p>
 	<ul>
 		<li><?php echo(format_correlation("type_sentence")(["flk" => ["Ek havde skrivt."], "eng" => ["I had written."]])); ?></li>
 		<li><?php echo(format_correlation("type_sentence")(["flk" => ["Ek skal have skrivt."], "eng" => ["I will have written."]])); ?></li>
 		<!--
 		<li><?php echo(format_correlation("type_sentence")(["flk" => ["Ek hav skalt skrive."], "eng" => ["I was going to write."]])); ?></li>
 		  -->
 	</ul>
f662d51c
 	<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_flk"])); ?> or <?php echo(mark("je", ["type_word", "lang_flk"])); ?>) in order to specify or emphasize the numerus. Examples: <?php echo(mark("skriv!", ["type_sentence", "lang_flk"])); ?>, <?php echo(mark("skriv, je!", ["type_sentence", "lang_flk"])); ?>.</p>
dee63d95
 	<p>There are two ways to form the <span class="grammarterm">subjunctive</span>. One is to use the special modal verb <?php echo(mark("vöre", ["type_word", "lang_flk"])); ?> 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_flk"])); ?>. Both can be applied to the indicative forms, e.g.: <?php echo(format_correlation("type_sentence")(["flk" => ["Ek vör have skrivt."], "eng" => ["I would have written."]])); ?></p>
579dbe00
 </section>