Comments (3)
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.
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.
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:
- Remove the extra s
- 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)
- Wildcard and regular expressions only work with letters, not numbers. HOT 22
- Explain scoring
- xAPI for Essay HOT 1
- Fix a11y
- String.prototype.startsWith() HOT 3
- Improve reporting HOT 1
- H5P Essay question HOT 3
- Grades are not reported to LMS? HOT 1
- Optionally hightlight words that have been detected in text HOT 3
- Retry Button not available HOT 1
- Case sensitive switch does not work for RegExp HOT 3
- Take care of xAPI "attempted" via setActivityStarted()
- Support "Reizwortgeschichten"
- A single `*` freezes the browser HOT 3
- feedback about keywords not really easy to understand HOT 1
- Pass 'i' flag to regex if !caseSensitive HOT 3
- essay.js fails to handle null previousState HOT 8
- How to upgrade h5p essay to the latest version of this repo in my Moodle? HOT 4
- Using '\n' in the keyword doesn't behave as intended HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-essay.