Has there been a change in the way memrise treats commas?

No semicolons don’t work!

1 Like

This will sadly be true of a lot of EasyAcademy courses I’ve supported @BenWhately, although it has long-time been my aim to provide **’**alternatives separated by commas’ as separate, hidden alternatives. (If you follow what I mean.)

1 Like

@dylan.nicholson.548 thanks but I’m not confident with scripts. It appears that since this afternoon obliques and semi colons are now working.

1 Like

They can’t do any harm, if they do you just uninstall them.

It’s probably not hard to write a script that you can run when in the database page that can replace all the , with / or ;…but you said you’re not comfortable with scripts…(and you’d probably still have to manually switch from one database page to the next - how many are there?)

no, i don’t see that @hung-phan, the thread got too long and I’m getting lost in it… in case you lost track as well, you meant some zoloast chat? (zoloast our contemporary was/is a course creator on memrise, as far as I know :grin:)

(I have some advanced level typing courses of my own - languages and religions/history/Mandarin about this and that, and of course, the @eunoia courses, and a chinese course (Mandarin comprehensive, the creator got very upset with memrise and left etc i’ cannot repair all these…)

@BenWhately, @hung-phan

I don’t see what can happen to fix this course: http://www.memrise.com/course/47049/5000-words-top-87-sorted-by-frequency/
which I have been learning for ages. Here, commas are used to separate the stem of the word from the additional ending for the plural. It’s a great course, and I deliberately took this version as I didn’t want to learn the plurals at this point, however now it won’t accept answers without them.

2 Likes

@BenWhately, @hung-phan

Why can’t the separator be chosen by the course creator on a per course bias? With perhaps default separators being hyphen and semi colon. If that was the case old courses would work without much modification. Else a simple tool to update old courses to the new format would be nice. Something that kind of does a global swap of ‘,’ for ‘/’ or ‘;’

In the Germany 5000 Top Words example above (which I just started, but now is broken because of the comma issue), something that would say swap out ‘das Gut, -"er’ for ‘das Gut/ -"er’ Obviously then ‘das Gut’ and ‘-"er’ would be valid, but that’s workable.

1 Like

Hi @Hydroptere,

In the post 155/195 and 157/195 ( you can easily find it in the sidebar), I replied to zaloast with courses that wouldn’t be affected by the rule. If your first column does not contain comma, it will just work. I checked your courses yesterday. Can you double check your courses?

This is the link to it:

Hi @demaxski,

Some courses that you list are not affected by the rule as long as it is not the first column.

This is the link:

The German 5000 top words by frequency is one I’m a contributor on and I’m looking at whether I can automate replacing all the commas with semi-colons, though actually what would be better is to put the plural/dative endings in ( ), so you must at least type the head-word.
But with my user-scripts in place it still functions as before.

1 Like

$(“tr.thing[data-thing-id]”).each(function(a,b) {
var txt=$(b).find(‘div.text’).first()
if (txt.text().indexOf(’,’)!=-1) {
var nv = txt.text().replace(/,/g, ‘;’); txt.text(nv);
$.ajax({
type:“POST”,
url:"/ajax/thing/cell/update/",
data:{thing_id: $(b).attr(‘data-thing-id’), cell_id:“1”,cell_type:“column”,new_val: nv}
});
}})

This will fix all the words in the current page of the database while editing it. But at this stage you’ll still have manually navigate from one page to the next and run the script. You can add this to the end:

var hc=document.location.href.split(’=’);document.location.href=hc[0]+"="+(parseInt(hc[1])+1)

To automatically advance to the next page, but if there are errors it might be hard to detect them.

I’ve tested this out a bit and it generally works fine but you’ll occasionally get errors and AJAX cancellations depending on how many items need updating. I’ve been adding

setTimeout(“var hc=document.location.href.split(’=’);document.location.href=hc[0]+’=’+(parseInt(hc[1])+1)”,500)

to the end to automatically advance to the next page, so I can just keep pressing “up arrow” then enter to update each page one by one, but you should keep an eye on the network view to check if any calls to update are being cancelled or failing, if they are your entries are not getting updated and you’ll have to re-do.

Perhaps @Ang you could try again - maybe it was a time thing when you tried last and now they will work for you.

@dylan.nicholson.548 I’ll bear them in mind but I wouldn’t even know how to install them - do you just download to your computer like a new programme which I can do or do you have to do something else? (such as actually write the script)

I have many courses with commas in the first line, i’ve just spent the night replacing commas with “/” - this is the new separator, or do I have to start again ??? ( or to bloody hell delete my courses)

1 Like

Wow - this is just dandy . . . for course creators and editors who happen to be programmers :frowning:

1 Like

@sandslane
Thank you, today semicolons work fine. Now let’s get to work to change the courses, where I used commas to separate! :wink:

1 Like

Hi @Hydroptere,

Sorry to hear that. We support / and ; as separator. I can help you do it a bit faster.

In the edit screen, reveal all your level. and paste this script in the console. If you don’t have reveal all course, you can go to the database page. It will help you do the same thing.

Array.from(document.querySelectorAll('[data-thing-id] td:nth-child(2)')).forEach(
  (node) => {
    if (node.textContent.includes(',')) {
      node.style.backgroundColor = 'yellow';
    }
  }
)

It will only highlight the first column where you have commas in your text. The decision to change that text is depended on you. Hope this speed up this boring work.

1 Like

So I’m having this issue in my French course. I have to type articles, and in some instances, I have to add in (conj or (f – not even the full parenthesis. Are you saying I must wait for the course creator to edit, or is memrise rolling out a fix?