Coder Social home page Coder Social logo

Forgive minor mistakes setting about h5p-essay HOT 3 CLOSED

otacke avatar otacke commented on May 11, 2024
Forgive minor mistakes setting

from h5p-essay.

Comments (3)

otacke avatar otacke commented on May 11, 2024

Hi @Jarvil!

There are plenty of ways to assert the similarity of two strings. I created the function areSimilar in the TextUtilities library. It computes the so called Damerau-Levenshtein distance which essentially counts the number of changes (delete a character, add a character, exchange a character, swap two adjacent characters) needed to transform one string into the other - those count is considered as the number of mistakes. In consequence, the algorithm is not tailored to a particular language but will do the same for any language.

Also, as always, H5P content types are not tailored to a particular host system. It doesn't matter if you use moodle, WordPress, Drupal or something else - they always work the same.

Cheers,
Oliver

from h5p-essay.

Jarvil avatar Jarvil commented on May 11, 2024

Hello,

So it compares the characters in a keyword and how much they wary. And you will get full points even if you have 9 wrong charcaters so number of mistakes doesn't count

from h5p-essay.

otacke avatar otacke commented on May 11, 2024

Hi @Jarvil!

Yes, you are correct. If someone wrote "desoxyribonucliec acid" instead of "deoxyribonucleic acid" this would still count as a valid answer. The correct answer deoxyribonucleic acid has more than 9 characters and there are just two changes needed:

  1. Remove the extra s
  2. Swap i and e

In an essay scenario that's "stupidly" based on detection of keywords, it doesn't make much sense to punish spelling IMHO, but the person who wrote "desoxyribonucliec acid" probably meant the correct thing in a larger context and should get full score. It's not a dictation.

from h5p-essay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.