Skip to main content
. 2021 Apr 5;7:e469. doi: 10.7717/peerj-cs.469

Table 3. Transformation rules based on Arabic grammar.

ID Original rules Equivalent rules
1 DTNN+ADJ ADJ+DTNN
2 NN+ADJ ADJ+NN
3 DTNN+NN NN+DTNN
4 NN+NN NN+NN (swap)
5 NN+DTNN could not be changed
6 DTNN+DTNN DTNN+DTNN (swap)
7 ADJ+ADJ ADJ+ADJ (swap)
8 PP+(NN+DTNN) Place at the beginning and reverse the sentence.
9 PP+(DTNN) Place at the beginning and reverse the sentence.
10 PP+(special character VB | NN) Place at the beginning and reverse the sentence.
11 Wh-prounoun+end of the sentences Place at the beginning of sentences
12 Special adverb+(NN | VB | (special character VB | NN)) (NN | VB | (special character VB | NN))+Special adverb
13 Pronoun+(NN |VB | ADJ) (NN |VB | ADJ)+Pronoun
14 (NN|DTNN)+VB VB+(NN|DTNN)
15 NN+(Special-character+VB) (special-character)+NN
16 VB+(NN|DTNN) (NN+DTNN)+VB
17 VB+(Special-character+(NN|DTNN)) (Special-character+(NN|DTNN))+VB
18 (Special-character+VB)+(Special-character+(NN|DTNN)) (Special-character+(NN|DTNN))+(Special-character+VB)
19 (Special-character+VB)+(NN|DTNN) (NN|DTNN)+(Special-character+VB)
20 Special-character+(NN|DTNN))+VB VB+(Special-character+(NN|DTNN))
21 (Special-character+(NN|DTNN))+(Special-character+VB) (Special-character+VB)+(Special-character+(NN|DTNN))
22 CD+(NN|DTNN|VB) could not be changed
23 WH-Adverb+(NN|VB|DTNN|(Special-character+(NN|DTNN)) | (Special-character+VB)) (NN|VB|DTNN|(Special-character+(NN|DTNN)) | )Special-character+VB))+WH-Adverb