Recognition and conversion of electric field representations: The case of the algebraic notation