{"uid":"cap_PBQUbur6gXa3HkXdd-vZH","slug":"saylor-innovations-data-desk-word-frequency-analysis-969495ae","name":"Saylor Innovations Data Desk – Word Frequency Analysis","description":"Word frequency analysis - top words and repeated bigrams without stopwords, unique and total words, lexical diversity and average word length","url":"https://saylorinnovations.com/api/text/word-frequency?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["text"],"properties":{"top":{"type":"string","description":"optional 1-50 words, default 15"},"text":{"type":"string","description":"Text to analyse, 20-5000 characters"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["total_words","top_words"],"properties":{"note":{"type":"string","description":"Caveat or context for reading the result"},"source":{"type":"string","description":"Data source the values come from"},"top_words":{"type":"array","items":{"type":"object","properties":{"word":{"description":"Word"},"count":{"description":"Number of items returned"},"percent":{"type":["number","null"],"description":"Share of all words, percent"}}},"description":"Top words"},"top_bigrams":{"type":"array","items":{"type":"object","properties":{"count":{"description":"Number of items returned"},"phrase":{"type":["string","null"],"description":"Two-word phrase"}}},"description":"Top bigrams"},"total_words":{"type":"number","description":"Total words"},"longest_word":{"type":["string","null"],"description":"Longest word"},"unique_words":{"type":"number","description":"Unique words"},"content_words":{"type":["number","null"],"description":"Content words"},"hapax_legomena":{"type":["number","null"],"description":"Hapax legomena"},"avg_word_length":{"type":"number","description":"Avg word length"},"lexical_diversity":{"type":"number","description":"Lexical diversity"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GgomQAFcTcDXQJ7K7Frlg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes text to return top words, top bigrams, unique/total word counts, lexical diversity, average word length, hapax legomena, and content word statistics","exampleAgentPrompt":"Can you analyze this paragraph for word frequency and give me the top 10 most common words, bigrams, and lexical diversity score? Here's the text: 'The quick brown fox jumps over the lazy dog. The dog barked at the fox and the fox ran away quickly.'","exampleUseCases":[{"title":"Blog post vocabulary richness check","prompt":"I've written this article draft and want to know if I'm repeating myself too much — can you run a word frequency analysis on it and show me the top 15 words, any repeated two-word phrases, and my lexical diversity score? Here's the text: [paste of 800-word blog post]"},{"title":"Student essay complexity analysis","prompt":"Can you analyze this student essay for me and tell me the total and unique word counts, average word length, and the top 20 most-used words excluding stopwords? I want to see how rich the vocabulary is."},{"title":"Marketing copy keyword audit","prompt":"Look at this product description and find the top 10 words and bigrams that appear most often — I want to see if we're overusing any terms and what percent of the text each key word takes up."}],"resultDescription":"A JSON object containing: an array of top words each with word text, occurrence count, and percentage share of total words; an array of top bigrams with phrase and count; total word count; unique word count; lexical diversity ratio; average word length; longest word; count of content words; and count of hapax legomena (words appearing exactly once). Optional note and source fields may also be present.","failureModes":["Text shorter than 20 characters returns a validation error","Text longer than 5000 characters exceeds the limit and is rejected","Missing 'text' query parameter causes a required field error","Non-string or empty text input causes a parse error","Top parameter value outside 1-50 range returns a validation error","Payment not attached or insufficient USDC returns a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a quick, structured breakdown of word-level statistics from a block of text — especially lexical diversity, bigrams, and stopword-free frequency counts — without building or hosting your own NLP pipeline. It is well-suited for lightweight content auditing, vocabulary richness checks on short-to-medium passages (up to 5000 characters), and situations where a pay-per-call model is preferable to a subscription. It is not suitable for full document analysis beyond 5000 characters, sentiment analysis, or deep semantic understanding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:56:33.643Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-word-frequency-analysis-969495ae"}