tdk.enums¶
Enums and data classes used in the package.
Module Contents¶
Classes¶
Letter types for Turkish alphabet. |
|
Syllable types according to aruz prosody rules. |
|
Languages that the words from |
|
Kinds of properties that can be assigned to a word meaning. |
|
Data class for properties of word meanings. |
|
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.EnumLetter types for Turkish alphabet.
- LONG_VOWEL¶
1
The letter is contained in
LONG_VOWELS.
- CONSONANT¶
2
The letter is contained in
CONSONANTS.
- class tdk.enums.SyllableType¶
Bases:
enum.EnumSyllable 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.IntEnumLanguages that the words from
tdk.gtscan 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.IntEnumKinds 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.BaseModelData 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.selfis explicitly positional-only to allowselfas a field name.- kind: tdk.enums.PropertyKind¶
‘Field(…)’
The kind of the property.
- class tdk.enums.MeaningProperty¶
Bases:
enum.EnumList of properties seen in the TDK database.
- static get(arg: int | str) tdk.enums.MeaningProperty¶
Get a
MeaningPropertyfrom its ID, full or short name.- Parameters:
arg – The ID, full or short name of the property.
- Returns:
The property, as a
MeaningPropertyenum member.
- EXCLAMATION¶
‘PropertyData(…)’
- Parameters:
id –
18kind –
PART_OF_SPEECHfull_name –
"ünlem"short_name –
"ünl."number –
29
- NOUN¶
‘PropertyData(…)’
- Parameters:
id –
19kind –
PART_OF_SPEECHfull_name –
"isim"short_name –
"a."number –
30
- ADJECTIVE¶
‘PropertyData(…)’
- Parameters:
id –
20kind –
PART_OF_SPEECHfull_name –
"sıfat"short_name –
"sf."number –
31
- DATIVE¶
‘PropertyData(…)’
- Parameters:
id –
21kind –
PART_OF_SPEECHfull_name –
"-e"short_name –
"-e"number –
32
- ACCUSATIVE¶
‘PropertyData(…)’
- Parameters:
id –
22kind –
PART_OF_SPEECHfull_name –
"-i"short_name –
"-i"number –
33
- INTRANSITIVE¶
‘PropertyData(…)’
- Parameters:
id –
23kind –
PART_OF_SPEECHfull_name –
"nesnesiz"short_name –
"nsz."number –
34
- ADVERB¶
‘PropertyData(…)’
- Parameters:
id –
24kind –
PART_OF_SPEECHfull_name –
"zarf"short_name –
"zf."number –
35
- BY¶
‘PropertyData(…)’
- Parameters:
id –
25kind –
PART_OF_SPEECHfull_name –
"-le"short_name –
"-le"number –
36
- ABLATIVE¶
‘PropertyData(…)’
- Parameters:
id –
26kind –
PART_OF_SPEECHfull_name –
"-den"short_name –
"-den"number –
37
- PARTICLE¶
‘PropertyData(…)’
- Parameters:
id –
27kind –
PART_OF_SPEECHfull_name –
"edat"short_name –
"e."number –
38
- CONJUNCTION¶
‘PropertyData(…)’
- Parameters:
id –
28kind –
PART_OF_SPEECHfull_name –
"bağlaç"short_name –
"bağ."number –
39
- PRONOUN¶
‘PropertyData(…)’
- Parameters:
id –
29kind –
PART_OF_SPEECHfull_name –
"zamir"short_name –
"zm."number –
40
- SLANG¶
‘PropertyData(…)’
- Parameters:
id –
30kind –
TONEfull_name –
"argo"short_name –
"argo"number –
41
- OBSOLETE¶
‘PropertyData(…)’
- Parameters:
id –
31kind –
TONEfull_name –
"eskimiş"short_name –
"esk."number –
42
- METAPHOR¶
‘PropertyData(…)’
- Parameters:
id –
32kind –
TONEfull_name –
"mecaz"short_name –
"mec."number –
43
- LAY¶
‘PropertyData(…)’
- Parameters:
id –
33kind –
TONEfull_name –
"halk ağzında"short_name –
"hlk."number –
44
- COLLOQUIAL¶
‘PropertyData(…)’
- Parameters:
id –
34kind –
TONEfull_name –
"teklifsiz konuşmada"short_name –
"tkz."number –
45
- SATIRIC¶
‘PropertyData(…)’
- Parameters:
id –
35kind –
TONEfull_name –
"alay yollu"short_name –
"alay"number –
46
- VULGAR¶
‘PropertyData(…)’
- Parameters:
id –
36kind –
TONEfull_name –
"kaba konuşmada"short_name –
"kaba"number –
47
- JOCULAR¶
‘PropertyData(…)’
- Parameters:
id –
37kind –
TONEfull_name –
"şaka yollu"short_name –
"şaka"number –
48
- INVECTIVE¶
‘PropertyData(…)’
- Parameters:
id –
38kind –
TONEfull_name –
"hakaret yollu"short_name –
"hkr."number –
49
- MUSIC¶
‘PropertyData(…)’
- Parameters:
id –
39kind –
FIELDfull_name –
"müzik"short_name –
"müz."number –
88
- SPORTS¶
‘PropertyData(…)’
- Parameters:
id –
40kind –
FIELDfull_name –
"spor"short_name –
"sp."number –
89
- BOTANY¶
‘PropertyData(…)’
- Parameters:
id –
41kind –
FIELDfull_name –
"bitki bilimi"short_name –
"bit. b."number –
90
- NAVAL¶
‘PropertyData(…)’
- Parameters:
id –
42kind –
FIELDfull_name –
"denizcilik"short_name –
"den."number –
91
- HISTORY¶
‘PropertyData(…)’
- Parameters:
id –
43kind –
FIELDfull_name –
"tarih"short_name –
"tar."number –
92
- ASTRONOMY¶
‘PropertyData(…)’
- Parameters:
id –
44kind –
FIELDfull_name –
"gök bilimi"short_name –
"gök b."number –
93
- GEOGRAPHY¶
‘PropertyData(…)’
- Parameters:
id –
45kind –
FIELDfull_name –
"coğrafya"short_name –
"coğ."number –
94
- GRAMMAR¶
‘PropertyData(…)’
- Parameters:
id –
46kind –
FIELDfull_name –
"dil bilgisi"short_name –
"db."number –
95
- PSYCHOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
47kind –
FIELDfull_name –
"ruh bilimi"short_name –
"ruh b."number –
96
- CHEMISTRY¶
‘PropertyData(…)’
- Parameters:
id –
48kind –
FIELDfull_name –
"kimya"short_name –
"kim."number –
97
- ANATOMY¶
‘PropertyData(…)’
- Parameters:
id –
49kind –
FIELDfull_name –
"anatomi"short_name –
"anat."number –
98
- COMMERCE¶
‘PropertyData(…)’
- Parameters:
id –
50kind –
FIELDfull_name –
"ticaret"short_name –
"tic."number –
99
- LAW¶
‘PropertyData(…)’
- Parameters:
id –
51kind –
FIELDfull_name –
"hukuk"short_name –
"huk."number –
100
- MATHEMATICS¶
‘PropertyData(…)’
- Parameters:
id –
52kind –
FIELDfull_name –
"matematik"short_name –
"mat."number –
101
- ZOOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
53kind –
FIELDfull_name –
"hayvan bilimi"short_name –
"hay. b."number –
102
- LITERATURE¶
‘PropertyData(…)’
- Parameters:
id –
54kind –
FIELDfull_name –
"edebiyat"short_name –
"ed."number –
103
- CINEMA¶
‘PropertyData(…)’
- Parameters:
id –
55kind –
FIELDfull_name –
"sinema"short_name –
"sin."number –
104
- BIOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
56kind –
FIELDfull_name –
"biyoloji"short_name –
"biy."number –
105
- PHILOSOPHY¶
‘PropertyData(…)’
- Parameters:
id –
57kind –
FIELDfull_name –
"felsefe"short_name –
"fel."number –
106
- PHYSICS¶
‘PropertyData(…)’
- Parameters:
id –
58kind –
FIELDfull_name –
"fizik"short_name –
"fiz."number –
108
- THEATRICAL¶
‘PropertyData(…)’
- Parameters:
id –
59kind –
FIELDfull_name –
"tiyatro"short_name –
"tiy."number –
109
- GEOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
60kind –
FIELDfull_name –
"jeoloji"short_name –
"jeol."number –
110
- TECHNICAL¶
‘PropertyData(…)’
- Parameters:
id –
61kind –
FIELDfull_name –
"teknik"short_name –
"tek."number –
112
- SOCIOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
62kind –
FIELDfull_name –
"toplum bilimi"short_name –
"top. b."number –
113
- PHYSIOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
63kind –
FIELDfull_name –
"fizyoloji"short_name –
"fizy."number –
114
- METEOROLOGY¶
‘PropertyData(…)’
- Parameters:
id –
64kind –
FIELDfull_name –
"meteoroloji"short_name –
"meteor."number –
115
- LOGIC¶
‘PropertyData(…)’
- Parameters:
id –
65kind –
FIELDfull_name –
"mantık"short_name –
"man."number –
116
- ECONOMY¶
‘PropertyData(…)’
- Parameters:
id –
66kind –
FIELDfull_name –
"ekonomi"short_name –
"ekon."number –
117
- ARCHITECTURE¶
‘PropertyData(…)’
- Parameters:
id –
67kind –
FIELDfull_name –
"mimarlık"short_name –
"mim."number –
118
- MINERALOGY¶
‘PropertyData(…)’
- Parameters:
id –
68kind –
FIELDfull_name –
"mineraloji"short_name –
"min."number –
119
- PEDAGOGY¶
‘PropertyData(…)’
- Parameters:
id –
69kind –
FIELDfull_name –
"eğitim bilimi"short_name –
"eğt."number –
120
- MILITARY¶
‘PropertyData(…)’
- Parameters:
id –
73kind –
FIELDfull_name –
"askerlik"short_name –
"ask."number –
124
- GEOMETRY¶
‘PropertyData(…)’
- Parameters:
id –
80kind –
FIELDfull_name –
"geometri"short_name –
"geom."number –
253
- TECHNOLOGY¶
‘PropertyData(…)’
- Parameters:
id –
81kind –
FIELDfull_name –
"teknoloji"short_name –
"tekno."number –
264
- AUXILIARY_VERB¶
‘PropertyData(…)’
- Parameters:
id –
82kind –
PART_OF_SPEECHfull_name –
"yardımcı fiil"short_name –
"yar."number –
271
- LOCATIVE¶
‘PropertyData(…)’
- Parameters:
id –
83kind –
PART_OF_SPEECHfull_name –
"-de"short_name –
"-de"number –
274
- LINGUISTICS¶
‘PropertyData(…)’
- Parameters:
id –
84kind –
FIELDfull_name –
"dil bilimi"short_name –
"dil b."number –
289
- MEDICINE¶
‘PropertyData(…)’
- Parameters:
id –
85kind –
FIELDfull_name –
"tıp"short_name –
"tıp"number –
307
- TELEVISION¶
‘PropertyData(…)’
- Parameters:
id –
87kind –
FIELDfull_name –
"televizyon"short_name –
"TV"number –
325
- RELIGION¶
‘PropertyData(…)’
- Parameters:
id –
88kind –
FIELDfull_name –
"din bilgisi"short_name –
"din b."number –
326
- MINING¶
‘PropertyData(…)’
- Parameters:
id –
96kind –
FIELDfull_name –
"madencilik"short_name –
"mdn."number –
364
- I_T¶
‘PropertyData(…)’
- Parameters:
id –
98kind –
FIELDfull_name –
"bilişim"short_name –
"bl."number –
368