{"uid":"cap_vrFu9Vflzm_w-m3soddRH","slug":"kevaremesh-text-normalize-ad61a73c","name":"KEVAREMESH Text Normalize","description":"Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.","url":"https://kevaremesh-web.vercel.app/api/x402/text-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":262144},"trim":{"type":"boolean","default":false},"whitespace":{"enum":["preserve","collapse"],"type":"string","default":"preserve"},"line_endings":{"enum":["preserve","lf","crlf"],"type":"string","default":"lf"},"unicode_form":{"enum":["none","NFC","NFD","NFKC","NFKD"],"type":"string","default":"NFC"}}},"responseSchema":{"type":"json","example":{"result":{"text":"hello","trim":true,"whitespace":"preserve","input_bytes":7,"line_endings":"lf","output_bytes":5,"unicode_form":"NFC","input_codepoints":7,"output_codepoints":5},"product":"kevaremesh_text_normalize_v2","service":"KEVAREMESH","tool_name":"kevaremesh_text_normalize","limitations":["Maximum input 256 KiB"],"generated_at":"2026-09-18T00:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_f6hkoJyAjYL2v0tKGnKye","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes text by controlling Unicode form, whitespace collapsing, line endings, and trimming up to 256 KiB of input.","exampleAgentPrompt":"Can you normalize this text to NFC Unicode form, collapse any extra whitespace, convert line endings to LF, and trim it: 'Hello   World\r\nfoo  bar'?","exampleUseCases":[{"title":"Pre-processing user input for NLP pipeline","prompt":"I have user-submitted text with mixed Unicode forms and inconsistent spacing — normalize it to NFKC, collapse all whitespace, and convert line endings to LF before I send it to my NLP model: 'Ｈｅｌｌｏ   Wörld\r\n  foo   bar'"},{"title":"Cleaning scraped web content line endings","prompt":"I scraped some web content that has CRLF line endings and trailing spaces everywhere — can you normalize it to LF line endings, trim the text, and preserve its existing Unicode form? Here's the text: 'scraped content line one\r\n  line two   \r\nline three\r\n'"},{"title":"Deduplication preprocessing with Unicode normalization","prompt":"Before I compare these two strings for deduplication, can you normalize both to NFC unicode form with whitespace collapsed and trimmed? First string: 'café  résumé' — I want to make sure composed and decomposed unicode characters match."}],"resultDescription":"Returns a JSON object containing the normalized text string, the applied settings (trim, whitespace, line_endings, unicode_form), byte counts and codepoint counts for both input and output, plus service metadata including product name, tool name, and generation timestamp.","failureModes":["Input text exceeds 256 KiB limit — API rejects with limitation error","Invalid enum value for whitespace, line_endings, or unicode_form — likely returns validation error","Empty or missing text field — may return empty result or validation error","Network or payment failure for x402 micropayment — call not executed"],"whenToPreferThis":"Choose this endpoint when you need deterministic, rule-based text normalization (Unicode form, whitespace, line endings, trimming) in a single paid API call without managing multiple libraries. It is ideal for preprocessing pipelines, deduplication, and data hygiene tasks where consistent encoding and whitespace are critical. Prefer it over client-side libraries when you need a hosted, language-agnostic solution accessible via HTTP with micropayment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:10:45.493Z","isFirstParty":false,"canonicalSlug":"kevaremesh-text-normalize-ad61a73c"}