Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Lexical Unit

A lexical unit (word in the broad sense) with a precise boundary.

It allows a unit, very often a word, to be delimited regardless of its physical layout on the support, allowing recompositions split by fractures or line breaks, and supports linguistic-lexical annotations (cf. Direct Annotation of a Lexical Unit).

Delimiters

SideSignNameUnicode
Left&AmpersandU+0026
Right&AmpersandU+0026

&abc& ↓ Formatter optimisation for source legibility ↓ &abc⅋

SideSignNameUnicode
Left&AmpersandU+0026
Right⅋Turned AmpersandU+214B

Internally Allowed Constructs

ConstructSpecific ReferenceGeneral Reference
Unclear—🔎 Unclear
Supplied—🔎 Supplied
PreviousSeen—🔎 PreviousSeen
Omitted—🔎 Omitted
Surplus—🔎 Surplus
Erasure—🔎 Erasure
Correction—🔎 Correction
Addition—🔎 Addition
Ligature—🔎 Ligature
ApparatusMark—🔎 ApparatusMark
ApparatusNote—🔎 ApparatusNote
LexicalUnit—🔎 LexicalUnit
Strong—🔎 Strong
Emphasis—🔎 Emphasis

Syntax

Any notation of a phenomenon (IbiUnit) allowed within LexicalUnit enclosed between ampersands &…&. Optionally, linguistic annotations can follow after a semicolon ;.

LexicalUnit exceptionally supports a special notation for associating an identifier: right after the content, write # followed by the id, for example &textus#w1&. On other constructs the same goal is achieved with the general attribute syntax |xml:id=w1| (cf. EpiDoc Attribute in IbiScript); here #id replaces it.

The id is especially useful in IbiScript as the target of external annotations, defined through the Standoff construct (cf. Stand-off Annotation of a Lexical Unit), which keeps linguistic analysis separate from the text.

To quickly mark a series of adjacent lexical units, the sequence can be enclosed within ampersands &…& with the individual units separated by a vertical bar |, for example &abc|def|hijk&.

This notation is only an input shorthand: it is expanded into separate lexical units (&abc⅋&def⅋&hijk⅋), and the formatter always emits the expanded form. Since lexical units exist to be annotated, and every annotation (linguistic analysis, xml:id, attributes) requires its own &…&, the pipe form is neither preserved nor combinable with annotations.

Overview

NotationSimplified ASTPaper Output
&𝑆×𝑁;λₛ=λᵥ;…&LexicalUnit{content: [⊙], annotations: LinguisticAnalysis{λₖ:λᵥ, …}}𝑆×𝑁
  • 𝑆 = any sign (Unicode character) ∉ STOP_SET (cf. Technical Catalogue of Symbols) otherwise preceded by the escape character \.
  • 𝑁 = number of characters (represented by char or digits).
  • λₛ = label, which may also be in abbreviated form, for linguistic annotation.
  • λᵥ = value of the linguistic annotation (plausibility scale).
  • λₖ = canonical key for the linguistic annotation derived from the corresponding label.
  • ⊙ ∈ LEXICALUNIT_ALLOWED = any phenomena allowed within LexicalUnit (notation, AST or rendering depending on its placement).

Examples

NotationPaper Output
&ab-c&
ab-c
&*ab* [c]&
ab c
&
abc defg  hijk l
&
abc defg hijk l
&abc#w1&
abc
&abc|def|hijk&
abc def hijk

EpiDoc Outputs

NotationEpiDoc (XML)
&ab-c&
<ab>
    <w>ab<lb break="no"/>c</w>
</ab>
&*ab* [c]&
<ab>
    <w>
        <unclear cert="medium">ab</unclear> 
        <supplied reason="lost" cert="medium">c</supplied>
    </w>
</ab>
&
abc defg  hijk l
&
<ab>
    <w>abc defg hijk l</w>
</ab>
&abc#w1&
<ab>
    <w xml:id="w1">abc</w>
</ab>
&abc|def|hijk&
<ab>
    <w>abc</w>
    <w>def</w>
    <w>hijk</w>
</ab>

Structural Analysis (Conceptual AST)

NotationAST
&ab-c&
LexicalUnit
  Plain("ab")
  WordBreak
  Plain("c")
&*ab* [c]&
LexicalUnit
  Unclear[medium, legibility: normal]
    Plain("ab")
  WS
  Supplied[medium]
    Plain("c")
&
abc defg  hijk l
&
LexicalUnit
  Plain("abc")
  WS
  Plain("defg")
  WS
  Plain("hijk")
  WS
  Plain("l")
&abc#w1&
LexicalUnit
  Plain("abc")
&abc|def|hijk&
LexicalUnit
  Plain("abc")
LexicalUnit
  Plain("def")
LexicalUnit
  Plain("hijk")