Find Jobs
Hire Freelancers

Adapting a javascript to handle regular expressions (regex)

$30-250 CAD

En curso
Publicado hace más de 9 años

$30-250 CAD

Pagado a la entrega
There is freeware suite called Hot Potatoes which can be found at [login to view URL] The JCloze module of that software permits teachers to create fill-in-the-blank questions for use online with students. The teacher authors these questions in the JCloze editor of Hot Potatoes. The settings for the lesson can be modified in the configuration menu. You can also set the source files to choose the type of interactions you would like (shift ctrl alt S). Then you generate an .htm page that has everything needed for the interactivity including the presentation of the page and the javascripts that handle student answers. The types of interactions that come with Hot Potatoes JCloze are standard but but some developers have developed "hacks" that allow for different kind of interactions. The developer encourages this kind of development and there is a section on the website about how to "hack" it so that you can have new interactions. Right now, JCloze compares student answers to one or a range of text answers that the teacher accepts. If you download the software and create a quick JCloze activity what it does. I have also attached an htm page for a quick understanding. You can see the source code. I would like to introduce a new interaction into the JCloze module that compares a student answer to a regular expression (regex) rather than a simple text answer. The comparison would first need to recognize that it is comparing a student answer to a regular expression written by the teacher and not just a text answer and make the comparison on that basis. It should also be able to still recognize when it is just a simple textual comparison and do that too. If every comparison needs to be a regular expression comparison in order to simplify development, I would be fine with that too. There should be two variations or options. The first one checks to see if the student answer is an exact match to something in the regular expression. The other one checks to see if the student answer contains a match. So if the question is "What kind of sound does a dog make?" And the regular expression is something like (barks?|barking) The first variation would only accept one of those words and nothing else in the student answer (exact match). The second variation would permit other words as long as one of those words is in it. So for the second variation, if the student wrote, "Dogs bark", the answer would also be considered correct. It might be possible allow both options in the same lesson where if the teacher wants one blank in a fill-in-the-blank question with multiple blanks evaluated as an exact match, this is indicated in the regular expression for that blank while another blank could be evaluated as "contains." I imagine this difference to be easily cued somehow in the regular expression author into the JCloze module when the teacher is creating the lesson. I have been in touch with the author of JCloze. I have attached the function that he says would need to be modified and what it returns. I have also attached a file JCloze file that can be opened with JCloze and shows you what the authoring page looks like. Finally, I have attached a webpage generated by that JCloze file. If you look source code, you see the javascript that needs to be change according to the developer of Hot Potatoes. What I want is to be able to author a lesson in JCloze and change the source file to one that generates the page to handle the regexp verification of student answers as described above. Upon payment, I wish to own the code, the copyright to the code and any rights inherent to that notion. Having worked mostly with PERL regex, I would also like a link to a quick reference that explains how the javascript regexp need to be written if they are much different than those used with PERL or PHP. I expect to make this tool available to other teachers using Hot Potatoes. I have indicated a price range thinking that this may be a fairly easy project.
ID del proyecto: 6424934

Información sobre el proyecto

5 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
expertise in php/mysql,html,html-5,bootstrap,android,css,css-3,cakephp (MVC),LARAVEL-4,symfony-2,YII,have more than 11 year of experience we build more then 100 php/mysql projects worked on joomla,wordpress,magento tell me how we can start this project.
$140 CAD en 2 días
0,0 (0 comentarios)
0,0
0,0
5 freelancers están ofertando un promedio de $349 CAD por este trabajo
Avatar del usuario
i have 8+ years of experience. Can we discuss the project. Please initiate a chat with me so that we can discuss the project at a broader level. Why you should hire me- 1. I have a very good communication skills so i would understand you better. 2. Error free work will be there 3. Look at my profile once before hiring me. Please see my reviews https://www.freelancer.com/u/fattahaabdul.html
$1.052 CAD en 3 días
5,0 (8 comentarios)
5,3
5,3
Avatar del usuario
Hello, I have reviewed your requirements and I can implement a complete solution for you within 48 hours. I have over 9 years of experience with JavaScript development and I am available to start working on this immediately. Quality work and satisfaction is guaranteed. Thank you for your consideration.
$250 CAD en 2 días
4,9 (9 comentarios)
3,8
3,8
Avatar del usuario
Hello Dear client! Thank you for your posting with our skill's scope. Please choose with confidence. I have many experience in this field. If you check my feedbacks and portfolios, you can be sure it. Also if you contact me, I will show more my past work. I will complete this project as you are satisfied. Thank you for your time. From guangzhen.
$155 CAD en 3 días
5,0 (12 comentarios)
3,6
3,6
Avatar del usuario
A proposal has not yet been provided
$222 CAD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de CANADA
Canada
0,0
0
Forma de pago verificada
Miembro desde sept 8, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.