def makePronounCaseQuestion():
    q = Question(sentence = joinSentenceRedact(\
        "To complete our Egyptian mummy costumes, Lou Ellen and I bought a 12 pack of toilet paper.", "I"), wordPKs = "")
    q.save()
    updatePKs(getPKsAnswer(["I", "me", "myself"], q, "pronoun"), q)
    q.text = "Fill in the blank."

    q.correct_words = "[I]"
    q.save()
    return q.pk
def makeQuestionRedact(sentence, correctWord, possWords):
    q = Question(sentence=joinSentenceRedact(sentence, correctWord),
                 wordPKs="")
    q.save()

    updatePKs(getPKsRedact(possWords, q), q)

    q.text = "Fill in the word which best complete the following sentence"
    q.correct_words = correctWord
    q.save()

    return q.pk
def makeQuestionHightlight(sentence):
    q = Question(sentence=sentence, wordPKs="")
    q.save()

    highlightedWord = sentence[random.randrange(0, len(sentence))]
    while type(highlightedWord) == str:
        ighlightedWord = sentence[random.randrange(0, len(sentence))]
    # while loop until dont get a string
    QAs = highlightedWord.getQA()
    QA = QAs[random.randrange(0, len(QAs))]
    q.text = QA.getQuestionTxt()
    q.correct_words = QA.getCorrectWords()
    possWords = QA.getAnswerChoices()
    if possWords == [] or possWords == ['This verb does not have a subject']:
        possWords.extend(joinSentence(sentence))
        #while possWords <= 5 or limit number of answer choices
    updatePKs(getPKsRedact(possWords, q), q)
    q.save()

    return q.pk