Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Assignment/Draft Features/Online Word Limit

From MoodleDocs

Online text assignment word limit

This is a proposal for an additional feature to allow a word limit for online text submissions (was in older assignment versions).

Goals and rationale

The main goals of this feature are to :

  • Give students clear feedback on how many words are in their online text submission and an indication of whether they have exceeded the word count. Optionally prevent the student from entering more than X words.

Overview

The old online text assignment type used to be able to prevent students from entering more than X words in an online assignment.

Status

The feature is currently only a proposal

Design

Changes to assignment settings

Add a setting to the submission_onlinetext plugin to specify a word limit.

Changes to the grading table

Display the word count in the summary for online text submissions.

Changes to the assignment submission summary table

Display the word count in the summary for online text submissions (so students can see it).

Changes to the assignment submission screen

Display the word limit to students near the online text submission editor.

If javascript is enabled, display a running total of the word count that is updated as they type.

If javascript is enabled, provide a visual indication when they have exceeded the word count.

Prevent submission if the word count is above the word limit.

User Interface mockups

To be written

Database changes

To be written

Use cases

Teacher wants to set a word limit for an online text assignment

  • Teacher sets the word limit when creating the assignment

Teacher does not want to set a word limit for an online text assignment

  • Teacher leaves the word limit empty when creating the assignment

Teacher upgrades a 2.2 assignment that had a word limit

  • The new assignment gets the setting from the old assignment type on upgrade.