Skip to content

Latest commit

 

History

History
71 lines (38 loc) · 1.63 KB

README.md

File metadata and controls

71 lines (38 loc) · 1.63 KB

German declension driller

Purpose

This program (gdd.py) repeatedly shows you random German noun phrase elements to be inflected properly to the specified grammatical case (NOM = Nominative, ACC = Acusative, DAT = Dative, GEN = Genitive) and number (SG = Singular, PL = Plural), and then waits for you to find the correct declension, and then (after you click Enter) shows you the answer. Entering q and then Enter ends the loop and the program terminates.

This program can be used to memorize the correct declensions of German determiners, adjectives and nouns.

The lists of determiners, adjectives and nouns used by the program are hard-coded in the gdd.py script. You can add new vocabulary items to those lists if you desire so.

How to run this program

You need Python 3 to run this program.

python3 gdd.py

Output example

<< NOM.PL: der + klein + Haus

>> Die kleinen Häuser

<< NOM.SG: sein- + beste + Pfote

>> Seine beste Pfote

<< DAT.PL: euer- + letzte + Pfote

>> Eueren letzten Pfoten

<< ACC.SG: kein- + schnell + Vogel

>> Keinen schnellen Vogel

<< ACC.PL: der + kurz + Student

>> Die kurzen Studenten

<< ACC.PL: dein- + klein + Buch

>> Deine kleinen Bücher

<< NOM.PL: manch- + grün + Schmetterling

>> Manche grünen Schmetterlinge

<< GEN.SG: mein- + schön + Schmetterling

>> Meines schönen Schmetterlings

<< NOM.SG: dein- + bestimmt + Schlange

>> Deine bestimmte Schlange

<< NOM.PL: kein- + weiß + Wildschwein

>> Keine weißen Wildschweine

<< DAT.PL: ihr- + jung + Fuß

>> Ihren jungen Füßen

<< NOM.PL: jen- + klein + Baum

>> Jene kleinen Bäume