Skip to content
Generates a quiz for a Wikipedia page using parts of speech and text chunking.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
css Adding initial web page html and css Feb 9, 2017
python location questions turned back on, but pulling incorrect locations fr… Jun 1, 2017 Added MIT License Feb 19, 2017
index.html Satisfied with the project. ready to write a README and submit. Feb 11, 2017
requirements.txt Answer now hidden from question text. Requirements.txt generated. Feb 11, 2017


alt tag


Credit to Volley ( for requesting/inspiring this project!

To run:

requirements.txt contains the libraries/modules you'll need (It's come to my attention that the Wikipedia library has a bug, so I recommend this instead: You'll also need to download some data so that the nltk library works. To do this, start the Python console (ie. type python on the command line) and then:

>>> import nltk

Run to get the Flask endpoints working, and then open up index.html - that's all!

Potential Future Improvements:

Choosing more appropriate multiple-choice options, especially for numbers

ie. if the answer is '1960s', show '1950s' as another option.

Ignoring the less text heavy parts of a Wikipedia page.

Creating more interesting grammar for the text chunker, which would lead to more interesting question types.

Some of the questions presented currently lack context about what the question is referring to. A further version of this project would attempt to interpret the context of the sentence in question and include that in the question.

ie. references to 'they' or 'he' would be replaced by what those pronouns are actually referring to.

You can’t perform that action at this time.