{"uid":"cap_rCsp0cf0mlvFpw9gXG9DA","slug":"thaikit-thai-text-normalizer-98853aad","name":"ThaiKit Thai Text Normalizer","description":"Clean up Thai text that looks right but is stored wrongly, which breaks search, matching and deduplication: joins ํ + า into ำ, เเ into แ, reorders misplaced tone marks, removes duplicated marks, zero-width and other invisible characters, fixes odd spaces, and optionally converts Thai/Arabic digits. Returns every fix made. Body: {\"text\": \"...\", \"digits\": \"keep|arabic|thai\"} (max 5000 chars)","url":"https://api.thaikit.dev/normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":5000,"description":"Thai text to clean"},"digits":{"enum":["keep","arabic","thai"],"type":"string","description":"keep (default), arabic (๑ -> 1) or thai (1 -> ๑)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_J21R1WV8DBjsd2RiTwg0M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Cleans and normalizes Thai text by fixing encoding artifacts, misplaced tone marks, duplicate marks, invisible characters, and space issues, with optional digit conversion","exampleAgentPrompt":"Can you clean up this Thai text so it works properly in search and matching? The string is 'สวัสดีครับ เเมว' — fix any encoding artifacts like เเ vs แ, misplaced tone marks, or invisible characters, and convert any Thai digits to Arabic numerals.","exampleUseCases":[{"title":"Pre-indexing Thai search pipeline","prompt":"Before we push this batch of Thai product names to Elasticsearch, clean up each one — fix any เเ vs แ issues, reorder misplaced tone marks, and strip invisible characters so search and deduplication actually work correctly."},{"title":"Normalize Thai invoice text","prompt":"I scraped Thai invoice data and the text looks right visually but breaks when I try to match it against our database. Can you normalize this Thai string and convert any Thai numerals like ๑๒๓ to Arabic digits so matching works?"},{"title":"Deduplicate Thai customer records","prompt":"We have duplicate Thai customer names that look identical on screen but aren't matching in our system. Can you normalize these Thai name strings so identical-looking ones produce the same canonical form for deduplication?"}],"resultDescription":"Returns the normalized Thai text with all fixes applied, along with a list describing every correction made — such as เเ→แ merges, ํา joins into ำ, tone mark reorderings, removed zero-width or invisible characters, fixed spaces, and any digit conversions performed.","failureModes":["Text exceeds 5000 character limit — request rejected","Invalid digits enum value — validation error returned","Non-Thai or empty text — may return unchanged with no fixes listed","Network timeout on large complex strings","Payment failure via x402 protocol — call blocked"],"whenToPreferThis":"Choose this endpoint when you need to canonicalize Thai text before storage, search indexing, string matching, or deduplication, especially when source data comes from OCR, copy-paste, or mixed keyboard inputs that may contain visually identical but byte-different representations of Thai characters. It is the right choice when you need an audit trail of exactly what was fixed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-03T18:39:09.582Z","isFirstParty":false,"canonicalSlug":"thaikit-thai-text-normalizer-98853aad"}