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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Text Analyzer”, insert it. Category: Developers.
- Configure inspector controls that exist on this block. Open Analyzer Settings. Set “Show title”, “Show subtitle”, “Show basic statistics”, “Show vocabulary insights”.
- 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
| Control | What the code does |
|---|---|
| Show title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Show subtitle | On/off toggle in the inspector. On by default. Saved as `showSubtitle`. |
| Show basic statistics | On/off toggle in the inspector. On by default. Saved as `showBasicStats`. |
| Show vocabulary insights | On/off toggle in the inspector. On by default. Saved as `showVocabStats`. |
| Show longest word | On/off toggle in the inspector. On by default. Saved as `showLongestWord`. |
| Show word frequency chart | On/off toggle in the inspector. On by default. Saved as `showFrequency`. |
| Top N words in chart | Numeric range control in the inspector. Range 3–20. block.json default: 8. Saved as `freqTopN`. |
| Placeholder text | Text 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
- The view script reads HTML data attributes: data-opts.
When this is the right block
- Comprehensive text analysis tool: word/character/sentence counts, vocabulary richness, top word frequency chart, average lengths, and more. Live updates as you type — that is the job of Text Analyzer, not a generic content block.
- Use it when you need the editor control labeled “Show title”, which exists on this block’s inspector.
- It matches pages about text, analyzer, analysis.
- Inserter grouping: docs sites, utilities, and developer landing pages.
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
Word Counter
An interactive word counter tool. Users paste or type text and instantly see word count, character count, sentence count, paragraph count, reading time, and speaking time.
Readability Score
Analyze text readability with Flesch-Kincaid, Gunning Fog, and more.
Lorem Ipsum Generator
Generate placeholder Lorem Ipsum text by paragraphs, sentences, words, or lists — with optional HTML output and one-click copy.
Markdown Preview
Live Markdown editor with real-time rendered preview, toolbar shortcuts, and copy buttons.
Text Case Converter
Live text transformer: paste any text and instantly get it in multiple case formats with one-click copy.
API Reference
Display API endpoint documentation with method badge, parameters table, and request/response code examples.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Text Analyzer from the Gutenberg inserter.