محاسبهٔ دیه — Calculate blood money (دیه)
calculate_diyehCalculate دیه for a bodily injury using the CURRENT official rate and the fractions set by قانون مجازات اسلامی. ALWAYS use this instead of computing دیه yourself: the full-دیه rate changes every Persian year and the per-injury fractions are statutory. Returns the amount with the governing article and the official rate source.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Persian year (e.g. 1405). Defaults to the current year. | |
| injury | Yes | Injury in Persian, e.g. «شکستگی دست»، «از دست دادن یک انگشت»، «دندان». | |
| is_haram_month | No | Whether it occurred in a حرام month (تغلیظ applies to دیهٔ نفس). |