Dialect

Every literal token of the CANE surface form. ENGLISH is the default.

Usage

Source

Dialect(
    *,
    header="Entities:",
    empty="NONE",
    quote_open="`",
    quote_close="`",
    copula_singular="is",
    copula_plural="are",
    articles=("a", "an"),
    anchor_intro="found in",
    part_connective="and",
    anchor_connective="and",
    record_separator="\n",
    handle_prefix="T"
)

Attributes

header: str

First line of every non-empty output.

empty: str

The whole output when there are no entities.

quote_open: str

Delimiter opening a part or anchor.

quote_close: str

Delimiter closing a part or anchor.

copula_singular: str

Verb for one part (is).

copula_plural: str

Verb for several parts (are).

articles: tuple[str, …]

Accepted articles; the formatter (dumps) always writes the first.

anchor_intro: str

Phrase introducing the anchors (found in).

part_connective: str

Joins parts (and).

anchor_connective: str

Joins anchors (and).

record_separator: str

Separates records.

handle_prefix: str
Prefix of record handles (T as in T1).