Section 39. (a) Whoever commits an assault or a battery upon a person or damages the real or personal property of a person with the intent to intimidate such person because of such person's race, color, religion, national origin, sexual orientation, gender identity, or disability shall be punished by a fine of not more than five thousand dollars or by imprisonment in a house of correction for not more than two and one-half years, or by both such fine and imprisonment. The court may also order restitution to the victim in any amount up to three times the value of property damage sustained by the owners of such property. For the purposes of this section, the term ''disability'' shall have the same meaning as ''handicap'' as defined in subsection 17 of section one of chapter one hundred and fifty-one B; provided, however, that for purposes of this section, the term ''disability'' shall not include any condition primarily resulting from the use of alcohol or a controlled substance as defined in section one of chapter ninety-four C.
(b) Whoever commits a battery in violation of this section and which results in bodily injury shall be punished by a fine of not more than ten thousand dollars or by imprisonment in the state prison for not more than five years, or by both such fine and imprisonment. Whoever commits any offense described in this subsection while armed with a firearm, rifle, shotgun, machine gun or assault weapon shall be punished by imprisonment in the state prison for not more than ten years or in the house of correction for not more than two and one-half years. For purposes of this section, ''bodily injury'' shall mean substantial impairment of the physical condition, including, but not limited to, any burn, fracture of any bone, subdural hematoma, injury to any internal organ, or any injury which occurs as the result of repeated harm to any bodily function or organ, including human skin.
There shall be a surcharge of one hundred dollars on a fine assessed against a defendant convicted of a violation of this section; provided, however, that moneys from such surcharge shall be delivered forthwith to the treasurer of the commonwealth and deposited in the Diversity Awareness Education Trust Fund established under the provisions of section thirty-nine Q of chapter ten. In the case of convictions for multiple offenses, said surcharge shall be assessed for each such conviction.
A person convicted under the provisions of this section shall complete a diversity awareness program designed by the secretary of the executive office of public safety in consultation with the Massachusetts commission against discrimination and approved by the chief justice of the trial court. A person so convicted shall complete such program prior to release from incarceration or prior to completion of the terms of probation, whichever is applicable.