Check the reading level of text in Moodle's editor

Moodle's editor can check accessibility but not how hard a text is to read. Our free tiny_readability shows reading ease, grade level and long sentences.

Drawing of an open book with a blue ruler lying across its pages.

Short answer: Moodle’s editor can check your text for accessibility problems such as missing image descriptions and poor contrast, but not how hard it is to read. Our free plugin, tiny_readability, adds Tools > Reading level: it shows the Flesch reading ease, a school grade level, the average sentence length, and the sentences that are too long, while you write.

This is the twenty-second plugin in our series: one plugin for each Moodle plugin type, each one teaching DevLMS Studio, our AI plugin builder, how that type works. We checked the Moodle plugins directory first: it lists 71 plugins for the TinyMCE editor, and none measures reading level.

What it shows

  • Reading ease, from 0 to 100, with a plain label from “Very difficult” to “Very easy”. Most adults read 60 and above comfortably.
  • School grade level (Flesch-Kincaid): roughly the years of school needed to read the text easily.
  • Average sentence length, words and sentences.
  • Long sentences over 25 words, listed so you can split them.

It helps when writing for younger learners, language learners, or anyone reading course pages on a phone. Everything runs in the browser: the text is not stored or sent anywhere. It supports Moodle 4.5 LTS to 5.3. The code is on GitHub.

Two honest limits. The formulas were made for English, so the numbers mean little for other languages, and the dialogue says so. And syllables are counted with rules, not a dictionary, so scores are close to other tools but not always identical. We tuned the rules on words that commonly trip them up (“beautiful”, “queue”, “created”).

How a TinyMCE plugin works

From Moodle 5.3’s own accessibility checker:

  1. A TinyMCE plugin has a small PHP side, which tells Moodle which buttons and menu items exist and who may use them, and a JavaScript side, which registers them with the editor and does the work.
  2. The JavaScript is shipped both as source and as built files. Moodle’s build tool makes them, and the plugin checks on GitHub fail if the built files are not exactly what the tool would make. We built ours once and they pass on every Moodle version from 4.5 to 5.3.
  3. Results open in a standard Moodle dialogue, so they look and behave like the rest of the editor.

Browser tests type an easy text (“Very easy”), a long academic sentence (“Very difficult”, listed as long) and an empty editor into a real Moodle editor and check the dialogue each time.

Need a plugin like this for your own Moodle?

Describe it in DevLMS Studio and watch it built and tested in a real Moodle, or ask our team for a fixed price.

Open DevLMS Studio