Website van Alex Reuneker over taal, hardlopen, wielrennen en reizen

Improvements to the Lexical Diversity Calculator

In the last couple of days, I've been implementing various improvements to the Lexical Diversity Calculator. Not only did I fix a problem in the calculation of MTLD, which resulted in numbers that were slightly off, but I've also streamlined the calculations and added the calculation of Moving average TTR (MATTR).

enter image description here

Photo by Siora Photography on Unsplash.

Updates

  • 2025-05-29: Added choice to use natural logarithm or base 10 in calculation Maas's a2, Dugast's U2, and Herdan's C.
  • 2025-05-29: Various improvements to calculations and algorithms; added MATTR.
  • 2025-05-26: Important change to the calculation of MTLD, which was slightly off before due to not averaging the forward and backward algorithm.

Next to this, I'm also working on an R-package to easily calculate several measures of lexical diversity, primarily for a research project I'm envisioning for the near future. Stay tuned! For now, please see the online calculator at https://www.reuneker.nl/ld for the newest version.

Boxplots bij de t-toets

Wilt u een boxplot bij de t? Flauw, I know, maar dat mag ook wel een keertje. De t-toets-calculator is uitgebreid met boxplots, dus bij elke vergelijking die je nu maakt, verschijnt netjes een grafiek zoals de onderstaande, die hoort bij een vergelijking van (fictieve) examenresultaten.

enter image description here

Boxplot bij een vergelijking van (fictieve) examenresultaten

Het verschil in de scores op het examen Nederlands van 2VA (m = 7.13; sd = 1.3) en 2VB (m = 5.79; sd = 1.37) is significant (t (27) = 2.71; p < 0.05). Het effect is groot (Cohen's d = 1.01; Cohen, 1988). Dat kun je ook mooi in de grafiek zien; de medianen liggen niet in het bereik van de eerste twee kwartielen (de boxes) en de verdere spreiding (de whiskers) wijken aardig van elkaar af.

Kleine updates voor de chikwadraatcalculator

De chikwadraattoetscalculator heeft een paar kleine updates ondergaan.

  • 15-4-2025: De resultatentabel wordt omgezet naar ASCII-formaat en meegekopieerd met de rapportage.
  • 12-4-2025: Een p-waarde lager dan 0.001 wordt, conform APA, als p < 0.001 gerapporteerd. Ook is er een knop toegevoegd om voorbeeldwaarden in te voeren.

enter image description here

Naast de nette HTML-tabel nu ook een te kopiëren tabel in platte tekst (ASCII).

Je kunt de chikwadraatcalculator eenvoudig gebruiken op https://www.reuneker.nl/chi.

Interpolation for treadmill speeds

I keep finding myself fiddling with treadmill speeds and the calibration thereof. I am fully aware though, that really exact speeds don't matter that much in running/training, but I just find it fascinating. I also kept finding myself calculating intermittent speeds between two calibrated speeds in a very inefficient way. Now I've come to value inefficiency a bit more in the last couple of years (or, better said, I've come to devalue efficiency...), but this task was just to repetitious and, to be frank, boring. That's why I've added an interpolation function to the treadmill calculator.

enter image description here

Interpolation for calibrated treadmill speeds

With this new function, you can enter two previously calibrated speeds and calculate the 'correct' speeds in between. For instance, when you calculated the true speed of your treadmill at 10 and 16 kph, you can calculate the speeds at 11, 12, 13, 14 and 15 kph. Keep in mind that linear interpolation is used for this, which assumes the deviation of your treadmill is constant. This probably is not an entirely correct assumption, but that's the margins of the margins, I'd say. Anyway, if you find it useful, let me know!

Link: https://www.reuneker.nl/treadmill

Zinslengtecalculator

Laatst wilde ik, voor een voorbeeldje van een toepassing van de t-toets, de lengte van zinnen in twee jeugdromans met elkaar vergelijken. Je raadt: er moest een scriptje komen om zinnen uit teksten te halen en de woorden erin te tellen. Op een paar interpunctiedingetjes na geen lastig klusje, maar waarom niet ook hiervoor een webscriptje schrijven, zodat ik zoiets de volgende keer zonder enige moeite of ook maar een regel code kan doen? Bovendien kunnen ook anderen er op deze manier gebruik van maken.

Op https://www.reuneker.nl/senlen kun je een tekst invoeren en zowel de gemiddelde zinslengte, als een lijst met alle zinnen en hun woordenaantal genereren. Toegegeven, niet iedereen zal hier enthousiast van worden, maar ik heb er best plezier in zoiets te maken en wie weet wanneer en wie het nog eens van pas komt.

enter image description here

Zinslengte in 'De Stille Kracht' van Louis Couperus

Mocht je gewoon eens willen kijken hoe e.e.a. werkt, dan kun je gemakkelijk de zinslengtes bekijken in Jules Vernes Twenty Thousand Leagues under the Sea of Louis Couperus' Stille Kracht, die je met een klik op de desbetreffende knop op het scherm tovert.

Pagina 2 of 3