A former estate agent in South Africa has been jailed for racist abuse in what has been called a landmark ruling.
A court jailed Vicky Momberg for three years, with one year suspended, for using a derogatory word against a black police officer 48 times.
Her lawyer said she was not in a normal state at the time, as she had just been the victim of a smash-and-grab robbery.
Racism remains a major issue in South Africa, almost 24 years after white minority rule ended.
Momberg was convicted of four counts of crimen injuria - which refers to injuring someone's dignity through racial insults - after her rant was caught on video, and went viral on social media.
She hurled insults at black officers trying to assist her after she was robbed on the outskirts of the main city, Johannesburg, in 2016, and complained about the "calibre of blacks in Johannesburg compared to black people in Durban", where she was based.
Handing down her ruling, magistrate Pravina Raghoonandan said some may think the sentence was harsh but it was intended to signal that racism will not be tolerated in South Africa.
Previous prosecutions had not prevented racist incidents, and therefore imposing a direct prison sentence without the option of a fine would send a strong message, she added.
Prosecutor Yusuf Baba said it was the worst case of crimen injuria to appear before the courts in South Africa.
"This is a landmark ruling... It sets a precedent for other racial-related cases." National Prosecuting Authority spokeswoman Phindi Mjonondwana said.
Momberg's lawyers argued that she went into an "emotional storm" after the robbery, and should be sent for rehabilitation rather than to prison.
Her lawyer indicated that she would appeal against the conviction and sentence. If the appeal fails, she will be the first person to be imprisoned in South Africa for racist abuse.
The emergence of social media has brought numerous cases of racism in South Africa to light.
In October, two white farmers who forced a black man into a coffin, beat him up and threatened to burn him alive were sentenced to jail for more than 10 years each, after a video of the incident went viral.
In 2016, a court fined former estate agent Penny Sparrow 150,000 rand ($NZ17,673) for calling black people "monkeys" in a Facebook post.