{
  "x402Version": 2,
  "id": 72360,
  "slug": "saylorinnovations-api-text-word-frequency",
  "resource": "https://saylorinnovations.com/api/text/word-frequency",
  "description": "Word frequency analysis - top words and repeated bigrams without stopwords, unique and total words, lexical diversity and average word length",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "total_words": {
        "type": "number",
        "description": "Total words"
      },
      "unique_words": {
        "type": "number",
        "description": "Unique words"
      },
      "lexical_diversity": {
        "type": "number",
        "description": "Lexical diversity"
      },
      "top_words": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "percent": {
              "description": "Share of all words, percent",
              "type": [
                "number",
                "null"
              ]
            },
            "word": {
              "description": "Word"
            },
            "count": {
              "description": "Number of items returned"
            }
          }
        },
        "description": "Top words"
      },
      "top_bigrams": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "phrase": {
              "description": "Two-word phrase",
              "type": [
                "string",
                "null"
              ]
            },
            "count": {
              "description": "Number of items returned"
            }
          }
        },
        "description": "Top bigrams"
      },
      "avg_word_length": {
        "type": "number",
        "description": "Avg word length"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "content_words": {
        "type": [
          "number",
          "null"
        ],
        "description": "Content words"
      },
      "hapax_legomena": {
        "type": [
          "number",
          "null"
        ],
        "description": "Hapax legomena"
      },
      "longest_word": {
        "type": [
          "string",
          "null"
        ],
        "description": "Longest word"
      }
    },
    "required": [
      "total_words",
      "top_words"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "text": "Data products need reliable data; reliable data needs clear ownership, and clear ownership builds trust in data products across teams.",
            "top": "5"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "total_words": 20,
            "unique_words": 13,
            "content_words": 18,
            "lexical_diversity": 0.65,
            "hapax_legomena": 8,
            "avg_word_length": 5.6,
            "longest_word": "ownership",
            "top_words": [
              {
                "word": "data",
                "count": 4,
                "percent": 22.2
              },
              {
                "word": "clear",
                "count": 2,
                "percent": 11.1
              },
              {
                "word": "ownership",
                "count": 2,
                "percent": 11.1
              },
              {
                "word": "products",
                "count": 2,
                "percent": 11.1
              },
              {
                "word": "reliable",
                "count": 2,
                "percent": 11.1
              }
            ],
            "top_bigrams": [
              {
                "phrase": "data products",
                "count": 2
              },
              {
                "phrase": "reliable data",
                "count": 2
              },
              {
                "phrase": "clear ownership",
                "count": 2
              }
            ],
            "note": "Counts ignore a common English stopword list; bigrams skip stopwords and appear only if repeated. Lexical diversity is unique words divided by total words (higher means richer vocabulary, but falls as text gets longer).",
            "source": "word counting"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Text to analyse, 20-5000 characters"
                  },
                  "top": {
                    "type": "string",
                    "description": "optional 1-50 words, default 15"
                  }
                },
                "required": [
                  "text"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "total_words": {
                    "type": "number",
                    "description": "Total words"
                  },
                  "unique_words": {
                    "type": "number",
                    "description": "Unique words"
                  },
                  "lexical_diversity": {
                    "type": "number",
                    "description": "Lexical diversity"
                  },
                  "top_words": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "percent": {
                          "description": "Share of all words, percent",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "word": {
                          "description": "Word"
                        },
                        "count": {
                          "description": "Number of items returned"
                        }
                      }
                    },
                    "description": "Top words"
                  },
                  "top_bigrams": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "phrase": {
                          "description": "Two-word phrase",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "count": {
                          "description": "Number of items returned"
                        }
                      }
                    },
                    "description": "Top bigrams"
                  },
                  "avg_word_length": {
                    "type": "number",
                    "description": "Avg word length"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "content_words": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Content words"
                  },
                  "hapax_legomena": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Hapax legomena"
                  },
                  "longest_word": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Longest word"
                  }
                },
                "required": [
                  "total_words",
                  "top_words"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "most common words in a text",
    "word frequency counter",
    "keyword density of a paragraph",
    "top bigrams in text",
    "lexical diversity score"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.937Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text to analyse, 20-5000 characters"
        },
        "top": {
          "type": "string",
          "description": "optional 1-50 words, default 15"
        }
      },
      "required": [
        "text"
      ]
    },
    "exampleResponse": {
      "total_words": 20,
      "unique_words": 13,
      "content_words": 18,
      "lexical_diversity": 0.65,
      "hapax_legomena": 8,
      "avg_word_length": 5.6,
      "longest_word": "ownership",
      "top_words": [
        {
          "word": "data",
          "count": 4,
          "percent": 22.2
        },
        {
          "word": "clear",
          "count": 2,
          "percent": 11.1
        },
        {
          "word": "ownership",
          "count": 2,
          "percent": 11.1
        },
        {
          "word": "products",
          "count": 2,
          "percent": 11.1
        },
        {
          "word": "reliable",
          "count": 2,
          "percent": 11.1
        }
      ],
      "top_bigrams": [
        {
          "phrase": "data products",
          "count": 2
        },
        {
          "phrase": "reliable data",
          "count": 2
        },
        {
          "phrase": "clear ownership",
          "count": 2
        }
      ],
      "note": "Counts ignore a common English stopword list; bigrams skip stopwords and appear only if repeated. Lexical diversity is unique words divided by total words (higher means richer vocabulary, but falls as text gets longer).",
      "source": "word counting"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "text": "Data products need reliable data; reliable data needs clear ownership, and clear ownership builds trust in data products across teams.",
              "top": "5"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "total_words": 20,
              "unique_words": 13,
              "content_words": 18,
              "lexical_diversity": 0.65,
              "hapax_legomena": 8,
              "avg_word_length": 5.6,
              "longest_word": "ownership",
              "top_words": [
                {
                  "word": "data",
                  "count": 4,
                  "percent": 22.2
                },
                {
                  "word": "clear",
                  "count": 2,
                  "percent": 11.1
                },
                {
                  "word": "ownership",
                  "count": 2,
                  "percent": 11.1
                },
                {
                  "word": "products",
                  "count": 2,
                  "percent": 11.1
                },
                {
                  "word": "reliable",
                  "count": 2,
                  "percent": 11.1
                }
              ],
              "top_bigrams": [
                {
                  "phrase": "data products",
                  "count": 2
                },
                {
                  "phrase": "reliable data",
                  "count": 2
                },
                {
                  "phrase": "clear ownership",
                  "count": 2
                }
              ],
              "note": "Counts ignore a common English stopword list; bigrams skip stopwords and appear only if repeated. Lexical diversity is unique words divided by total words (higher means richer vocabulary, but falls as text gets longer).",
              "source": "word counting"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Text to analyse, 20-5000 characters"
                    },
                    "top": {
                      "type": "string",
                      "description": "optional 1-50 words, default 15"
                    }
                  },
                  "required": [
                    "text"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "total_words": {
                      "type": "number",
                      "description": "Total words"
                    },
                    "unique_words": {
                      "type": "number",
                      "description": "Unique words"
                    },
                    "lexical_diversity": {
                      "type": "number",
                      "description": "Lexical diversity"
                    },
                    "top_words": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "percent": {
                            "description": "Share of all words, percent",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "word": {
                            "description": "Word"
                          },
                          "count": {
                            "description": "Number of items returned"
                          }
                        }
                      },
                      "description": "Top words"
                    },
                    "top_bigrams": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "phrase": {
                            "description": "Two-word phrase",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "count": {
                            "description": "Number of items returned"
                          }
                        }
                      },
                      "description": "Top bigrams"
                    },
                    "avg_word_length": {
                      "type": "number",
                      "description": "Avg word length"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "content_words": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Content words"
                    },
                    "hapax_legomena": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Hapax legomena"
                    },
                    "longest_word": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Longest word"
                    }
                  },
                  "required": [
                    "total_words",
                    "top_words"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/text/word-frequency?text=Data%20products%20need%20reliable%20data%3B%20reliable%20data%20needs%20clear%20ownership%2C%20and%20clear%20ownership%20builds%20trust%20in%20data%20products%20across%20teams.&top=5",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "total_words": 0,
    "unique_words": 0,
    "lexical_diversity": 0,
    "top_words": [
      {
        "percent": 0,
        "word": null,
        "count": null
      }
    ],
    "top_bigrams": [
      {
        "phrase": "string",
        "count": null
      }
    ],
    "avg_word_length": 0,
    "note": "string",
    "source": "string",
    "content_words": 0,
    "hapax_legomena": 0,
    "longest_word": "string"
  }
}