![]() ![]() Return "%s %s" % ((("%s (%s)" % (utsch,self.d_present)) if self.vowel_change else utsch), self.d_past_participle) Self.d_past_participle = d_past_participle If ural and ural != DNoun.ALWAYS_PLURAL and ural != DNoun.NEVER_PLURAL:ĭef _init_(self,deutsch_infinitive,english,vowel_change,d_present,d_past_participle):ĭWord._init_(self,deutsch_infinitive,english) Return "%s\t:\t%s" % (self.english, utsch)ĪRTICLES = ĭef _init_(self,deutsch,english,gender,plural,n=None): I'm not really sure what the best way to organize it would be. How did you set up the classes? And how exactly did you use them? I just looked at some code for a Spanish conjugator and their idea seems pretty similar to mine, my idea was to come up with lists of stems and suffixes for each tense for both the transitive and intransitive auxiliary and put them in lists or dictionaries, i dunno. I'm very new to Python, i've been reading through the Dive Into Python 3 tutorials and have read through pretty much everything, but there are no practical drills or anything after each lesson so, while i can understand what the code does, i wouldn't necessarily be able to write it. So you really just need to learn how the auxiliary verbs conjugate (there are two, one for transitive verbs and one for intransitive). Right now i'm just focusing on verbs, though something to practice the cases would be useful in the future, too. ![]() Most words use an auxiliary (similar to sein/haben/werden in German past/future tenses). Thanks, Basque is kinda special in that very few verbs are actually conjugated. I'm not sure if what i've said makes any sense or not, but i'd appreciate any help It'd be easier to add new verbs later on, but i'm still not sure if that's the best way to go about it and i'm not quite sure how to go about it, either. I think a better method would be to pass two lists to the function, the first one has the separate parts of the verb (there can be between one and three parts) and the second list holding the corresponding verb tables (here, (NOR,NORI)). ![]() The problem is that each time i want to add a new verb or new tense, i've got to create a new function. ('TO THEM','E')) What i do is pass the NOR (I, you, they) part and NORI part to my buildVerb function, which looks through the lists, pulls the correct stem/ending out, and then builds the verb. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |