extract_meter

aruudy.poetry.meter.extract_meter(bahrForm, used=True)

Extract the meter description from a list of Tafiila objects.

Parameters:
  • bahrForm (BahrForm) – An object describing the meter’s form.
  • used (bool) – Meters, in Arabic, can have used forms different than standard ones. if True: the result is used form. Otherwise, it is standard form
Returns:

A dictionary object describing the meter represented by the feet. The dictionary contains these elements:

  • type: a string describing the type of each foot (tafiila)
  • mnemonic: a string describing the mnemonic of each foot.
  • emeter: a string describing the English meter of each foot.
  • ameter: a string describing the Arabic meter of each foot.

Return type:

dict