Wolfram Language

Live Version Coming Soon Check out other examples

Correct and Grade Keyboard Practice

Automatically correct and grade text typed from dictation.


code

X
X

how it works

Text typed by a student from dictation is checked against the original, graded, and returned with clearly marked errors. Compact code derives from the built-in NeedlemanWunsch alignment algorithm for strings.

Here is a text dictated to students for keyboard practice:

In[1]:=
X

And here is a text typed by a student from the dictation:

In[2]:=
X

The built-in global NeedlemanWunsch alignment algorithm finds student errors:

In[3]:=
X
Out[3]=

Format that result nicely using Overscript and Overlay:

In[4]:=
X
Out[4]=

Calculate a percentage grade by dividing the number of errors by one quarter of the total number of text characters:

In[5]:=
X
Out[5]=

Assign letter grades from percentage grades:

In[6]:=
X
In[7]:=
X
Out[7]=

Combine the letter grade and corrected text into a framed presentation:

In[8]:=
X
In[9]:=
X
Out[9]=