Script Summary: Randomly selects language for previous, next or random sentence out of a predifined list.
Copyright: Jakob V. <firstname.lastname@example.org>
You can set a list of languages in a input field that appears in your user profile. The script then randomly takes one of them each time and changes the "Language for previous, next or random sentence" field on the http://tatoeba.org/eng/sentences/show/ page (or similar fields on other pages).
So for example if you set your list to "eng, eng, eng, epo, epo, jpn, fra, deu, rnd, und" you will get an English sentence with 30% chance (3 out of 10) or an esperanto with 20% or japanese, frensh and german with 10% each. The "rnd" stands for 'random', so with 10% chance you will get one of the available languages at Tatoeba (where all of them are equally likely). The "und" stands for 'undefined' and will return a random sentences, meaning that the likelihood of a spanish sentence (5% of the corpus) will be much higher than a latin sentence (0.1% of the corpus). (The list has to be comma seperated. Any non-letter characters will be ignored, so you can also write "!"§$eng,$%&fra" for example.)
The main reason why i wrote this script is that it can be quite annoying to stumble upon a sentence in a language one can absolutely not contribute only to have to click on the linked sentence in one of your languages.
I hope this is useful form some of you.