/Flashcard-Generator

UC San Diego Coding BootCamp - Week 6, Homework 2

Primary LanguageJavaScript

Flashcard-Generator

The backend for a basic flashcard application. The backend will essentially constitute an API that allows users to create two types of flashcards.

1.) Basic flashcards, which have a front ("Who was the first president of the United States?"), and a back ("George Washington").
2.) Cloze-Deleted flashcards, which present partial text ("... was the first president of the United States."), and the full text when the user requests it ("George Washington was the first president of the United States.")

Cloze Deletions: A cloze deletion is simply a sentence that has had some of its text removed. For example, given the sentence: "George Washington was the first president of the United States." ...We can create a "cloze deletion" by removing the words "George Washington": "... was the first president of the United States." This is useful for building flash card applications that forces users to remember the important part of a sentence, and is a common device in educational applications. A flash card built this way has three parts: The full text. This is the entire sentence users need to remember: "George Washington was the first president of the United States." The cloze deletion. This is the text we've chosen to remove: "George Washington". The partial text. This is what we get if we remove the cloze deletion from the full text: "... was the first president of the United States.