<commit_before># Javascript quiz using JSON

[![Code Climate](https://codeclimate.com/github/Matt-Webb/jquery-quiz-using-json/badges/gpa.svg?style=flat-square)](https://codeclimate.com/github/Matt-Webb/jquery-quiz-using-json)
[![MIT License](https://img.shields.io/npm/l/starwars-names.svg?style=flat-square)](http://opensource.org/licenses/MIT)

This code enables you to render questions with optional answers using radio buttons. Using [valid JSON](http://jsonlint.com/)
you can provide a list of questions and answers which will render to the user in sequence.

Each question can be assign a score against each option, this allows for a range of score for each question.

### ALPHA (v0.2.0)

This project is currently in ALPHA and activity being worked on. Contributions are welcome!

#### EXAMPLE USE:

__EXAMPLE JSON__

Here is a sample of the quiz question data:

      {
          "question": "What year was the film The Terminator released?",
          "info": "The Terminator is a 1984 American science fiction action film directed by <NAME>. It stars <NAME> as the Terminator, a cyborg assassin sent back in time from 2029 to 1984 to kill <NAME> (<NAME>), whose son will one day become a savior against machines in a post-apocalyptic future.",
          "options":
            [
              "1982",
              "1983",
              "1984",
              "1984"
            ],
          "scores":<commit_msg>added build status badge<commit_after># Javascript quiz using JSON

[![Code Climate](https://codeclimate.com/github/Matt-Webb/jquery-quiz-using-json/badges/gpa.svg?style=flat-square)](https://codeclimate.com/github/Matt-Webb/jquery-quiz-using-json)
[![MIT License](https://img.shields.io/npm/l/starwars-names.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![Build Status](https://travis-ci.org/Matt-Webb/jquery-quiz-using-json.svg?branch=master)](https://travis-ci.org/Matt-Webb/jquery-quiz-using-json)

This code enables you to render questions with optional answers using radio buttons. Using [valid JSON](http://jsonlint.com/)
you can provide a list of questions and answers which will render to the user in sequence.

Each question can be assign a score against each option, this allows for a range of score for each question.

### ALPHA (v0.2.0)

This project is currently in ALPHA and activity being worked on. Contributions are welcome!

#### EXAMPLE USE:

__EXAMPLE JSON__

Here is a sample of the quiz question data:

      {
          "question": "What year was the film The Terminator released?",
          "info": "The Terminator is a 1984 American science fiction action film directed by <NAME>. It stars <NAME> as the Terminator, a cyborg assassin sent back in time from 2029 to 1984 to kill <NAME> (<NAME>), whose son will one day become a savior against machines in a post-apocalyptic future.",
          "options":
            [
              "1982",
              "1983",
              "1984",
              "1984"
            ],
          "scores":
{'fraction_non_alphanumeric': 0.10855810855810856, 'fraction_numerical': 0.020646020646020648, 'mean_word_length': 3.178025034770515, 'pattern_counts': {'":': 8, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '691496', 'n_tokens_mistral': 924, 'n_tokens_neox': 833, 'n_words': 314}