Query types
The selector above the query box decides how your text is interpreted. The chosen type translates your query into CQL; the translation appears under the box, so you can always see what is being searched.
| Type | You type | Searched | When |
|---|---|---|---|
| Simple | kitap | kitap (word form) |
A word as it appears in the text. |
| Lemma | gel | [kok="gel"] |
Word forms that share the same lemma: geldi, gelecek, gelmiş… |
| Phrase | ne var ki, |
[sozcuk="ne"] [sozcuk="var"] [sozcuk="ki"] [sozcuk=","] |
A sequence exactly as written. Punctuation counts as a
separate token; * and ? are not
wildcards. |
| Word form | yüz + Part of speech: Noun |
[sozcuk="yüz" & pos="NOUN"] |
A form restricted to one part of speech: “yüz” the noun (face), not “yüz” the numeral (hundred). |
| Character string | lık | [sozcuk=".*lık.*"] |
Words containing a sequence of letters. |
| CQL | [pos="ADJ"] [kok="ev"] | As typed | Queries that combine fields, sequences or regular expressions. |
Text containing a square bracket ([) is run as CQL
whatever type is selected.
Two options under the box appear depending on the type:
- Part of speech (Lemma, Word form): restricts results to
one part of speech;
& pos="…"is added to the query. - Match case (Simple, Phrase, Word form, Character string):
Ankarafinds only “Ankara” with a capital A;%his added to the query. Details: Letter case: %h.
Simple queries and wildcards
A simple query searches word forms. By default it is
case-insensitive and follows Turkish casing rules:
İstanbul, istanbul and ISPARTA
are lowercased correctly (I → ı, İ → i). Tick “Match
case” if you need the distinction.
| Query | Meaning | Example matches |
|---|---|---|
kitap | Exact word form | kitap |
kitap* | *: zero or more letters | kitap, kitaplar, kitapçı |
ev? | ?: exactly one letter | eve, evi (not evde) |
*lık | Forms ending in “-lık” | yıllık, kitaplık |
bir şey | Two consecutive words | bir şey |
Wildcards work in the Simple, Lemma and Word form types, not in
Phrase. In CQL the same is done with regular expressions:
.* for *, . for
?.
CQL: fields and operators
Each pair of square brackets describes one token (a word or a
punctuation mark). Inside you can write one or more conditions:
field="value".
| Field | Aliases | Content | Example |
|---|---|---|---|
sozcuk | word |
The form as written in the text. Case-insensitive by default;
case-sensitive with %h | [sozcuk="geldi"] |
kok | lemma |
Lemma (dictionary form). Covers every form that shares the lemma | [kok="gel"] |
tur | pos, upos, tag |
Part of speech. Either the UD code (VERB) or the Derlemce value (FİİL) |
[pos="VERB"] |
bicim | feats |
Morphological features. Matches any single component of the feature set | [feats="Case=Acc"] |
[lemma="gel" & feats="Tense=Fut"]& — both conditions: future-tense “gel”
[lemma="ev" | lemma="yuva"]| — either condition
[pos!="PUNCT"]!= — exclusion: every non-punctuation token
[upos="VERB" & feats="VerbForm=Conv"]converbs
Values go in double or single quotes. & and
| cannot be mixed inside one pair of brackets.
Letter case: %h
%h, written straight after the closing quote, makes a
word-form search case-sensitive. It only applies to the sozcuk
(word) field; lemmas and tags are stored in a single
form. (CQP's %c is the opposite flag — see
Other tools.)
[word="Ankara"%h]only “Ankara” with a capital A
[word="Bir"%h]sentence-initial “Bir”; not “bir” or “BİR”
[word="[A-ZÇĞİÖŞÜ]+"%h]words written entirely in capitals (abbreviations)
[word="Bu"%h & pos="DET"]the flag combines with other conditions
BELİRTEÇ in a query finds determiners (DET). To avoid
confusion, write parts of speech as UD codes: [pos="ADV"]
for adverbs, [pos="DET"] for determiners. We are working on
the part-of-speech labels and will make this distinction clearer in the
interface.Sequences and gaps
Consecutive brackets search for consecutive words. Empty brackets
[] match any word; curly braces say how many times a
token repeats.
[pos="ADJ"] [lemma="ev"]adjective + “ev”: büyük ev, eski evler
[lemma="bir"] [lemma="şey"]a two-word pattern
[lemma="çok"] []{0,2} [pos="NOUN"]0–2 arbitrary words in between
[feats="Case=Abl"] [lemma="sonra"]ablative + “sonra”: savaştan sonra
[pos="NOUN"]{2}two nouns in a row ({3}: three)
[pos="ADJ"]{1,2} [lemma="ev"]one or two adjectives + “ev”
{n}exactly n times,{a,b}between a and b,{,b}at most b. Without an upper bound the limit is 10.- A query cannot start with empty brackets or an optional
(
{0,…}) token. - Sequences do not cross document boundaries; they may cross sentence boundaries.
Regular expressions
CQL values are regular expressions and, as in CQP, must match the
whole word. [word="kitap"] finds only “kitap”;
for “kitaplar” you need kitap.*. A leading
^ and trailing $ are unnecessary.
| Syntax | Meaning | Example | Finds |
|---|---|---|---|
. | any one letter | [word="ev."] | evi, eve |
.* | zero or more letters | [word="kitap.*"] | kitap, kitaplar, kitapçı |
.+ | at least one letter | [word="kitap.+"] | kitaplar (not kitap) |
(a|b) | alternatives | [word=".*(lar|ler)"] | forms ending in -lAr |
[…] | character class | [word=".*l[ıiuü]k"] | -lık, -lik, -luk, -lük |
{n,m} | repetition | [word=".*[aeıioöuü]{3}.*"] | three vowels in a row |
\ | escape a special character | [word="3\.5"] | “3.5” |
[lemma="(gel|git)"]every form of “gel” or “git”
[word=".*c[ıiuü]|.*ç[ıiuü]"]forms ending in -CI
[lemma="gel.*"]lemmas starting with “gel”: gel, gelecek, gelişme…
The feats field works differently. A token's
feature value is a list such as
Case=Acc|Number=Sing|Person=3.
[feats="Case=Acc"] matches one component of that list;
you do not need to write the whole list.
300+ in the header and
can be computed exactly with the link next to it.Orthographic words and parts
Stanza splits some words into several parts during grammatical analysis, for example siyasetçi → siyaset + çi and önemlidir → önemli + dir. Derlemce keeps the word as it is written in the text and stores the analysis parts in a separate layer:
- Orthographic word — the form as written in the text. The
wordfield and simple queries search this:önemlidirfinds the word as written, even where the analyser split it into parts. - Part — the unit produced by the analyser.
lemma,posandfeatslook at the parts:[lemma="siyaset"]also finds “siyasetçi”.
When a part matches, the hit is shown as the whole orthographic word it belongs to and counted once. Word-form frequency lists and n-grams are also built from orthographic words; parts such as -çi and -dir are not listed as separate words.
Comparison with other tools
| CQP and Sketch Engine | Derlemce | Note |
|---|---|---|
[word="ev"] | [word="ev"] or [sozcuk="ev"] | same |
[lemma="gel"] | [lemma="gel"] or [kok="gel"] | same |
[tag="VERB"] | [pos="VERB"] | UD codes are mapped to Derlemce's Turkish labels |
[word="ev"%c] | [word="ev"] | Derlemce is case-insensitive by default; %c is accepted and ignored |
[word="Ev"] | [word="Ev"%h] | CQP is case-sensitive by default; Derlemce needs %h |
[]{0,3} | []{0,3} | same |
[pos="ADJ"]+ | [pos="ADJ"]{1,10} | no + or * quantifiers |
within s, <s/> | — | no structural attributes; filters are in the left panel |
a:[…] … & a.lemma=b.lemma | — | no labelled (global) constraints |
Tagset
Parts of speech in Derlemce follow Universal Dependencies (UD) codes, and morphological tags follow UD features, where each value is defined in English. The tables give the usual Turkish terms from the literature; where more than one term is in use, both are listed.
Parts of speech
| UD code | Derlemce value | Turkish term | Note |
|---|---|---|---|
NOUN | İSİM | ad (isim) | |
PROPN | ÖZEL | özel ad | |
VERB | FİİL | eylem (fiil) | |
AUX | FİİL | yardımcı eylem | Collapses to the same value as VERB (FİİL) in Derlemce; to tell them apart use the lemma, not [pos="AUX"]. |
ADJ | SIFAT | sıfat (önad) | |
ADV | ZARF | zarf (belirteç) | |
PRON | ADIL | adıl (zamir) | |
DET | BELİRTEÇ | belirleyici | Raw value BELİRTEÇ — do not confuse with 'belirteç' (adverb) in the Turkish literature; writing [pos="DET"] is safest. |
NUM | SAYI | sayı | |
ADP | İLGEÇ | ilgeç (edat) | |
CCONJ | BAĞLAÇ | bağlaç (eşgüdümlü) | Collapses to the same value as SCONJ (BAĞLAÇ). |
SCONJ | BAĞLAÇ | bağlaç (yan cümle) | Collapses to the same value as CCONJ (BAĞLAÇ). |
PART | İŞLEVSÖZ | işlev sözcüğü (mi, de, ki…) | |
INTJ | ÜNLEM | ünlem | |
PUNCT | NOKTALAMA | noktalama | |
SYM | SİMGE | simge | |
X | DİĞER | diğer | Foreign word, unanalysable unit. |
Morphological features — UD features
Corpora built with Stanza and from UD treebanks (Reference, Wikipedia) carry these features. In a query they are written as [feats="Case=Acc"].
| Feature | Value | Turkish term | Example |
|---|---|---|---|
Case | Nom | yalın durum | ev |
Case | Acc | belirtme durumu | ev-i |
Case | Dat | yönelme durumu | ev-e |
Case | Loc | bulunma durumu | ev-de |
Case | Abl | ayrılma (çıkma) durumu | ev-den |
Case | Gen | ilgi (tamlayan) durumu | ev-in |
Case | Ins | vasıta (araç) durumu | kalem-le |
Case | Equ | eşitlik durumu | çocuk-ça |
Number | Sing | tekil | kitap |
Number | Plur | çoğul | kitap-lar |
Number[psor] | Sing | iyelik: sahibi tekil | kitab-ım |
Number[psor] | Plur | iyelik: sahibi çoğul | kitab-ımız |
Person | 1 | 1. kişi | gel-di-m |
Person | 2 | 2. kişi | gel-di-n |
Person | 3 | 3. kişi | gel-di |
Person[psor] | 1 | iyelik: 1. kişi | ev-im |
Person[psor] | 2 | iyelik: 2. kişi | ev-in |
Person[psor] | 3 | iyelik: 3. kişi | ev-i |
Tense | Past | geçmiş zaman | gel-di, gel-miş |
Tense | Pres | şimdiki / geniş zaman | gel-iyor, gel-ir |
Tense | Fut | gelecek zaman | gel-ecek |
Tense | Pqp | miş'li geçmişin hikâyesi | gel-miş-ti |
Aspect | Perf | tamamlanmış görünüş | gel-di |
Aspect | Imp | tamamlanmamış görünüş | |
Aspect | Prog | süreklilik görünüşü | gel-iyor |
Aspect | Hab | alışkanlık görünüşü | gel-ir |
Aspect | Prosp | gelecek görünüşü | gel-ecek |
Aspect | Rapid | tezlik | gel-iver |
Mood | Ind | bildirme kipi | gel-di |
Mood | Imp | emir kipi | gel |
Mood | Opt | istek kipi | gel-e |
Mood | Des | dilek-şart kipi | gel-se |
Mood | Cnd | koşul (şart) — ek-eylem | gel-ir-se |
Mood | Nec | gereklilik kipi | gel-meli |
Mood | Pot | yeterlik | gel-ebil |
Mood | Gen | genelleme / ek-eylem -DIr | gel-miş-tir |
Mood | CndGen, DesPot, GenNec… | bileşik kipler: değerler art arda okunur | gel-ebil-se |
Evident | Fh | görülen (doğrudan bilinen) | gel-di |
Evident | Nfh | öğrenilen (dolaylı bilinen) | gel-miş |
Polarity | Pos | olumlu | gel-di |
Polarity | Neg | olumsuz | gel-me-di |
Voice | Pass | edilgen çatı | yaz-ıl |
Voice | Cau | ettirgen çatı | yaz-dır |
Voice | Rfl | dönüşlü çatı | yıka-n |
Voice | Rcp | işteş çatı | döv-üş |
Voice | CauCau, CauPass, PassPass, PassRfl | bileşik çatılar | yaz-dır-ıl |
VerbForm | Fin | çekimli eylem | gel-di |
VerbForm | Part | sıfat-eylem (ortaç) | gel-en, gel-diğ-i |
VerbForm | Conv | zarf-eylem (ulaç) | gel-ince, gel-ip |
VerbForm | Vnoun | ad-eylem (eylemlik) | gel-mek, gel-me |
PronType | Prs | kişi adılı | ben, o |
PronType | Dem | gösterme | bu, şu |
PronType | Int | soru | kim, ne |
PronType | Ind | belgisiz | biri, hepsi |
PronType | Neg | olumsuz | hiçbiri |
PronType | Rcp | işteş | birbiri |
PronType | Loc | yer bildiren | burası |
PronType | Art | tanımlık | bir |
NumType | Card | asıl sayı | üç |
NumType | Ord | sıra sayısı | üçüncü |
NumType | Dist | üleştirme sayısı | üçer |
Definite | Def | belirli | |
Definite | Ind | belirsiz | bir |
Degree | Cmp | karşılaştırma derecesi | daha |
Degree | Sup | üstünlük derecesi | en |
Polite | Form | saygı (resmî) biçim | siz |
Polite | Infm | samimi biçim | sen |
Reflex | Yes | dönüşlülük adılı | kendi |
Abbr | Yes | kısaltma | TBMM |
Echo | Rdp | ikileme (yineleme) | kitap mitap |
Typo | Yes | yazım yanlışı (kaynakta) | |
ExtPos | ADJ, ADV… | çok sözcüklü birimin dışarıdan sözcük türü |
Morphological tags — rule-based analyser
Corpora uploaded without Stanza installed carry these short tags: [feats="Poss3s"].
| Tag | Turkish term | Suffix |
|---|---|---|
Plur | çoğul | -lAr |
Poss1s | iyelik 1. tekil | -(I)m |
Poss2s | iyelik 2. tekil | -(I)n |
Poss3s | iyelik 3. tekil | -(s)I |
Poss1p | iyelik 1. çoğul | -(I)mIz |
Poss2p | iyelik 2. çoğul | -(I)nIz |
Poss3p | iyelik 3. çoğul | -lArI |
Case=Acc … Case=Equ | durum ekleri (UD ile aynı) | |
Rel | ilgi eki | -ki |
1s, 2s, 1p, 2p, 3p | kişi ekleri | -(I)m, -sIn, -(I)z … |
Prog | şimdiki zaman | -(I)yor |
Fut | gelecek zaman | -(y)AcAk |
Past | görülen geçmiş zaman / hikâye | -DI |
Evid | öğrenilen geçmiş zaman / rivayet | -mIş |
Aor | geniş zaman | -Ir, -Ar |
NegAor | olumsuz geniş zaman | -mAz |
Nec | gereklilik kipi | -mAlI |
Cond | dilek-şart kipi / şart | -sA |
Opt | istek kipi | -(y)A |
Neg | olumsuzluk | -mA |
Abil | yeterlik | -(y)Abil |
NegAbil | yeterlik olumsuzu | -(y)AmA |
Pass | edilgen çatı | -Il, -In |
Refl | dönüşlü çatı | -In |
Recip | işteş çatı | -Iş |
Caus | ettirgen çatı | -DIr, -t |
Cop | ek-eylem | -DIr |
Inf | mastar | -mAk |
VN | ad-eylem | -mA, -(y)Iş |
PartPres | sıfat-eylem | -(y)An |
PartPast | sıfat-eylem (geçmiş) | -DIk, -mIş |
PartFut | sıfat-eylem (gelecek) | -(y)AcAk |
Conv | zarf-eylem | -(y)Ip, -(y)ArAk … |
Deriv | yapım eki |
Which tags actually occur in a given corpus, and how often, is shown by the Query help panel in the app; the list is drawn from that corpus itself.
Metadata CSV
To give each document its own metadata, use a table: one row per file, one column per field. It can be added alongside the texts when uploading, or later downloaded from the Corpus summary tab, edited in Excel and uploaded again.
dosya;yil;cinsiyet;bicem;Bölgeheader row — separator ;, , or tab
kose-yazisi-1.txt;1998;kadin;haber-yazili;Egeone document
roman.txt;1975;Erkek;Kurgu / Edebiyat;display names are accepted too
- File name as uploaded; letter case, Turkish letters and the extension do not matter.
- An empty cell changes nothing. On upload the corpus-level
value from the form stays; on bulk update the existing value stays.
To clear a value, write
-in the cell. - Unrecognised columns become custom fields (region, issue number, age group…), at most 5 per corpus. They can be used in filters and in subcorpus comparison.
- Do not enter personal names. The
yazar(author) column is not read; do not put identifying information in custom fields either. - Text type can only be set on upload; bulk updates ignore that column.
| Field | Recognised column headers |
|---|---|
| File name (required) | dosya, dosya adı, dosya_adi, file, filename, file name, belge, document, text, metin |
| Text type (upload only) | tur, tür, metin türü, metin_turu, genre, text type, texttype, type |
| Subject area | alan, konu alanı, konu_alani, konu, domain, topic, subject, field |
| Year / date | yil, yıl, year, tarih, date |
| Publication source | yayın kaynağı, yayin_kaynagi, kaynak, source, publisher, yayınevi, yayin, publication |
| Register | biçem, bicem, register |
| Register labels | biçem etiketleri, bicem_etiketleri, alt etiketler, etiketler, tags, register tags, subregister |
| Speaker composition (spoken register only) | konuşmacı bileşimi, konusmaci_bilesimi, konuşmacılar, speakers, speaker composition |
| Gender | cinsiyet, gender, sex |
| Field | Accepted values (code — display name) |
|---|---|
| Text type | haber — Haber / gazete; akademik — Akademik metin; edebi — Edebî metin; konusma — Konuşma dökümü; sosyal-medya — Sosyal medya; resmi — Resmî / hukukî metin; ders — Ders materyali; ansiklopedi — Ansiklopedi; diger — Diğer |
| Register | akademik-yazili — Akademik; haber-yazili — Haberler; kurgu-yazili — Kurgu / Edebiyat; kurgu-disi-yazili — Kurgu dışı; magazin-yazili — Popüler medya; resmi-yazili — Resmî / hukuki; gunluk-sozlu — Gündelik konuşma; kurumsal-sozlu — Kurumsal konuşma |
| Gender | belirtilmemis — Belirtilmemiş; kadin — Kadın; erkek — Erkek; diger — Diğer |
Subcorpus comparison
For keywords, a subset of this corpus can be chosen as the reference. The target is the set selected with the filters on the left. The reference is either “the rest of the corpus” or the same filter with a single field changed: with “news + female” as the target, choosing “Gender: Male” compares it with “news + male”. The distribution panel in the search view can also be broken down by any field.
Limitations
- Analysis is automatic. The Wikipedia corpus is tagged with Stanza; lemmas, parts of speech and features contain errors. The Reference corpus comes from UD treebanks and has been checked by hand.
- Rule-based corpora carry short tags. Corpora uploaded
without Stanza use tags such as
PlurandPoss3s;Number=Plurdoes not match there. - The first 300 rows are shown on screen. The number in the header is the true count for the whole corpus; export to get every row.
- Sequences take the shortest match. With ranges such as
[pos="ADJ"]{1,3}a hit starts with the shortest sequence that satisfies the pattern.