normalize

aruudy.poetry.prosody.normalize(text)

Normalize a given text.

The text is normalized by:

  • deleting non Arabic characters.
  • Deleting Tatweel (a character used as ligature )
  • Vocalizing and correcting letters
Parameters:text (str) – The text to be normalized.
Returns:A normalized text.
Return type:str