I've just started learning Python 3 and built a small program to help me study Basque. One of the most complicated things about Basque is the verb system, in English verbs sometimes change depending on the person (eg. 3rd person singular generally adds 's' in the present). In Basque, verbs can change depending on how many objects are being acted upon, which person is doing the action, whether someone is receiving the action, etc. So i wrote a small program to help me practice some of the verb forms as a sort of Python practice. However, i feel like my method could be simplified quite a bit. (Source is available here).
The NOR-NORI verb is used to talk about something happening to an indirect object. NOR is the subject, and NORI is the indirect object. For example, IT (NOR) seems strange TO ME (NORI), or WE (NOR) seem strong TO YOU (NORI). Currently, i've got something like this (I've changed the Basque pronouns to English ones to make it easier to follow):
Code:
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. The problem is that each time i want to add a new verb or new tense, i've got to create a new function. 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)). 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'm not sure if what i've said makes any sense or not, but i'd appreciate any help
The NOR-NORI verb is used to talk about something happening to an indirect object. NOR is the subject, and NORI is the indirect object. For example, IT (NOR) seems strange TO ME (NORI), or WE (NOR) seem strong TO YOU (NORI). Currently, i've got something like this (I've changed the Basque pronouns to English ones to make it easier to follow):
Code:
NOR = (('I','NATZAI'),
('THOU','HATZAI'),
('HE','ZAI'),
('WE','GATZAIZKI'),
('YOU','ZATZAIZKI'),
('YALL','ZATZAIZKI+TE'),
('THEY','ZAIZKI'))
NORI = (('TO ME','T/DA'),
('TO THEE','K'),
('TO HIM','O'),
('TO US','GU'),
('TO YOU','ZU'),
('TO YALL','ZUE'),
('TO THEM','E'))
I'm not sure if what i've said makes any sense or not, but i'd appreciate any help