tdk.enums

Enums and data classes used in the package.

Module Contents

Classes

LetterType

Letter types for Turkish alphabet.

SyllableType

Syllable types according to aruz prosody rules.

OriginLanguage

Languages that the words from tdk.gts can be from.

PropertyKind

Kinds of properties that can be assigned to a word meaning.

PropertyData

Data class for properties of word meanings.

MeaningProperty

List of properties seen in the TDK database.

Data

API

tdk.enums.__all__

[‘LetterType’, ‘SyllableType’, ‘OriginLanguage’, ‘PropertyKind’, ‘PropertyData’, ‘MeaningProperty’]

class tdk.enums.LetterType

Bases: enum.Enum

Letter types for Turkish alphabet.

SHORT_VOWEL

0

The letter is contained in VOWELS.

LONG_VOWEL

1

The letter is contained in LONG_VOWELS.

CONSONANT

2

The letter is contained in CONSONANTS.

class tdk.enums.SyllableType

Bases: enum.Enum

Syllable types according to aruz prosody rules.

OPEN

0

The syllable ends with a vowel.

CLOSED

1

The syllable ends with a consonant.

MEDLI

2

The syllable has a long vowel or has two consecutive consonants.

class tdk.enums.OriginLanguage

Bases: enum.IntEnum

Languages that the words from tdk.gts can be from.

Numbers are the IDs of the languages as seen in the TDK database.

Initialization

Initialize self. See help(type(self)) for accurate signature.

ORIGINAL

0

The word is originally Turkish.

COMPOUND

19

The word is a compound word with parts from more than one language.

ARABIC

11

PERSIAN

12

FRENCH

13

ITALIAN

14

GREEK

15

LATIN

16

ENGLISH

18

SPANISH

20

ARMENIAN

21

RUSSIAN

22

GERMAN

23

SLAVIC

24

HEBREW

25

HUNGARIAN

26

BULGARIAN

27

PORTUGUESE

28

JAPANESE

346

ALBANIAN

348

MONGOLIAN

354

Mongolian language.

MONGOLIAN_2

153

Also Mongolian language.

There are two IDs for the same language in the TDK database.

FINNISH

392

ROMAIC

393

SOGDIAN

395

SERBIAN

486

KOREAN

420

class tdk.enums.PropertyKind

Bases: enum.IntEnum

Kinds of properties that can be assigned to a word meaning.

Initialization

Initialize self. See help(type(self)) for accurate signature.

FIELD

1

The property is a field of study.

PART_OF_SPEECH

3

The property is a part of speech.

TONE

4

The property is a tone or style of speech.

class tdk.enums.PropertyData(/, **data: typing.Any)

Bases: pydantic.BaseModel

Data class for properties of word meanings.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

id: int

‘Field(…)’

The ID of the property in the TDK database.

kind: tdk.enums.PropertyKind

‘Field(…)’

The kind of the property.

full_name: str

‘Field(…)’

The full name of the property.

short_name: str

‘Field(…)’

The short name of the property.

number: int

‘Field(…)’

The additional number of the property in the TDK database (ekno).

class tdk.enums.MeaningProperty

Bases: enum.Enum

List of properties seen in the TDK database.

static get(arg: int | str) tdk.enums.MeaningProperty

Get a MeaningProperty from its ID, full or short name.

Parameters:

arg – The ID, full or short name of the property.

Returns:

The property, as a MeaningProperty enum member.

EXCLAMATION

‘PropertyData(…)’

Parameters:
  • id18

  • kindPART_OF_SPEECH

  • full_name"ünlem"

  • short_name"ünl."

  • number29

NOUN

‘PropertyData(…)’

Parameters:
  • id19

  • kindPART_OF_SPEECH

  • full_name"isim"

  • short_name"a."

  • number30

ADJECTIVE

‘PropertyData(…)’

Parameters:
  • id20

  • kindPART_OF_SPEECH

  • full_name"sıfat"

  • short_name"sf."

  • number31

DATIVE

‘PropertyData(…)’

Parameters:
  • id21

  • kindPART_OF_SPEECH

  • full_name"-e"

  • short_name"-e"

  • number32

ACCUSATIVE

‘PropertyData(…)’

Parameters:
  • id22

  • kindPART_OF_SPEECH

  • full_name"-i"

  • short_name"-i"

  • number33

INTRANSITIVE

‘PropertyData(…)’

Parameters:
  • id23

  • kindPART_OF_SPEECH

  • full_name"nesnesiz"

  • short_name"nsz."

  • number34

ADVERB

‘PropertyData(…)’

Parameters:
  • id24

  • kindPART_OF_SPEECH

  • full_name"zarf"

  • short_name"zf."

  • number35

BY

‘PropertyData(…)’

Parameters:
  • id25

  • kindPART_OF_SPEECH

  • full_name"-le"

  • short_name"-le"

  • number36

ABLATIVE

‘PropertyData(…)’

Parameters:
  • id26

  • kindPART_OF_SPEECH

  • full_name"-den"

  • short_name"-den"

  • number37

PARTICLE

‘PropertyData(…)’

Parameters:
  • id27

  • kindPART_OF_SPEECH

  • full_name"edat"

  • short_name"e."

  • number38

CONJUNCTION

‘PropertyData(…)’

Parameters:
  • id28

  • kindPART_OF_SPEECH

  • full_name"bağlaç"

  • short_name"bağ."

  • number39

PRONOUN

‘PropertyData(…)’

Parameters:
  • id29

  • kindPART_OF_SPEECH

  • full_name"zamir"

  • short_name"zm."

  • number40

SLANG

‘PropertyData(…)’

Parameters:
  • id30

  • kindTONE

  • full_name"argo"

  • short_name"argo"

  • number41

OBSOLETE

‘PropertyData(…)’

Parameters:
  • id31

  • kindTONE

  • full_name"eskimiş"

  • short_name"esk."

  • number42

METAPHOR

‘PropertyData(…)’

Parameters:
  • id32

  • kindTONE

  • full_name"mecaz"

  • short_name"mec."

  • number43

LAY

‘PropertyData(…)’

Parameters:
  • id33

  • kindTONE

  • full_name"halk ağzında"

  • short_name"hlk."

  • number44

COLLOQUIAL

‘PropertyData(…)’

Parameters:
  • id34

  • kindTONE

  • full_name"teklifsiz konuşmada"

  • short_name"tkz."

  • number45

SATIRIC

‘PropertyData(…)’

Parameters:
  • id35

  • kindTONE

  • full_name"alay yollu"

  • short_name"alay"

  • number46

VULGAR

‘PropertyData(…)’

Parameters:
  • id36

  • kindTONE

  • full_name"kaba konuşmada"

  • short_name"kaba"

  • number47

JOCULAR

‘PropertyData(…)’

Parameters:
  • id37

  • kindTONE

  • full_name"şaka yollu"

  • short_name"şaka"

  • number48

INVECTIVE

‘PropertyData(…)’

Parameters:
  • id38

  • kindTONE

  • full_name"hakaret yollu"

  • short_name"hkr."

  • number49

MUSIC

‘PropertyData(…)’

Parameters:
  • id39

  • kindFIELD

  • full_name"müzik"

  • short_name"müz."

  • number88

SPORTS

‘PropertyData(…)’

Parameters:
  • id40

  • kindFIELD

  • full_name"spor"

  • short_name"sp."

  • number89

BOTANY

‘PropertyData(…)’

Parameters:
  • id41

  • kindFIELD

  • full_name"bitki bilimi"

  • short_name"bit. b."

  • number90

NAVAL

‘PropertyData(…)’

Parameters:
  • id42

  • kindFIELD

  • full_name"denizcilik"

  • short_name"den."

  • number91

HISTORY

‘PropertyData(…)’

Parameters:
  • id43

  • kindFIELD

  • full_name"tarih"

  • short_name"tar."

  • number92

ASTRONOMY

‘PropertyData(…)’

Parameters:
  • id44

  • kindFIELD

  • full_name"gök bilimi"

  • short_name"gök b."

  • number93

GEOGRAPHY

‘PropertyData(…)’

Parameters:
  • id45

  • kindFIELD

  • full_name"coğrafya"

  • short_name"coğ."

  • number94

GRAMMAR

‘PropertyData(…)’

Parameters:
  • id46

  • kindFIELD

  • full_name"dil bilgisi"

  • short_name"db."

  • number95

PSYCHOLOGY

‘PropertyData(…)’

Parameters:
  • id47

  • kindFIELD

  • full_name"ruh bilimi"

  • short_name"ruh b."

  • number96

CHEMISTRY

‘PropertyData(…)’

Parameters:
  • id48

  • kindFIELD

  • full_name"kimya"

  • short_name"kim."

  • number97

ANATOMY

‘PropertyData(…)’

Parameters:
  • id49

  • kindFIELD

  • full_name"anatomi"

  • short_name"anat."

  • number98

COMMERCE

‘PropertyData(…)’

Parameters:
  • id50

  • kindFIELD

  • full_name"ticaret"

  • short_name"tic."

  • number99

LAW

‘PropertyData(…)’

Parameters:
  • id51

  • kindFIELD

  • full_name"hukuk"

  • short_name"huk."

  • number100

MATHEMATICS

‘PropertyData(…)’

Parameters:
  • id52

  • kindFIELD

  • full_name"matematik"

  • short_name"mat."

  • number101

ZOOLOGY

‘PropertyData(…)’

Parameters:
  • id53

  • kindFIELD

  • full_name"hayvan bilimi"

  • short_name"hay. b."

  • number102

LITERATURE

‘PropertyData(…)’

Parameters:
  • id54

  • kindFIELD

  • full_name"edebiyat"

  • short_name"ed."

  • number103

CINEMA

‘PropertyData(…)’

Parameters:
  • id55

  • kindFIELD

  • full_name"sinema"

  • short_name"sin."

  • number104

BIOLOGY

‘PropertyData(…)’

Parameters:
  • id56

  • kindFIELD

  • full_name"biyoloji"

  • short_name"biy."

  • number105

PHILOSOPHY

‘PropertyData(…)’

Parameters:
  • id57

  • kindFIELD

  • full_name"felsefe"

  • short_name"fel."

  • number106

PHYSICS

‘PropertyData(…)’

Parameters:
  • id58

  • kindFIELD

  • full_name"fizik"

  • short_name"fiz."

  • number108

THEATRICAL

‘PropertyData(…)’

Parameters:
  • id59

  • kindFIELD

  • full_name"tiyatro"

  • short_name"tiy."

  • number109

GEOLOGY

‘PropertyData(…)’

Parameters:
  • id60

  • kindFIELD

  • full_name"jeoloji"

  • short_name"jeol."

  • number110

TECHNICAL

‘PropertyData(…)’

Parameters:
  • id61

  • kindFIELD

  • full_name"teknik"

  • short_name"tek."

  • number112

SOCIOLOGY

‘PropertyData(…)’

Parameters:
  • id62

  • kindFIELD

  • full_name"toplum bilimi"

  • short_name"top. b."

  • number113

PHYSIOLOGY

‘PropertyData(…)’

Parameters:
  • id63

  • kindFIELD

  • full_name"fizyoloji"

  • short_name"fizy."

  • number114

METEOROLOGY

‘PropertyData(…)’

Parameters:
  • id64

  • kindFIELD

  • full_name"meteoroloji"

  • short_name"meteor."

  • number115

LOGIC

‘PropertyData(…)’

Parameters:
  • id65

  • kindFIELD

  • full_name"mantık"

  • short_name"man."

  • number116

ECONOMY

‘PropertyData(…)’

Parameters:
  • id66

  • kindFIELD

  • full_name"ekonomi"

  • short_name"ekon."

  • number117

ARCHITECTURE

‘PropertyData(…)’

Parameters:
  • id67

  • kindFIELD

  • full_name"mimarlık"

  • short_name"mim."

  • number118

MINERALOGY

‘PropertyData(…)’

Parameters:
  • id68

  • kindFIELD

  • full_name"mineraloji"

  • short_name"min."

  • number119

PEDAGOGY

‘PropertyData(…)’

Parameters:
  • id69

  • kindFIELD

  • full_name"eğitim bilimi"

  • short_name"eğt."

  • number120

MILITARY

‘PropertyData(…)’

Parameters:
  • id73

  • kindFIELD

  • full_name"askerlik"

  • short_name"ask."

  • number124

GEOMETRY

‘PropertyData(…)’

Parameters:
  • id80

  • kindFIELD

  • full_name"geometri"

  • short_name"geom."

  • number253

TECHNOLOGY

‘PropertyData(…)’

Parameters:
  • id81

  • kindFIELD

  • full_name"teknoloji"

  • short_name"tekno."

  • number264

AUXILIARY_VERB

‘PropertyData(…)’

Parameters:
  • id82

  • kindPART_OF_SPEECH

  • full_name"yardımcı  fiil"

  • short_name"yar."

  • number271

LOCATIVE

‘PropertyData(…)’

Parameters:
  • id83

  • kindPART_OF_SPEECH

  • full_name"-de"

  • short_name"-de"

  • number274

LINGUISTICS

‘PropertyData(…)’

Parameters:
  • id84

  • kindFIELD

  • full_name"dil bilimi"

  • short_name"dil b."

  • number289

MEDICINE

‘PropertyData(…)’

Parameters:
  • id85

  • kindFIELD

  • full_name"tıp"

  • short_name"tıp"

  • number307

TELEVISION

‘PropertyData(…)’

Parameters:
  • id87

  • kindFIELD

  • full_name"televizyon"

  • short_name"TV"

  • number325

RELIGION

‘PropertyData(…)’

Parameters:
  • id88

  • kindFIELD

  • full_name"din bilgisi"

  • short_name"din b."

  • number326

MINING

‘PropertyData(…)’

Parameters:
  • id96

  • kindFIELD

  • full_name"madencilik"

  • short_name"mdn."

  • number364

I_T

‘PropertyData(…)’

Parameters:
  • id98

  • kindFIELD

  • full_name"bilişim"

  • short_name"bl."

  • number368

MYTHOLOGY

‘PropertyData(…)’

Parameters:
  • id99

  • kindFIELD

  • full_name"mit."

  • short_name"mit."

  • number376

ANTHROPOLOGY

‘PropertyData(…)’

Parameters:
  • id105

  • kindFIELD

  • full_name"antropoloji"

  • short_name"ant."

  • number404