All products

Normalise Persian text with AI

Apply consistent Persian characters, spacing and digits with local scripts, or convert a date or integer without rewriting the surrounding prose.

You can normalise Persian text with AI when a document combines material copied from different keyboards or systems. An instruction sheet might mix Arabic and Persian forms of the same letter, show Western digits in the prose and contain product codes that must stay unchanged. The persian-text-skill package uses local Python helpers for these mechanical edits.

You choose the digit policy. Prose may benefit from Persian numerals while a data table needs its original representation. Separate commands convert between Gregorian and Jalali dates or spell out an integer, so a small request does not require normalising the entire file.

What it does

  • Bring Persian letter forms into line across a document.
  • Correct common spacing and zero-width non-joiner patterns.
  • Choose whether a passage should use Persian, Latin or existing digits.
  • Convert a supplied date between the two supported calendars.
  • Spell an integer in Persian for a draft receipt or form.

Install and use

  1. Prepare a compatible agent and Python 3. The helpers use the standard library and require no service account.
  2. Supply a sample and identify technical tokens or tables whose digits must be preserved. Ask for a preview first.
  3. Compare the output with the original before choosing an in-place rewrite.

FAQ

Source

Made by Hanieh Khaleoghli (hanieh). Original skill: persian-text-skill, published on GitHub under the MIT licence.

View on GitHub