maha.cleaners.functions.num2text#

Logic for converting numbers to text

Module Contents#

Functions#

numbers_to_text(text[, accusative])

Converts numbers in text to their equivalent text in Arabic.

numbers_to_text(text, accusative=False)[source]#

Converts numbers in text to their equivalent text in Arabic.

Parameters
  • text (str) – Text with numbers to be converted.

  • accusative (bool, optional) – If True, the number will be converted to its accusative form.

Returns

Text with numbers converted to their equivalent text in Arabic.

Return type

str