An algebraic approach to arabic sentence structure