Developers · Gutenberg

Text Analyzer block for WordPress

Comprehensive text analysis tool: word/character/sentence counts, vocabulary richness, top word frequency chart, average lengths, and more. Live updates as you type.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Comprehensive text analysis tool: word/character/sentence counts, vocabulary richness, top word frequency chart, average lengths, and more. Live updates as you type.

Inspector panels on this block: Analyzer Settings, Sizing. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Developers → search “Text Analyzer” (block name `blockenberg/text-analyzer` in block.json). Style it in the sidebar after insert.

How to use Text Analyzer block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Text Analyzer”, insert it. Category: Developers.
  3. Configure inspector controls that exist on this block. Open Analyzer Settings. Set “Show title”, “Show subtitle”, “Show basic statistics”, “Show vocabulary insights”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Show titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show subtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
Show basic statisticsOn/off toggle in the inspector. On by default. Saved as `showBasicStats`.
Show vocabulary insightsOn/off toggle in the inspector. On by default. Saved as `showVocabStats`.
Show longest wordOn/off toggle in the inspector. On by default. Saved as `showLongestWord`.
Show word frequency chartOn/off toggle in the inspector. On by default. Saved as `showFrequency`.
Top N words in chartNumeric range control in the inspector. Range 3–20. block.json default: 8. Saved as `freqTopN`.
Placeholder textText field in the inspector. block.json default: Paste your text here and watch the analysis update in real time…. Saved as `placeholder`.
Max width (px)Numeric range control in the inspector. Range 400–1200. block.json default: 760. Saved as `contentMaxWidth`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Text Analyzer block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Text Analyzer”. It sits under Developers. After insert, open Analyzer Settings and set “Show title”, “Show subtitle”, “Show basic statistics”, “Show vocabulary insights”.

What makes Text Analyzer different from other Blockenberg blocks?

Comprehensive text analysis tool: word/character/sentence counts, vocabulary richness, top word frequency chart, average lengths, and more. Live updates as you type. Inspector labels on this block include “Show title”, “Show subtitle”, “Show basic statistics”, “Show vocabulary insights”.

Is the Text Analyzer Gutenberg block free?

Yes. Text Analyzer ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Text Analyzer to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Analyzer Settings, Sizing).

Related developers blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Text Analyzer from the Gutenberg inserter.

Get Blockenberg