pattern icon indicating copy to clipboard operation
pattern copied to clipboard

Arabic language support

Open adhaamehab opened this issue 7 years ago • 3 comments

Hi all,

I want to work on arabic language support. Any advice on how I should start ?

adhaamehab avatar May 12 '18 22:05 adhaamehab

A good start is to first know the Arabic alphabet, and use an Arabic keyboard. You should be able to use an Arabic keyboard on almost every operating system, including iOS. Then, you should learn parts-of-speech and qualities like gender. Practicing grammar will also help. Then, you could start researching vocabulary from WordReference. The parser code for Arabic should not be too different from other languages, unlike languages like Swiss German. Also, be aware that letters can change depending on if they are at the beginning, middle, or end of a word, or isolated.

ghost avatar May 20 '18 02:05 ghost

@MohamedAlFahim Thanks for your response. I'm fluent arabic speaker. My question is more about language extension addition process

adhaamehab avatar May 20 '18 02:05 adhaamehab

In that case, you should start by creating an “ar” folder under pattern/text, then fill it with files like ar-verbs.txt (verb conjugation), ar-context.txt (sentence structure), ar-lexicon.txt (word list), and inflect.py (for modifying words). Again, Arabic shares certain structures from other languages, so it is possible to copy-paste some existing structures (like from Pattern's English).

ghost avatar May 20 '18 21:05 ghost