Add more German vocabulary (#114)
Browse files- README.md +4 -1
- german.yaml +182 -3
- huggingface/german_parser.py +4 -5
README.md
CHANGED
@@ -380,7 +380,7 @@ declension table of the following template:
|
|
380 |
- term:
|
381 |
definition:
|
382 |
audio:
|
383 |
-
declension-type: weak/strong
|
384 |
declension:
|
385 |
- ["", singular, plural]
|
386 |
- [nominative, ████████, ██████]
|
@@ -395,6 +395,7 @@ For example:
|
|
395 |
- term: das Gespräch
|
396 |
definition: the conversation
|
397 |
audio: https://upload.wikimedia.org/wikipedia/commons/f/f5/De-Gespr%C3%A4ch.ogg
|
|
|
398 |
declension:
|
399 |
- ["", singular, plural ]
|
400 |
- [nominative, Gespräch, Gespräche ]
|
@@ -403,6 +404,8 @@ For example:
|
|
403 |
- [accusative, Gespräch, Gespräche ]
|
404 |
```
|
405 |
|
|
|
|
|
406 |
> [!TIP]
|
407 |
>
|
408 |
> __The declension tables for nouns are almost all sourced from
|
|
|
380 |
- term:
|
381 |
definition:
|
382 |
audio:
|
383 |
+
declension-type: weak/strong/mixed
|
384 |
declension:
|
385 |
- ["", singular, plural]
|
386 |
- [nominative, ████████, ██████]
|
|
|
395 |
- term: das Gespräch
|
396 |
definition: the conversation
|
397 |
audio: https://upload.wikimedia.org/wikipedia/commons/f/f5/De-Gespr%C3%A4ch.ogg
|
398 |
+
declension-type: strong
|
399 |
declension:
|
400 |
- ["", singular, plural ]
|
401 |
- [nominative, Gespräch, Gespräche ]
|
|
|
404 |
- [accusative, Gespräch, Gespräche ]
|
405 |
```
|
406 |
|
407 |
+
Note that [feminine nouns do not have `declension-type` field](https://en.wikipedia.org/wiki/Weak_noun#German)
|
408 |
+
|
409 |
> [!TIP]
|
410 |
>
|
411 |
> __The declension tables for nouns are almost all sourced from
|
german.yaml
CHANGED
@@ -229,6 +229,16 @@ vocabulary:
|
|
229 |
definition: 1,708,000
|
230 |
- term: drei Millionen vierhunderteinundsiebzigtausend
|
231 |
definition: 3,471,000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
- term: der Tag
|
233 |
definition: the day
|
234 |
declension:
|
@@ -1590,8 +1600,7 @@ vocabulary:
|
|
1590 |
definition: instead of
|
1591 |
- term: ohne
|
1592 |
definition:
|
1593 |
-
- (conj.) without
|
1594 |
-
- (prep.) without
|
1595 |
audio: https://upload.wikimedia.org/wikipedia/commons/3/36/De-ohne.ogg
|
1596 |
- term: schmecken
|
1597 |
definition:
|
@@ -3907,6 +3916,7 @@ vocabulary:
|
|
3907 |
- term: das Gespräch
|
3908 |
definition: the conversation
|
3909 |
audio: https://upload.wikimedia.org/wikipedia/commons/f/f5/De-Gespr%C3%A4ch.ogg
|
|
|
3910 |
declension:
|
3911 |
- ["", singular, plural ]
|
3912 |
- [nominative, Gespräch, Gespräche ]
|
@@ -3993,7 +4003,9 @@ vocabulary:
|
|
3993 |
conjugation: https://www.verbformen.com/conjugation/interviewen.pdf
|
3994 |
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/interviewen.pdf
|
3995 |
- term: die Platte
|
3996 |
-
definition:
|
|
|
|
|
3997 |
audio: https://upload.wikimedia.org/wikipedia/commons/0/04/De-Platte.ogg
|
3998 |
declension:
|
3999 |
- ["", singular, plural ]
|
@@ -4090,6 +4102,11 @@ vocabulary:
|
|
4090 |
- [genitive, Weckers, Wecker ]
|
4091 |
- [dative, Wecker, Weckern]
|
4092 |
- [accusative, Wecker, Wecker ]
|
|
|
|
|
|
|
|
|
|
|
4093 |
|
4094 |
|
4095 |
|
@@ -4376,6 +4393,16 @@ vocabulary:
|
|
4376 |
- to follow
|
4377 |
- to understand
|
4378 |
- to obey
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4379 |
- term: das Unteroffizier
|
4380 |
definition: the non-commissioned officer
|
4381 |
declension:
|
@@ -4392,6 +4419,15 @@ vocabulary:
|
|
4392 |
- [genitive, Welt, Welten]
|
4393 |
- [dative, Welt, Welten]
|
4394 |
- [accusative, Welt, Welten]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4395 |
- term: der Weltkrieg
|
4396 |
definition: the world war
|
4397 |
declension:
|
@@ -5136,6 +5172,16 @@ vocabulary:
|
|
5136 |
- [genitive, Mädels, "Mädeln (Southern Germany & Austria); Mädel, Mädels (Northern & Central Germany)" ]
|
5137 |
- [dative, Mädel, "Mädeln (Southern Germany & Austria); Mädeln, Mädels (Northern & Central Germany)"]
|
5138 |
- [accusative, Mädel, "Mädeln (Southern Germany & Austria); Mädel, Mädels (Northern & Central Germany)" ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5139 |
- term: verhauen
|
5140 |
definition: to bash up
|
5141 |
audio: https://upload.wikimedia.org/wikipedia/commons/1/18/De-verhauen.ogg
|
@@ -5865,6 +5911,138 @@ vocabulary:
|
|
5865 |
video: https://youtu.be/W3l8PzQlCIg
|
5866 |
conjugation: https://www.verbformen.com/conjugation/du3rfen.pdf
|
5867 |
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/du3rfen.pdf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5868 |
|
5869 |
|
5870 |
|
@@ -6154,6 +6332,7 @@ vocabulary:
|
|
6154 |
definition: to gain
|
6155 |
- term: die Fähigkeit
|
6156 |
definition: the ability
|
|
|
6157 |
declension:
|
6158 |
- ["", singular, plural ]
|
6159 |
- [nominative, Fähigkeit, Fähigkeiten]
|
|
|
229 |
definition: 1,708,000
|
230 |
- term: drei Millionen vierhunderteinundsiebzigtausend
|
231 |
definition: 3,471,000
|
232 |
+
- term: das Buch
|
233 |
+
definition: the book
|
234 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/2/28/De-Buch2.ogg
|
235 |
+
declension-type: strong
|
236 |
+
declension:
|
237 |
+
- ["", singular, plural ]
|
238 |
+
- [nominative, Buch, Bücher ]
|
239 |
+
- [genitive, "Buches, Buchs", Bücher ]
|
240 |
+
- [dative, Buch, Büchern]
|
241 |
+
- [accusative, Buch, Bücher ]
|
242 |
- term: der Tag
|
243 |
definition: the day
|
244 |
declension:
|
|
|
1600 |
definition: instead of
|
1601 |
- term: ohne
|
1602 |
definition:
|
1603 |
+
- (conj. & prep.) without
|
|
|
1604 |
audio: https://upload.wikimedia.org/wikipedia/commons/3/36/De-ohne.ogg
|
1605 |
- term: schmecken
|
1606 |
definition:
|
|
|
3916 |
- term: das Gespräch
|
3917 |
definition: the conversation
|
3918 |
audio: https://upload.wikimedia.org/wikipedia/commons/f/f5/De-Gespr%C3%A4ch.ogg
|
3919 |
+
declension-type: strong
|
3920 |
declension:
|
3921 |
- ["", singular, plural ]
|
3922 |
- [nominative, Gespräch, Gespräche ]
|
|
|
4003 |
conjugation: https://www.verbformen.com/conjugation/interviewen.pdf
|
4004 |
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/interviewen.pdf
|
4005 |
- term: die Platte
|
4006 |
+
definition:
|
4007 |
+
- the record
|
4008 |
+
- the flat
|
4009 |
audio: https://upload.wikimedia.org/wikipedia/commons/0/04/De-Platte.ogg
|
4010 |
declension:
|
4011 |
- ["", singular, plural ]
|
|
|
4102 |
- [genitive, Weckers, Wecker ]
|
4103 |
- [dative, Wecker, Weckern]
|
4104 |
- [accusative, Wecker, Wecker ]
|
4105 |
+
- term: laut
|
4106 |
+
definition:
|
4107 |
+
- loud
|
4108 |
+
- noisy
|
4109 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/3/37/De-laut.ogg
|
4110 |
|
4111 |
|
4112 |
|
|
|
4393 |
- to follow
|
4394 |
- to understand
|
4395 |
- to obey
|
4396 |
+
- term: der Offizier
|
4397 |
+
definition: (military) commissioned officer
|
4398 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/6/6f/De-Offizier.ogg
|
4399 |
+
declension-type: strong
|
4400 |
+
declension:
|
4401 |
+
- ["", singular, plural ]
|
4402 |
+
- [nominative, Offizier, Offiziere ]
|
4403 |
+
- [genitive, "Offiziers, Offizieres", Offiziere ]
|
4404 |
+
- [dative, Offizier, Offizieren]
|
4405 |
+
- [accusative, Offizier, Offiziere ]
|
4406 |
- term: das Unteroffizier
|
4407 |
definition: the non-commissioned officer
|
4408 |
declension:
|
|
|
4419 |
- [genitive, Welt, Welten]
|
4420 |
- [dative, Welt, Welten]
|
4421 |
- [accusative, Welt, Welten]
|
4422 |
+
- term: die Welt
|
4423 |
+
definition: the world
|
4424 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/5/51/De-at-Welt.ogg
|
4425 |
+
declension:
|
4426 |
+
- ["", singular, plural]
|
4427 |
+
- [nominative, Welt, Welten]
|
4428 |
+
- [genitive, Welt, Welten]
|
4429 |
+
- [dative, Welt, Welten]
|
4430 |
+
- [accusative, Welt, Welten]
|
4431 |
- term: der Weltkrieg
|
4432 |
definition: the world war
|
4433 |
declension:
|
|
|
5172 |
- [genitive, Mädels, "Mädeln (Southern Germany & Austria); Mädel, Mädels (Northern & Central Germany)" ]
|
5173 |
- [dative, Mädel, "Mädeln (Southern Germany & Austria); Mädeln, Mädels (Northern & Central Germany)"]
|
5174 |
- [accusative, Mädel, "Mädeln (Southern Germany & Austria); Mädel, Mädels (Northern & Central Germany)" ]
|
5175 |
+
- term: das Mädchen
|
5176 |
+
definition: the girl
|
5177 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/3/3e/De-M%C3%A4dchen2.ogg
|
5178 |
+
declension-type: strong
|
5179 |
+
declension:
|
5180 |
+
- ["", singular, plural ]
|
5181 |
+
- [nominative, Mädchen, Mädchen]
|
5182 |
+
- [genitive, Mädchens, Mädchen]
|
5183 |
+
- [dative, Mädchen, Mädchen]
|
5184 |
+
- [accusative, Mädchen, Mädchen]
|
5185 |
- term: verhauen
|
5186 |
definition: to bash up
|
5187 |
audio: https://upload.wikimedia.org/wikipedia/commons/1/18/De-verhauen.ogg
|
|
|
5911 |
video: https://youtu.be/W3l8PzQlCIg
|
5912 |
conjugation: https://www.verbformen.com/conjugation/du3rfen.pdf
|
5913 |
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/du3rfen.pdf
|
5914 |
+
- term: der Sturmbannführer
|
5915 |
+
definition: (military rank of the Nazi SA, SS and NSFK) major
|
5916 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/c/cc/De-Sturmbannf%C3%BChrer.ogg
|
5917 |
+
declension-type: strong
|
5918 |
+
declension:
|
5919 |
+
- ["", singular, plural ]
|
5920 |
+
- [nominative, Sturmbannführer, Sturmbannführer ]
|
5921 |
+
- [genitive, Sturmbannführers, Sturmbannführer ]
|
5922 |
+
- [dative, Sturmbannführer, Sturmbannführern]
|
5923 |
+
- [accusative, Sturmbannführer, Sturmbannführer ]
|
5924 |
+
- term: unterstehen
|
5925 |
+
definition:
|
5926 |
+
- to be subordinate to
|
5927 |
+
- to dare
|
5928 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/a/a3/De-unterstehen.ogg
|
5929 |
+
verbformen:
|
5930 |
+
conjugation: https://www.verbformen.com/conjugation/unter-stehen_hat.pdf
|
5931 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/unter-stehen_hat.pdf
|
5932 |
+
- term: gebieten
|
5933 |
+
definition:
|
5934 |
+
- to demand
|
5935 |
+
- to command
|
5936 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/a/ad/De-gebieten.ogg
|
5937 |
+
verbformen:
|
5938 |
+
conjugation: https://www.verbformen.com/conjugation/gebieten.pdf
|
5939 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/gebieten.pdf
|
5940 |
+
- term: die Wehrmacht
|
5941 |
+
definition: the armed forces (specifically referring to the Nazi-era military; longer used for armed forces generally.)
|
5942 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/7/72/De-Wehrmacht-pronunciation.ogg
|
5943 |
+
declension:
|
5944 |
+
- ["", singular, plural ]
|
5945 |
+
- [nominative, Wehrmacht, Wehrmächte ]
|
5946 |
+
- [genitive, Wehrmacht, Wehrmächte ]
|
5947 |
+
- [dative, Wehrmacht, Wehrmächten]
|
5948 |
+
- [accusative, Wehrmacht, Wehrmächte ]
|
5949 |
+
- term: anführen
|
5950 |
+
definition:
|
5951 |
+
- to lead
|
5952 |
+
- to command
|
5953 |
+
- to cite
|
5954 |
+
- to instruct
|
5955 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/6/61/De-anf%C3%BChren.ogg
|
5956 |
+
verbformen:
|
5957 |
+
video: https://youtu.be/5qeMCOwjoFI
|
5958 |
+
conjugation: https://www.verbformen.com/conjugation/anfu3hren.pdf
|
5959 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/anfu3hren.pdf
|
5960 |
+
- term: ehrenvoll
|
5961 |
+
definition: honourable
|
5962 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/d/df/De-ehrenvoll.ogg
|
5963 |
+
- term: die Verantwortung
|
5964 |
+
definition: the responsibility
|
5965 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/5/5e/De-Verantwortung.ogg
|
5966 |
+
declension:
|
5967 |
+
- ["", singular, plural ]
|
5968 |
+
- [nominative, Verantwortung, Verantwortungen]
|
5969 |
+
- [genitive, Verantwortung, Verantwortungen]
|
5970 |
+
- [dative, Verantwortung, Verantwortungen]
|
5971 |
+
- [accusative, Verantwortung, Verantwortungen]
|
5972 |
+
- term: regeln
|
5973 |
+
definition:
|
5974 |
+
- to regulate
|
5975 |
+
- to control
|
5976 |
+
- to take care of
|
5977 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/4/4f/De-regeln.ogg
|
5978 |
+
verbformen:
|
5979 |
+
video: https://youtu.be/V6fsN7ca8sk
|
5980 |
+
conjugation: https://www.verbformen.com/conjugation/regeln.pdf
|
5981 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/regeln.pdf
|
5982 |
+
- term: wünschen
|
5983 |
+
definition:
|
5984 |
+
- to wish
|
5985 |
+
- tp demand
|
5986 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/8/8a/De-w%C3%BCnschen.oga
|
5987 |
+
verbformen:
|
5988 |
+
video: https://youtu.be/bjHOsOZ2Rds
|
5989 |
+
conjugation: https://www.verbformen.com/conjugation/wu3nschen.pdf
|
5990 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/wu3nschen.pdf
|
5991 |
+
- term: wahnsinnig
|
5992 |
+
definition:
|
5993 |
+
- (adj.) insane
|
5994 |
+
- (adj.) incredible
|
5995 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/f/fe/De-at-wahnsinnig.ogg
|
5996 |
+
- term: das Auge
|
5997 |
+
definition: the eye
|
5998 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/9/9a/De-Auge2.ogg
|
5999 |
+
declension-type: mixed
|
6000 |
+
declension:
|
6001 |
+
- ["", singular, plural]
|
6002 |
+
- [nominative, Auge, Augen ]
|
6003 |
+
- [genitive, Auges, Augen ]
|
6004 |
+
- [dative, Auge, Augen ]
|
6005 |
+
- [accusative, Auge, Augen ]
|
6006 |
+
- term: mal
|
6007 |
+
definition: times
|
6008 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/9/91/De-mal.ogg
|
6009 |
+
- term: sicher
|
6010 |
+
definition:
|
6011 |
+
- (adj.) safe
|
6012 |
+
- (adj.) safely
|
6013 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/8/8d/De-sicher2.ogg
|
6014 |
+
- term: unter
|
6015 |
+
definition:
|
6016 |
+
- (prep.) under
|
6017 |
+
- (prep.) below
|
6018 |
+
- (prep.) among
|
6019 |
+
- (prep.) between
|
6020 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/a/ab/De-unter.ogg
|
6021 |
+
- term: der Umstand
|
6022 |
+
definition: the circumstance
|
6023 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/a/a2/De-Umstand.ogg
|
6024 |
+
declension-type: strong
|
6025 |
+
declension:
|
6026 |
+
- ["", singular, plural ]
|
6027 |
+
- [nominative, Umstand, Umstände ]
|
6028 |
+
- [genitive, "Umstandes, Umstands", Umstände ]
|
6029 |
+
- [dative, Umstand, Umständen]
|
6030 |
+
- [accusative, Umstand, Umstände ]
|
6031 |
+
- term: ruinieren
|
6032 |
+
definition: to ruin
|
6033 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/f/f6/De-ruinieren.ogg
|
6034 |
+
verbformen:
|
6035 |
+
conjugation: https://www.verbformen.com/conjugation/ruinieren.pdf
|
6036 |
+
flashcards: https://www.verbformen.com/conjugation/worksheets-exercises/lernkarten/ruinieren.pdf
|
6037 |
+
- term: die Karriere
|
6038 |
+
definition: the career
|
6039 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/f/f4/De-Karriere2.ogg
|
6040 |
+
declension:
|
6041 |
+
- ["", singular, plural ]
|
6042 |
+
- [nominative, Karriere, Karrieren]
|
6043 |
+
- [genitive, Karriere, Karrieren]
|
6044 |
+
- [dative, Karriere, Karrieren]
|
6045 |
+
- [accusative, Karriere, Karrieren]
|
6046 |
|
6047 |
|
6048 |
|
|
|
6332 |
definition: to gain
|
6333 |
- term: die Fähigkeit
|
6334 |
definition: the ability
|
6335 |
+
audio: https://upload.wikimedia.org/wikipedia/commons/4/49/De-F%C3%A4higkeit.ogg
|
6336 |
declension:
|
6337 |
- ["", singular, plural ]
|
6338 |
- [nominative, Fähigkeit, Fähigkeiten]
|
huggingface/german_parser.py
CHANGED
@@ -114,12 +114,11 @@ def get_declension_attributes(word: object) -> dict[str, str]:
|
|
114 |
|
115 |
def get_declension_type_attributes(word: object) -> dict[str, str]:
|
116 |
"""
|
117 |
-
Returns the declension type of delinable word as a single-entry dictionary
|
|
|
118 |
|
119 |
-
|
120 |
|
121 |
-
:
|
122 |
-
|
123 |
-
:return: a single-entry map
|
124 |
"""
|
125 |
return {"declension type": word["declension-type"]} if "declension-type" in word else {}
|
|
|
114 |
|
115 |
def get_declension_type_attributes(word: object) -> dict[str, str]:
|
116 |
"""
|
117 |
+
Returns the declension type of delinable word as a single-entry dictionary if the word has a "declension-type"
|
118 |
+
field, otherwise an empty dictionary is returned.
|
119 |
|
120 |
+
:param word: A vocabulary represented in YAML dictionary
|
121 |
|
122 |
+
:return: a single-entry map if "declension-type" key is presented in the word or an empty dictionary otherwise
|
|
|
|
|
123 |
"""
|
124 |
return {"declension type": word["declension-type"]} if "declension-type" in word else {}
|