Exploring ChatGPT in Arabic
An exploration of what ChatGPT can handle with Arabic language.
I heard some conversations recently about the potential of this tool – in Arabic – while visiting Amman, Jordan, and so I reached into the online toolkit and was pleased to find that ChataGPT actually handles Arabic quite gracefully.
For some context, Arabic is an RTL (Right-to-left) language with complex morphology that has created all sorts of challenges in translation (e.g. Google Translate continues to perform at a relatively unreliable level for most complex queries and anything beyond a very simple transform).
The GPT was able to e.g. generate a story in Arabic from an English prompt, translate that story to English. That’s cool!
I was pleased to see that the ChatGPT interface offered by OpenAI also gracefully handled RTL text (though it does not format the whole div correctly). RTL has continued to somehow confound many text editors and formatting interfaces, despite its being implemented successfully over a decade ago. E.g. SublimeText still fails to handle RTL with any grace at all.
Arabic translation offered by ChatGPT – does it out-perform Google Translate ? ChatGPT Jan 30 Version. Free Research Preview.
In the example below, for example, the text-block should be right-aligned, which will lead to the sentence-ending period marks being placed on the left, and the beginning of the sentence being fully aligned on the right.
Compare this with StableDiffusion, which can generate styles without issue, but currently fails to perform linguistic-translation tasks :
E.g. “The word ‘love’ in Arabic calligraphy”
Notably, this one retains the four-character shapes I would expect for translating محبه (م ح ب ه) , though they are “rendered in a more historical style” ;) aka potentially closer to (l o v e) than their Arabic counterpart.
vs (same input)
I compare “The word ‘love’ in Sogdian calligraphy”
& “The word ‘love’ in Chinese calligraphy”
“The word ‘Love’ in calligraphy” suggests that the StableDiffusion conception-space of calligraphy is dominated by Arabic and Chinese examples, which makes sense.
Some context: I used the ChatGPT interface offered by OpenAI at https://chat.openai.com/.
I used the StableDiffusion interface offered by https://StableDiffusionWeb.com. Note that the following website has no identifying information that I could use to establish organizational legitimacy, (domain is registered in Iceland).
Also, things like this seem to exist now : https://www.reddit.com/r/StableDiffusion/comments/10n3cqo/major_update_automatic1111_photoshop_stable/ Have fun and good luck!