Corpus search reference
Quick start
A corpus query is a sequence of word terms separated by spaces (adjacent
words) or ~ (proximity), optionally preceded by one or more
#Author or #Author/Work scope filters. Click
any example below to run it in the corpus search bar:
| Query | What it matches |
|---|---|
| amoris | Exact word (case-insensitive) |
| con* | Words starting with con- (or *que for
suffix, in*bilis for both) |
| gallia est omnis | Contiguous phrase in exact word order |
| @lemma:amo | Every inflected form of the dictionary headword amo |
| (@lemma:amo and @voice:passive) | Passive forms of amo (two filters on the same word) |
| @lemma:do ~3 @case:dat | Any form of do within 3 words of a dative word |
| #Caesar/DeBelloGallico omnis | omnis restricted to Caesar's De Bello Gallico |
Words
A bare token without @, #, or
~ matches that exact word form in the text: for example,
amoris matches every occurrence of
amoris.
-
Case-insensitive: Word queries are lowercased before
lookup, so
amoris,Amoris, andAMORISall return the same matches. - No macrons or breves: Long and short vowel marks are stripped when the corpus is indexed. Write query words in plain ASCII letters without macrons or breves.
-
Edition spelling (
u/v): Exact word tokens match the spelling printed in the edition. To match every spelling and inflected form of a word across editions, use a@lemma:filter instead.
Wildcards (*)
Include a single * in a word token to match any zero or
more characters at the start, end, or middle of a word:
-
Prefix (
prefix*):con*matches words starting with con- (including con itself, contra, consilium, and so on). -
Suffix (
*suffix):*quematches words ending with -que (such as atque, populusque, and ubique). -
Prefix and suffix (
prefix*suffix):in*bilismatches words starting with in- and ending with -bilis (such as incredibilis and innumerabilis). -
Combining with other filters: Wildcards can be
combined with
andororinside parentheses like any other word filter — for example,(con* and @voice:passive)or(con* or per*). -
Rules: Each wildcard word must include at least
3 plain ASCII letters
(
a–z, no macrons) and at most one*(infix patterns like*mor*are not supported). Wildcards apply only to bare word tokens, not to@lemma:or@case:values.
Lemmas (@lemma / @l)
Prefix a dictionary headword with @lemma: (or the short
form @l:) to match every inflected form that the Morceus
morphological analyzer assigns to that lemma:
-
@lemma:amoor@l:amomatches amo, amas, amavit, amatus, amandi, and all other forms of amo. -
@lemma:feroincludes irregular and suppletive stems (fero, tulit, latum). -
Case resolution: Exact case-sensitive matches win
first (distinguishing capitalized proper nouns from lowercase words
where both exist); otherwise a unique case-insensitive match is used
automatically (so
@lemma:caesarresolves toCaesar). -
Homographs: Distinct headwords that share a spelling
are numbered with
#N(for example,@lemma:edo#1“eat” vs.@lemma:edo#2“put forth”). If a lemma is ambiguous, the search error lists the choices.
Inflection categories
Filter words by grammatical feature with
@<category>:<value>. Every category has a
one-letter shorthand (the first letter of the category name), and nearly
every value has a 3–4 letter abbreviation. For example,
@case:genitive,
@case:gen,
@c:genitive, and
@c:gen are all equivalent.
| Category | Short | Values (long & short) | Example |
|---|---|---|---|
@case
|
@c
|
nominative (nom), genitive (gen), dative (dat), accusative (acc), ablative (abl), vocative (voc) |
@case:genitive |
@tense
|
@t
|
present (pres), imperfect (impf), future (fut), perfect (perf), pluperfect (plup), future-perfect (futp) |
@tense:imperfect |
@voice
|
@v
|
active (act), passive (pass) |
@voice:passive |
@person
|
@p
|
1st, 2nd, 3rd |
@person:3rd |
@number
|
@n
|
singular (sing), plural (plur) |
@number:plural |
@gender
|
@g
|
masculine (masc), feminine (fem), neuter (neut) |
@gender:neuter |
@mood
|
@m
|
indicative (ind), subjunctive (subj), imperative (imper), infinitive (inf), participle (part), gerundive (ger), supine |
@mood:subjunctive |
Morphological ambiguity and false positives
Corpus tokens are tagged automatically by the morphological analyzer rather than hand-disambiguated in context. Because many Latin endings are shared across cases, numbers, or even parts of speech, a token can carry multiple candidate analyses:
-
puellaecan be genitive singular, dative singular, or nominative/vocative plural of puella. In default (Relaxed) mode,puellaematches@case:gen,@case:dat, and@number:plur. -
Per-analysis validation on
and: When you combine filters on the same word withand, a single analysis of that word must satisfy all of the filters simultaneously. For instance,amoriscan be a noun (genitive singular of amor) or a verb (2nd singular present passive indicative of amo), so it does not match(@lemma:amo and @case:gen). -
Strict mode: Turning on
Strict mode requires every possible
analysis of a matched word to satisfy the query’s
@lemmaand@inflectionconstraints.
Combining filters on one word (and, or)
Join two or more word, @lemma, or
@inflection filters with and or
or inside parentheses to constrain a
single word position:
-
Conjunction (
and): Every filter must hold on the same morphological analysis of the word — for example,(@lemma:amo and @voice:passive),(@c:abl and @n:plur and @g:fem), or(amoris and @lemma:amor). -
Disjunction (
or): Any of the filters may match the word — for example,(@case:dat or @case:abl)or(@lemma:do or @lemma:habeo). -
When parentheses can be omitted: If the entire query
constrains a single word (such as
@c:gen and @l:amo), outer parentheses are added automatically. Always use parentheses when combining a multi-filter word with other words or~(such as(@lemma:do or @lemma:habeo) ~ @case:acc). -
Grammar restrictions:
-
andandorapply to a single word token, not across multi-word phrases. -
andandorcannot be mixed on the same word, and parentheses cannot be nested more than one level deep. - Negation (
!) is not supported. -
Grammatically impossible
andcombinations (such as two different cases on one word, a case combined with a finite verb mood, or a future subjunctive) return 0 results immediately.
-
Word order and proximity (~)
By default, spaces between terms require adjacent words in exact order.
Use ~ to search for words or phrases near each other:
| Operator | Meaning | Example |
|---|---|---|
A B (space) |
A immediately followed by B, with no
sentence break (.) or section boundary in between.
|
@l:do @c:dat |
A ~ B |
A and B within
5 words of each other, in
either order.
|
@lemma:do ~ @case:dat |
A ~N B
|
A and B within N words
(1–15) of
each other, in either order.
|
bellum ~3 causa |
A ~> B |
A within 5 words
strictly before B.
|
@lemma:do ~> @case:dat |
A ~N> B |
A within N words
(1–15)
strictly before B.
|
arma ~5> virumque |
Multi-word spans: Each side of ~ can be a
multi-word contiguous phrase (for example,
gallia est ~5 partes tres). A query can
contain up to 10 contiguous spans separated by
~.
Author and work scope (#Author,
#Author/Work)
Place one or more #Author or
#Author/Work filters at the very start of the query to
restrict which texts are searched:
-
Single author:
#Caesar @lemma:bellumsearches all works by Caesar. -
Single work:
#Caesar/DeBelloGallico omnissearches only Caesar’s De Bello Gallico. -
Multiple authors or works: List up to
20 scope filters at the start of the query —
for example,
#Caesar #Cicero @lemma:resor#Caesar #Cicero/DeOratore eloquentia. Results from any of the listed authors or works are included. -
Placement & casing: Scope filters must come
before all word,
@, and(tokens. Both author and work codes are matched case-insensitively. Browse the complete list in Authors and works below.
Settings and paging
Open the settings button in the search tray (or pass URL query parameters directly) to adjust how results are returned:
| Setting | URL param | Default | Range / values | Description |
|---|---|---|---|---|
| Context words | contextLen (or cl) |
20 | 1–100 | Number of words of surrounding passage text shown before and after each match. |
| Page size | pageSize (or ps) |
50 | 10–100 | Maximum number of matches shown per page. |
| Strict mode | strictMode (or sm) |
Off | 1 or omitted |
When enabled, @lemma and
@inflection filters match a token only if
every possible morphological analysis of that token
satisfies the filter.
|
| Page cursor | cursor (or cp) |
First page | <id>-<idx>-<cand> |
Set by the Next page button. Submitting the search form resets the cursor to page 1; use browser Back to return to earlier pages. |
Limits
-
Query body length: At most 100
characters after canonicalization, excluding any leading
#Authoror#Author/Workscope filters. -
Scope filters: At most 20
#Authoror#Author/Workfilters per query. - Proximity distance: 1–15 words (default 5).
-
Contiguous spans: At most 10
contiguous word/phrase spans connected by
~. -
Wildcards: At most 3 wildcard
(
*) terms per query. Each wildcard must have at least 3 fixed ASCII letters (a–z) and at most one*. Very broad wildcard combinations that exceed the query posting budget are rejected; add more letters or narrow with#Authoror#Author/Work.