{"uid":"cap_aYYhSBxcoguWjwoaZ0wnX","slug":"language-tag-normalize-e97b406c","name":"Language Tag Normalize","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/language-tag-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"language_tag_normalize"}},"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_WArJ4jLv0mvvtnEEvF2Ye","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":"Normalizes BCP 47 / IETF language tags to a canonical, well-formed format","exampleAgentPrompt":"Normalize the language tag 'en_us' to its canonical BCP 47 form — fix the casing and separator so it's properly formatted.","exampleUseCases":[{"title":"Fixing malformed locale from user input","prompt":"A user just submitted 'zh_hans_cn' as their preferred language — can you normalize that to the correct BCP 47 canonical form before I save it to their profile?"},{"title":"Standardizing locale strings in a content pipeline","prompt":"I have a batch of locale strings like 'EN-GB', 'fr_FR', and 'ZH-TW' coming from different sources — normalize 'EN-GB' to its canonical BCP 47 tag so I can standardize the format across my pipeline."},{"title":"Validating language tag in an i18n API integration","prompt":"Before I pass this language tag 'pt_br' to my translation API, can you normalize it to the correct BCP 47 canonical form like 'pt-BR'?"}],"resultDescription":"Returns a JSON object with a 'result' field containing the normalized, canonical BCP 47 language tag, and an 'operation' field confirming 'language_tag_normalize'. The result corrects casing, separator characters, and subtag ordering to conform to IETF standards.","failureModes":["Invalid or unrecognizable language tag input returns an error","Malformed input value (null, empty string, non-string) may return a validation error","Network timeout or service unavailability on Render's free tier may cause 502/503 errors","Payment failure via x402 protocol results in 402 Payment Required before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use normalization of individual language tags without setting up a full i18n library. Ideal for agents handling user-submitted locale strings, data pipeline cleaning, or API integrations requiring strict BCP 47 compliance. At $0.01 USDC per call via x402, it suits low-to-moderate volume use cases where a hosted microservice is preferable to bundling a locale library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:38:05.566Z","isFirstParty":false,"canonicalSlug":"language-tag-normalize-e97b406c"}