Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: text input fields for student answers #156

Closed
garrettgman opened this issue Apr 11, 2018 · 2 comments
Closed

Feature request: text input fields for student answers #156

garrettgman opened this issue Apr 11, 2018 · 2 comments

Comments

@garrettgman
Copy link
Member

I would like to build exercises that use the equivalent of Shiny's numeric input and text input widgets to collect student responses. For example, I would like to write a prompt and then insert a text field for the student to write in, e.g.

Which species of iris has the largest average petal length?
TEXT FIELD

Ideally, I could supply answer() options as with question(). The text box would match student submissions to answers, ignoring case, whitespace, and misspellings(?). learnr would return the message associated with the matched answer (as well as the correct = ? status). If the submission is not matched to an answer(), learnr would return the general message provided to the text box.

One immediate application for this would be to transition students from the learnr tutorial environment to the full-blown IDE. Students could do their work in the IDE and then submit their "answer" in the text box for grading. A second application would be case studies (which would also require work in the IDE).

It is possible to tell the student to write text in the existing exercise box, but explaining this would be a distraction to the lesson (and may break the checker function).

@katossky
Copy link

I would use this feature for instance to ask student to fill-in some missing words in a text, in order to force them to actively read some explanations.

@schloerke
Copy link
Collaborator

Closed in #194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants