{"uid":"cap_5oqRe0CSyInDbiKcXaHOb","slug":"agentshelf-syntexa-ch-word-2-gram-counter-4423284c","name":"agentshelf.syntexa.ch Word 2-Gram Counter","description":"Call when an agent needs counts of word 2-grams. No network and no LLM. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/ngram-word-2 first.","url":"https://agentshelf.syntexa.ch/v1/ngram-word-2?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["ab ab"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"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_nOEaxvN_eTFzpDITzQ_3u","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":"Counts all word bigrams (2-grams) in a given text and returns their frequencies, with no network or LLM dependencies.","exampleAgentPrompt":"Count all the word bigrams in this paragraph and tell me how many times each two-word pair appears: 'The quick brown fox jumps over the lazy dog. The dog barked at the fox.'","exampleUseCases":[{"title":"Most frequent word pairs in article","prompt":"Find me all the two-word combinations and their counts in this news article text so I can see which word pairs dominate the writing: 'Climate change continues to affect global weather patterns. Climate scientists warn that climate change poses significant risks...'"},{"title":"Bigram profile for SEO analysis","prompt":"I need the word 2-gram frequency counts for the following product description so I can see which keyword pairs are being repeated most often: 'Our premium coffee beans are sourced from premium farms. Coffee beans are roasted fresh daily for the best coffee experience.'"},{"title":"NLP feature extraction for classifier","prompt":"Extract word bigram counts from this customer review text so I can use the frequencies as features: 'The battery life is amazing but the screen quality is disappointing. Battery life could be better for the price.'"}],"resultDescription":"A map of word bigram strings (e.g. 'word1 word2') to their integer occurrence counts across the input text, covering all adjacent word pairs found in the document.","failureModes":["Empty or missing text field returns a validation error","Text exceeding 100,000 characters is rejected","Payment not included or insufficient USDC triggers HTTP 402","Malformed JSON request body returns 400 error"],"whenToPreferThis":"Choose this endpoint when you need exact, deterministic word bigram (2-gram) frequency counts from text without any LLM inference overhead or external network calls. It is ideal for NLP preprocessing pipelines, text feature extraction, SEO keyword pair analysis, or any scenario where reproducible bigram statistics matter and you want a cheap, fast, stateless computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:03.571Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-word-2-gram-counter-4423284c"}