Skip to main content

review.page.terms_table

review.page.terms_table(terms, hints=True)

A table of the words of a vocabulary, for the intro of a page.

Parameters

Name Type Description Default
terms tuple[Term, …] The vocabulary. required
hints bool Whether to add the column “how to tell it from its neighbour”. True

Returns

Name Type Description
str str An HTML table.

Examples

from babregen.review.page import terms_table
from babregen.review.vocab import VERDICTS

print(terms_table(VERDICTS, hints=False))
<table><tr><th>Word</th><th>Meaning</th></tr><tr><th>gap</th><td>an evaluation is missing.</td></tr><tr><th>output</th><td>the mutant changes only text that no intent item pins.</td></tr><tr><th>equivalent</th><td>no behaviour changes.</td></tr></table>