def twoWordAccusativeSentence(user_profile): #get a triplet - we'll ignore the nominative. #Use of gettriplet forces a transitive verb, which is good. words = quizUtility.getTriplet(user_profile) verbPerson = random.randrange(1,7) objectPlurality = random.choice( ('singular','plural') ) question = (getEnglishPronoun(verbPerson).title() + " " + englishVerbs.getEnglishVerbForm(words[2],verbPerson,'Present Active') + " the " + englishNouns.getEnglishNounForm(words[1],objectPlurality)) answer = ( latinNouns.getLatinNounForm(words[1].translation,'accusative',objectPlurality) + " " + latinVerbs.getLatinVerbForm(words[2].translation,verbPerson,'Present Active') ) return (question,answer)
def getChapterThreeShortSentence(user_profile): subjectPlurality = random.choice( ('singular','plural') ) objectPlurality = random.choice( ('singular','plural') ) person = utility.getPerson(3,subjectPlurality) words = quizUtility.getTriplet(user_profile) question = ("The " + englishNouns.getEnglishNounForm(words[0],subjectPlurality) + " " + englishVerbs.getEnglishVerbForm(words[2],person,'Present Active') + " the " + englishNouns.getEnglishNounForm(words[1],objectPlurality) + "." ) latinVerbModel = words[2].translation latinSubjectModel = words[0].translation latinObjectModel = words[1].translation answer = (latinNouns.getLatinNounForm(latinSubjectModel,'nominative',subjectPlurality) + " " + latinNouns.getLatinNounForm(latinObjectModel,'accusative',objectPlurality) + " " + latinVerbs.getLatinVerbForm(latinVerbModel,person,'Present Active') ) return (question,answer)