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
| Side | Sign | Name | Unicode |
|---|---|---|---|
| Left | & | Ampersand | U+0026 |
| Right | & | Ampersand | U+0026 |
&abc& ↓ Formatter optimisation for source legibility ↓ &abc⅋ |
|---|
| Side | Sign | Name | Unicode |
|---|---|---|---|
| Left | & | Ampersand | U+0026 |
| Right | ⅋ | Turned Ampersand | U+214B |
Internally Allowed Constructs
| Construct | Specific Reference | General 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
| Notation | Simplified AST | Paper 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 withinLexicalUnit(notation, AST or rendering depending on its placement).
Examples
| Notation | Paper Output |
|---|---|
|
ab-c
|
|
ab c
|
|
abc defg hijk l
|
|
abc
|
|
abc def hijk
|
EpiDoc Outputs
| Notation | EpiDoc (XML) |
|---|---|
|
|
|
|
|
|
|
|
|
|
Structural Analysis (Conceptual AST)
| Notation | AST |
|---|---|
|
|
|
|
|
|
|
|
|
|