{
  "title": "Lexical diversity analyzer",
  "human_url": "https://happytails.ai/en/text-tools/lexical-diversity-analyzer/",
  "agent_url": "https://happytails.ai/agents/en/text-tools/lexical-diversity-analyzer/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/text-tools/lexical-diversity-analyzer.md",
  "content": "Lexical diversity analyzer\nMeasure transparent vocabulary ratios and moving-window variation in your own passage.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Lexical diversity analyzer\nPaste your own passage as plain text.\nChoose explicit matching or analysis settings.\nReview the bounded table and download complete JSON or CSV.\nUseful next steps\nConcordance reader\nVocabulary coverage estimator\nEditorial style guide checker\nKnow exactly what is measured\nWord tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality.\nKeep the full report\nUse up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded. Offsets refer to the original UTF-16 text. Machine report keys and your content are preserved. Formula-protected CSV changes risky cell prefixes; import columns as text when preserving exact identifiers.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Concordance reader",
      "url": "https://happytails.ai/en/text-tools/concordance-reader/"
    },
    {
      "name": "Vocabulary coverage estimator",
      "url": "https://happytails.ai/en/text-tools/vocabulary-coverage-estimator/"
    },
    {
      "name": "Editorial style guide checker",
      "url": "https://happytails.ai/en/text-tools/editorial-style-guide-checker/"
    }
  ],
  "tool": {
    "id": "lexical-diversity-analyzer",
    "category": "text-tools",
    "built": true,
    "requirements": "Word tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.",
    "implementation": {
      "fields": [
        {
          "key": "window",
          "label": "Words per moving window",
          "value": "50",
          "type": "text",
          "inputMode": "numeric",
          "maxLength": 8,
          "min": 2,
          "max": 1000,
          "step": 1,
          "help": "2–1000"
        },
        {
          "key": "caseMode",
          "label": "Case comparison",
          "value": "fold",
          "type": "select",
          "values": [
            "fold",
            "exact"
          ],
          "labels": {
            "fold": "Locale-aware lowercase",
            "exact": "Case-sensitive"
          }
        }
      ],
      "presentation": "metrics",
      "inputMaxLength": 500000,
      "inputErrorCode": "TEXT_DIAGNOSTICS_INPUT",
      "note": "Word tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.",
      "experience": {
        "automatic": false,
        "single": false,
        "inputMaxLength": 500000,
        "inputMode": "text",
        "label": "Your text",
        "placeholder": "Type or paste your input…",
        "help": "Up to 500,000 characters. Review the settings before running.",
        "action": null
      },
      "mode": "explicit",
      "interactive": false
    },
    "execution": "Browser interface",
    "api": null,
    "browser_agent": {
      "supported": true,
      "name": "run_current_tool",
      "discovery": "WebMCP on the human page in a supporting browser",
      "verification": "See audit/API-AUDIT.md; availability is not verification"
    }
  },
  "markdown": "# Lexical diversity analyzer\n\n- Human page: https://happytails.ai/en/text-tools/lexical-diversity-analyzer/\n- Markdown: https://happytails.ai/en/text-tools/lexical-diversity-analyzer.md\n- Structured JSON: https://happytails.ai/agents/en/text-tools/lexical-diversity-analyzer/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `lexical-diversity-analyzer` |\n| Category | text-tools |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Use the visible action or interactive controls. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nWord tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.\n\n### Inputs and settings\n\nText input: Your text.\n\nExample or placeholder shown in the interface (not a validated fixture):\n\n```text\nType or paste your input…\n```\n\nUp to 500,000 characters. Review the settings before running.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `window` | Words per moving window | text | \"50\" | min=2 max=1000 step=1 |\n| `caseMode` | Case comparison | select | \"fold\" | Allowed: fold, exact |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nWord tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"lexical-diversity-analyzer\",\n  \"category\": \"text-tools\",\n  \"built\": true,\n  \"requirements\": \"Word tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"window\",\n        \"label\": \"Words per moving window\",\n        \"value\": \"50\",\n        \"type\": \"text\",\n        \"inputMode\": \"numeric\",\n        \"maxLength\": 8,\n        \"min\": 2,\n        \"max\": 1000,\n        \"step\": 1,\n        \"help\": \"2–1000\"\n      },\n      {\n        \"key\": \"caseMode\",\n        \"label\": \"Case comparison\",\n        \"value\": \"fold\",\n        \"type\": \"select\",\n        \"values\": [\n          \"fold\",\n          \"exact\"\n        ],\n        \"labels\": {\n          \"fold\": \"Locale-aware lowercase\",\n          \"exact\": \"Case-sensitive\"\n        }\n      }\n    ],\n    \"presentation\": \"metrics\",\n    \"inputMaxLength\": 500000,\n    \"inputErrorCode\": \"TEXT_DIAGNOSTICS_INPUT\",\n    \"note\": \"Word tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality. Use up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded.\",\n    \"experience\": {\n      \"automatic\": false,\n      \"single\": false,\n      \"inputMaxLength\": 500000,\n      \"inputMode\": \"text\",\n      \"label\": \"Your text\",\n      \"placeholder\": \"Type or paste your input…\",\n      \"help\": \"Up to 500,000 characters. Review the settings before running.\",\n      \"action\": null\n    },\n    \"mode\": \"explicit\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nMeasure transparent vocabulary ratios and moving-window variation in your own passage.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Lexical diversity analyzer\n\n1. Paste your own passage as plain text.\n2. Choose explicit matching or analysis settings.\n3. Review the bounded table and download complete JSON or CSV.\n\n## Useful next steps\n\n- [Concordance reader](https://happytails.ai/en/text-tools/concordance-reader/) ([Markdown](https://happytails.ai/en/text-tools/concordance-reader.md))\n\n- [Vocabulary coverage estimator](https://happytails.ai/en/text-tools/vocabulary-coverage-estimator/) ([Markdown](https://happytails.ai/en/text-tools/vocabulary-coverage-estimator.md))\n\n- [Editorial style guide checker](https://happytails.ai/en/text-tools/editorial-style-guide-checker/) ([Markdown](https://happytails.ai/en/text-tools/editorial-style-guide-checker.md))\n\n## Know exactly what is measured\n\nWord tokens are Intl.Segmenter word-like segments containing a Unicode letter; pure numbers are excluded. TTR = distinct words / words; root TTR = distinct words / square root of words; corrected TTR = distinct words / square root of twice the words. Moving-average TTR uses only complete selected-size windows. These length-sensitive descriptive ratios do not measure proficiency or writing quality.\n\n### Keep the full report\n\nUse up to 500000 text characters and 20000 word tokens. Reports allow up to 10000 matches or repeated phrase groups. JSON and CSV preserve the full report, with bounded exports up to 40 million characters and 500000 CSV records. Analysis runs locally with a 10-second timeout. Preview search and sort cover the first 200 rows; copy returns the summary. Download the full report for every row. Your text is not uploaded. Offsets refer to the original UTF-16 text. Machine report keys and your content are preserved. Formula-protected CSV changes risky cell prefixes; import columns as text when preserving exact identifiers.\n"
}