Your Moodle version

Question types: Correct writing

Maintained by Picture of Oleg Sychev Oleg Sychev
Correct Writing question type are focused on the learning grammar of the new language. It can found various mistakes in student's response and give mistake messages and hints.

Correct Writing question type are focused on the learning grammar of the new language. It can found various mistakes in student's response and give mistake messages and hints.

It can find token sequence mistakes: absent tokens, extraneous tokens and misplaced tokens. Token is a minimal language unit like word, punctuation mark etc. For now two language supported: English language and C programming language.

Also it can find typos, including missing and extraneous spaces between words.

You can download this question type along with all subplugins, necessary for it, using our BitBucket site 


This plugin is part of set Correct Writing Question Type.


Screenshot #0
Screenshot #1


Picture of Oleg Sychev
Oleg Sychev (Lead maintainer): Idea, string analysis method, general architecture, hints implementation
Picture of Dmitry Mamontov
Dmitry Mamontov: Question type code, sequence analysis, picture generation
Picture of Vadim Klevtsov
Vadim Klevtsov: Enumeration analysis
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Anthony Borrow
    Wed, Mar 13, 2013, 9:32 AM
    Oleg - Many thanks for sharing the correct writing question type. I was able to install without any issues. One concern I have is about the dependencies. This question type is listed as being for Moodle 2.4 and many of the dependencies do not show having a version for 2.4. We may want to be a little careful to ensure that everything seems to match up with respect to the versions (i.e. a 2.4 version of each plugin being available). I know you have a link to have them all together but if there begin to be differences between the versions that system may fall apart without carefully managing the branches. I presume that you want this plugin added to the PERL set. I will go ahead and approve this plugin and add it to the set. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony

    p.s. - Any objections to changing the URL for the source code to which is more specific (rather than the more generic one that points to the root of the repository)?
  • Picture of Oliver Stearn
    Tue, Aug 6, 2013, 5:05 PM
    'It can found various mistakes in student's response' - very clever!
  • image by Vasya Romashova
    Sat, Nov 8, 2014, 3:04 AM
    There is some bug in `string_pair.php`. Look at the first line. It should be `<?php` not `<?`. It makes problems in strickt mode.
  • Picture of Sepp Hofbauer
    Wed, Nov 26, 2014, 3:28 AM
    In the manual picture there are 7 penalties to configure. I've installed current version and can find only 4 of them. Where are the missing penalties?
    -missing token
    -extra token
    -absent token mistake hints
    In this configuration a forgotten ")" in student's answer of for ( int i = 4; i <= 10; i++)
    leads to 33% minus. This ist too strict.
  • Picture of Oleg Sychev
    Wed, Nov 26, 2014, 4:22 AM
    Sepp, penalties with green asterisk are "advanced" and hidden by default.
    did you see "Show advanced" or similar button on the form? Press it and you will see all settings.
  • Picture of Sepp Hofbauer
    Wed, Nov 26, 2014, 6:20 AM
    Sorry, no such button. Some of green-asterisk-entries are visible, e.g. :
    -Penalty for misplaced token
    -Maximum percent of mistakes
  • Picture of Oleg Sychev
    Sat, Dec 6, 2014, 12:47 AM
    Thanks, Sepp. Two penalties was really disappeared from the question editing screen during internal refactoring. A placed a new version there (2.6.1.) that should make them visible, please try it.
    The button now called "show more".
  • Picture of Sepp Hofbauer
    Tue, Dec 9, 2014, 7:57 AM
    Thank you. Now it works! I can set the penalty for missing token.

    But, ... smile
    not every token is as important as each of the others. Is it possible to add an indiviual missing penalty in the description token window? eg. separated by ~
    for: for command~10%
    ( : bracket~5%
    int : data type~20%
    and so on

  • Picture of Sepp Hofbauer
    Fri, Jan 9, 2015, 5:37 AM
    @Khac: Edit first line of string_pair.php (and other php files) from "<?" to "<?php"
  • Picture of Przemek Malik
    Fri, Oct 2, 2015, 5:59 PM
    Is there a possibility to use another language istead of english (I do not mean C/C++ etc.) - german for example?
  • Picture of Oleg Sychev
    Fri, Oct 2, 2015, 6:25 PM
    It's depends on the language (or words used in answer to particular question). CorrectWriting use language to tokenize input - i.e. break answer down to the tokens - words, punctuation marks etc. That may not be always intuitive (cf. single apostrophe in English at the end of the word which can be a quote or a part of word). If the rules of tokenizing German (for you answers) are identical with English you can just use English in the question. If not, that will require some additional coding either from you or from us. I would expect problems with German letters that absent in English, I do not know about other details of German.

    We can be contacted about developing support for other languages, thought considering other tasks we can't guarantee to do it fast. Thought if you are researcher, there are ways to motivate us to work faster under support of some language.
Please login to post comments