Regular Expression for Arabic Plural Forms

Gharbeia's picture
Submitted by Gharbeia on Sat, 17/09/2005 - 05:43.

Greetings

I am trying to write a C regular expression for Arabic Plural forms to use in Arabising software. I have not done any C in more than a decade, and could use some help.

Arabic distinguishes between the following cases (0, 1, 2, 3-10, 11+). I am using an example as a link to a comments page in a blog:

لا تعليقات

تعليق واحد

تعليقان

تعليقات

تعليقا

The cases are actually four, as zero and three-to-nine use the same form of plural, but since لا تعليقات has more meaning in Arabic than صفر تعليقات, I thought they could be separated.

More reading and examples from other languages

Taken into the hundreds

It's turning out to be more complicated:

Case 0: 0 Case 1: 1 Case 2: 2 Case 3: 3-10 103-110 Case 4: 11-99 101, 102, 111-199 Case 5: 100 200

Gharbeia's picture

wiki page

this issue was discussed before here

and would be better served by a wiki page cheers,
Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"

Alaa's picture

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.