version 5 by Michael Callaghan

  • Home page
  • Beginning
  • Previous
  • Next

  • Section 3 - Rules for text questions
    Text question rules is a rulebook.
    The text question rules have outcomes exit (success), retry (failure) and parse (failure).
    The first text question rule (this is the remove punctuation from text questions rule):
        if punctuation removal is true:
            replace the regular expression "\p" in the current answer with "";
    The last text question rule (this is the default text question rule):
        if closed question mode is true:
        if closed question mode is false: