Universal Sentence Length Distribution Chart
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Universal Sentence Length Distribution Chart analyzes the text content of any webpage and creates a visual chart showing the distribution of sentence lengths. The script extracts all visible text, splits it into sentences, counts the number of words in each sentence, and generates a histogram chart showing how many sentences fall into each length range. Color-coded bars make it easy to spot patterns—tall bars show common sentence lengths, while short bars reveal outliers. The chart displays key statistics including average sentence length, median, minimum, maximum, and standard deviation. Readability indicators (Flesch Reading Ease and grade level) help you understand the complexity of the text. Sentences that are unusually long or short are highlighted for review. You can adjust bin size to control the granularity of the distribution, and choose between bar, line, or area chart styles. Chart data can be copied as CSV or saved as an SVG image.
WHERE IT RUNS
This script runs on every website (matching all URLs), analyzing page content across the entire web. It works on articles, blog posts, documentation pages, product descriptions, and any page with visible text content. The script automatically adapts to each page and handles both static and dynamically loaded content.
HOW TO USE
After installing through the BotGentz extension, simply browse to any webpage. The script automatically analyzes the page and displays the sentence length distribution chart. Use the configuration panel to customize your experience: adjust the bin size in words (1-20), choose the chart type (Bar, Line, or Area), show or hide statistics, enable or disable outlier highlighting, show or hide readability indicators, and enable or disable auto-analysis. The panel displays real-time statistics including sentence count, average length, median, min, max, and standard deviation. Use the "Analyze Page" button to manually reanalyze, "Copy Data as CSV" to export the histogram data, or "Save as SVG" to download the chart as an image.
DOM TEXT EXTRACTION WITH SENTENCE PARSING AND STATISTICAL ANALYSIS
This script implements a text analysis engine using DOM traversal with visibility filtering. The engine walks through all text nodes, filtering out invisible elements (display:none, visibility:hidden) and ignoring script and style tags. The text is then split into sentences using punctuation-based segmentation (. ! ? followed by space or end of string). Word counting uses regex-based word boundary detection, counting only alphabetic characters with optional apostrophes and hyphens. The histogram engine creates bins based on configurable bin size and counts sentence frequencies per bin. Statistical calculations include mean, median, min, max, and standard deviation using array operations. The readability engine implements both Flesch Reading Ease and Flesch-Kincaid Grade Level formulas, with a syllable counter using vowel detection and silent-e handling.
THE PANEL
The configuration panel is fully draggable and remembers its position per-site using GM_setValue. It snaps to screen edges when dragged near them, collapses to a compact bubble when minimized, and supports Escape key for quick collapse. All settings—including bin size, chart type, statistics display, outlier highlighting, readability display, and auto-analysis—are persisted across sessions.
PLEASE NOTE
This script requires the free BotGentz extension to run. The script runs on all websites and reads page content to generate sentence analysis. It does not capture, store, or transmit any personal information. All analysis occurs locally in your browser. The script processes visible text only and does not access hidden fields, passwords, or sensitive information. Sentence splitting relies on punctuation and may not be perfect for all languages or text styles. Readability scores are calculated using standard formulas and should be interpreted as approximate indicators. This tool is provided for informational and educational purposes only.