Advanced Search#
The Advanced Search implements the CQP query syntax. CQP is a powerful query language for searching linguistic corpora. It is designed for querying large annotated text corpora with complex conditions and linguistic annotations. CQP syntax allows for pattern matching, searching for word forms, lemmas, parts of speech, named entities and other annotations, and supports advanced linguistic queries. In the following sections, we show some of the most important, but not all features of the CQP syntax. For exploring its full capacity, see CQP Interface and Query Language Manual and The CQP Query Language Tutorial.
Examples in German#
Search Type |
Syntax |
Explanation |
|---|---|---|
One-term search |
|
Searches for the exact word Demokratie. |
Word search using parameter |
|
Searches for the word Demokratie using the word parameter. |
Lemma search |
|
Searches for all inflected forms of the lemma Demokratie. |
Part-of-speech (PoS) search |
|
Searches for common nouns (NN), see the German PoS tagset. |
Named Entity (NER) search |
|
Searches for named entities labeled as LOC (locations). You can also specify ORG for organisations and PER for persons |
Finding a sequence of words |
|
Searches for an attributive adjective (ADJA), followed by the lemma Gesellschaft. |
Combining multiple PoS tags |
|
Searches for either an attributive adjective (ADJA) or an article (ART), followed by Gesellschaft. |
Multiple conditions in one token |
|
Searches for the lemma Essen, but only when tagged as a noun (NN). |
Negation (Excluding a specific PoS tag) |
|
Searches for gross, but only when it is not tagged as a predicative adjective or adverb (ADJD). |
Longer word sequences |
|
Searches for an article (ART), followed by an adjective (ADJA), followed by Gesellschaft. |
See also
See Tagsets for the full list of German PoS tags.
Examples in French#
Search Type |
Syntax |
Explanation |
|---|---|---|
One-term search |
|
Searches for the exact word démocratie. |
Word search using parameter |
|
Searches for the word démocratie using the word parameter. |
Lemma search |
|
Searches for all inflected forms of the lemma démocratie. |
Part-of-speech (PoS) search |
|
Searches for nouns (NOUN) in the French PoS tagset. |
Named Entity (NER) search |
|
Searches for named entities labeled as LOC (locations). You can also specify ORG for organisations and PER for persons |
Finding a sequence of words |
|
Searches for an adjective (ADJ), followed by the lemma société. |
Combining multiple PoS tags |
|
Searches for either an adjective (ADJ) or a determiner (DET), followed by société. |
Multiple conditions in one token |
|
Searches for the lemma marche, but only when tagged as a noun (NOUN). |
Negation (Excluding a specific PoS tag) |
|
Searches for grand, but only when it is not tagged as an adverb (ADV). |
Longer word sequences |
|
Searches for a determiner (DET), followed by an adjective (ADJ), followed by société. |
See also
See Tagsets for the full list of French PoS tags.
Examples in Italian#
Search Type |
Syntax |
Explanation |
|---|---|---|
One-term search |
|
Searches for the exact word democrazia. |
Word search using parameter |
|
Searches for the word democrazia using the word parameter. |
Lemma search |
|
Searches for all inflected forms of the lemma democrazia. |
Part-of-speech (PoS) search |
|
Searches for nouns (NOUN) in the Italian PoS tagset. |
Named Entity (NER) search |
|
Searches for named entities labeled as LOC (locations). You can also specify ORG for organisations and PER for persons |
Finding a sequence of words |
|
Searches for the lemma società, followed by an adjective (ADJ). |
Combining multiple PoS tags |
|
Searches for either an adjective (ADJ) or a determiner (DET), followed by società. |
Multiple conditions in one token |
|
Searches for the lemma lavoro, but only when tagged as a noun (NOUN). |
Negation (Excluding a specific PoS tag) |
|
Searches for grande, but only when it is not tagged as an adverb (ADV). |
Longer word sequences |
|
Searches for a determiner (DET), followed by an adjective (ADJ), followed by società. |
See also
See Tagsets for the full list of Italian PoS tags.
Regular Expressions#
This CQP syntax accepts regular expressions, which act as placeholders for certain characters or combinations of characters. The following table shows the most important regular expressions and examples how to use them:
RegEx |
Meaning |
Example |
|---|---|---|
|
Matches any single character: |
DE: |
|
Repetition operator: The preceding character must occur at least once but can appear multiple times (up to the word boundary). Useful with |
DE: |
|
Repetition operator: The preceding character can occur any number of times, including zero (up to the word boundary). Useful with |
DE: |
|
Repetition operator: The preceding character is optional (can appear or not): |
DE: |
|
Matches either element in parentheses separately: |
DE: |
|
Matches between 0 and 3 repetitions of the preceding element. Multiple elements can be included in square brackets: |
DE: |
|
Matches any single token between search terms: |
DE: |
|
Excludes the characters in brackets after |
DE: |
|
Excludes any match for the expression after the exclamation mark. |
DE: |
|
Combines |
DE: |
|
Interprets characters literally, even if they are placeholders in CQP: |
DE: |
|
Case-insensitive search: |
DE: |