Text this: Reconfigurable intelligent surface-assisted N-ary Alamouti.