$row["name"], "description" => $row["description"]];
},
function ($value)
{
$output = "";
if ($value["name"] != null) $output .= (mark($value["name"], ["grammarterm"]) . ": ");
if ($value["description"] != null) $output .= ($value["description"]);
return $output;
}
),
/*
new class_column
(
"Cognates",
function ($row)
{
return $row["cognates"];
},
function ($value)
{
return implode(", ", array_map(function ($entry) {return ($entry["language"] . ": " . mark($entry["affix"], ["word", "lang_" . $entry["language"]]));}, $value));
}
),
*/
new class_column
(
"Example",
function ($row)
{
global $configuration;
return ["original" => [$row["example"]["word"]], "translated" => $row["example"]["translations"][$configuration["target"]]];
},
_bar("word")
),
],
read_json("source/data/word_functions.json")
);
$table->generate();
?>
Some complex examples:
- ["unmanlikhed"], "translated" => ["inhumanity"]])); ?>
- ["seberenung"], "translated" => ["visualization"]])); ?>
- ["kraftigenar"], "translated" => ["fortifier"]])); ?>