{"uid":"cap_Yx2VwwlN-9-r4nvEKFxoj","slug":"farsi-sentence-tokenizer-487f62f3","name":"Farsi Sentence Tokenizer","description":"Persian (Farsi) and Iranian utility API for AI agents. Text normalization, transliteration, Jalali (Solar Hijri) calendar conversion, Persian digits and number-to-words, Iranian national ID / Sheba (IBAN) / mobile / landline / postal code / bank card (Luhn PAN) / company ID / economic code validators, Iranian provinces and cities, official Jalali holidays, Rial-Toman conversion. Also a FIXED-PRICE deliverable SKU: Persian/Arabic data cleanup at $0.90, $9 or $25 flat per file (not per call) - upload a CSV, TSV or text file and get it back normalized, with an optional Latin transliteration column. Pay per request in USDC on Base via x402 - no signup, no API key, no KYC.","url":"https://farsi-tools.johnaio281.workers.dev/api/fa/sentences?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":{"text":{"type":"string","description":"Persian (Farsi) text or value to process. Max 100000 characters."},"options":{"type":"object","description":"optional, e.g. {\"digits\":\"ascii\"}"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":3,"sentences":["سلام.","حالت چطوره؟","خوبم!"]}},"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_ZdA-W1-smm2lFj8Q_PQfu","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":"Splits Persian (Farsi) text into individual sentences and returns them as an array with a count","exampleAgentPrompt":"Can you split this Persian text into its individual sentences for me? Here's the text: 'سلام. حالت چطوره؟ خوبم!'","exampleUseCases":[{"title":"Persian NLP preprocessing pipeline","prompt":"I have this Farsi paragraph and I need it broken into individual sentences so I can process each one separately: 'امروز هوا خوب است. من به پارک رفتم. بسیار لذت بردم.'"},{"title":"Sentence count audit for Farsi document","prompt":"How many sentences are in this Persian text? 'ایران کشوری با تاریخ غنی است. فرهنگ آن بسیار متنوع است. مردم آن مهمان‌نواز هستند.'"},{"title":"Farsi subtitling segmentation","prompt":"Break this Farsi script into sentences so I can use each one as a separate subtitle line: 'صبح بخیر. امیدوارم روز خوبی داشته باشی. آماده‌ای؟'"}],"resultDescription":"Returns a JSON object with a 'count' integer indicating the number of sentences detected, and a 'sentences' array containing each individual Persian sentence as a string element.","failureModes":["Missing required 'text' query parameter returns an error","Text exceeding 100,000 characters may be rejected","Non-Persian or mixed-script text may produce unexpected segmentation","Payment failure via x402 returns 402 Payment Required","Malformed query parameters return 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need reliable sentence boundary detection specifically for Persian/Farsi text, which has unique punctuation and spacing conventions that generic multi-language tokenizers handle poorly. Ideal for NLP preprocessing pipelines, document analysis, or any task requiring sentence-level segmentation of Farsi content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:14:22.978Z","isFirstParty":false,"canonicalSlug":"farsi-sentence-tokenizer-487f62f3"}